View source: R/price_impact_utils.R
| compute_p_adj | R Documentation |
Calculates the adjusted risk-neutral probability incorporating price impact from hedging activities.
compute_p_adj(r, u, d, lambda, v_u, v_d)
r |
Gross risk-free rate per period |
u |
Base up factor |
d |
Base down factor |
lambda |
Price impact coefficient |
v_u |
Hedging volume on up move |
v_d |
Hedging volume on down move |
Adjusted risk-neutral probability (numeric)
compute_p_adj(r = 1.05, u = 1.2, d = 0.8, lambda = 0.1, v_u = 1, v_d = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.