Description Usage Arguments Value Author(s) References Examples
GapMC prices a gap option using the MC method. The call payoff is S_T-K when S_T>K2, where K_2 is the trigger strike. The payoff is increased by K_2-K, which can be positive or negative. The put payoff is K-S_T when S_T<K_2. Default values are from policyholder-insurance example 26.1, p.601, from referenced OFOD, 9ed, text.
1 2 3 4 |
o |
The |
K2 |
The trigger strike price. |
NPaths |
The number of paths (trials) to simulate. |
An OptPx
object. The price is stored under o$PxMC
.
Kiryl Novikau, Department of Statistics, Rice University, Spring 2015
Hull, John C., Options, Futures and Other Derivatives, 9ed, 2014. Prentice Hall. ISBN 978-0-13-345631-8. http://www-2.rotman.utoronto.ca/~hull/ofod/index.html. p.601
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | (o = GapMC())$PxMC #example 26.1, p.601
o = Opt(Style='Gap', Right='Call', S0=50, K=40, ttm=1)
o = OptPx(o, vol=.2, r=.05, q = .02)
(o = GapMC(o, K2 = 45, NPaths = 5))$PxMC
o = Opt(Style='Gap', Right='Call', S0 = 50, K = 60, ttm = 1)
o = OptPx(o, vol=.25,r=.15, q = .02)
(o = GapMC(o, K2 = 55, NPaths = 5))$PxMC
o = Opt(Style='Gap', Right = 'Put', S0 = 50, K = 57, ttm = .5)
o = OptPx(o, vol = .2, r = .09, q = .2)
(o = GapMC(o, K2 = 50, NPaths = 5))$PxMC
o = Opt(Style='Gap', Right='Call', S0=500000, K=400000, ttm=1)
o = OptPx(o, vol=.2,r=.05, q = 0)
(o = GapMC(o, K2 = 350000, NPaths = 5))$PxMC
|
[1] 0
[1] 7.958355
[1] 0.1659111
[1] 1.496313
[1] 146270
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.