Description Usage Arguments Value
View source: R/check_convergence.R
Check for mutual convergence of prices generated by both PDE and MC methods to a common value under Black-Scholes dynamics for European vanilla options.
1 2 3 4 5 6 7 8 9 10 11 12 13 | check_gbm_convergence(
spot,
maturity,
rate,
div,
volat,
what,
N,
M,
threshold = 0.001,
samples = 10^6,
strike_range = 5
)
|
spot |
the underlying spot price |
maturity |
the maturity of the option in trading years |
rate |
the risk-neutral rate of return |
div |
the dividend yield of the underlying |
volat |
the annual volatility |
what |
what type of option |
N |
time resolution |
M |
space resolution |
threshold |
threshold for MSE error for acceptance of convergence |
samples |
number of samples to use in MC |
strike_range |
range of strikes to price |
list containing a data.frame of the strike and genertaed prices, the mse, boolean for success and success message if successful.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.