Description Usage Arguments Details Value Author(s) References Examples
Binary option valuation via Monte-Carlo (via) simulation.
1 2 |
o |
An |
Q |
A fixed numeric amount of payoff |
Type |
Binary option type: |
NPaths |
The number of simulation paths to use in calculating the price
Partial names are allowed, eg. |
Two types of binary options are priced: 'cash-or-nothing'
and 'asset-or-nothing'
.
The original input object o
with added parameters and option price PxMC
Tongyue Luo, 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. pp.606-607.
1 2 3 4 5 6 7 8 9 10 11 12 13 | (o = BinaryMC())$PxMC
o = OptPx(Opt(Style="Binary"))
(o = BinaryMC(o, Type="cash"))$PxMC
o = OptPx(Opt(Style="Binary"),q=0.01)
(o = BinaryMC(o, Type="asset"))$PxMC
o = OptPx(Opt(Style="Binary", S0=100, K=80),q=0.01)
(o = BinaryMC(o, Type="cash"))$PxMC
o = OptPx(Opt(Style="Binary", Right="Put", S0=50, K=60),q=0.04)
(o = BinaryMC(o, Type="asset"))$PxMC
|
[1] 18.09675
[1] 13.57256
[1] 13.12053
[1] 18.09675
[1] 15.58668
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.