afoster28 / opt_portfolio_variance

Option portfolio variance in CPP
0 stars 0 forks source link

Sampling from distribution #16

Closed afoster28 closed 7 months ago

afoster28 commented 7 months ago

Check whether sampling from distribution implemented in the code is mathematically and conceptually sound:

rescale1 rescale2

afoster28 commented 7 months ago

Fixed price sampling by applying the following:

muLog = log(spot) + (mu - 0.5 sigma ^ 2) t sigmaLog = sqrt(sigma ^ 2 * t) sampled log prices from the normal distribution exponentiated to get lognormal distribution of prices at maturity