Description Usage Arguments Value Author(s) References Examples
Variance Swap valuation via Black-Scholes (BS) model
1 2 3 |
o |
An object of class |
K |
A vector of non-negative strike prices |
Vol |
a vector of non-negative, less than zero implied volatilities for the associated strikes |
notional |
A numeric positive amount to be invested |
varrate |
A numeric positive varaince rate to be swapped |
An object of class OptPx
with value included
Max Lee, Department of Statistics, Rice University, Spring 2015
Hull, J.C., Options, Futures and Other Derivatives, 9ed, 2014. Prentice Hall. ISBN 978-0-13-345631-8, http://www-2.rotman.utoronto.ca/~hull/ofod.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | (o = VarianceSwapBS())$PxBS
o = Opt(Style="VarianceSwap",Right="Other",ttm=.25,S0=1020)
o = OptPx(o,r=.04,q=.01)
Vol = Vol=c(.29,.28,.27,.26,.25,.24,.23,.22,.21)
(o = VarianceSwapBS(o,K=seq(800,1200,50),Vol=Vol,notional=10^8,varrate=.045))$PxBS
o = Opt(Style="VarianceSwap",Right="Other",ttm=.25,S0=1020)
o = OptPx(o,r=.04,q=.01)
Vol=c(.2,.205,.21,.215,.22,.225,.23,.235,.24)
(o =VarianceSwapBS(o,K=seq(800,1200,50),Vol=Vol,notional=10^8,varrate=.045))$PxBS
o = Opt(Style="VarianceSwap",Right="Other",ttm=.1,S0=100)
o = OptPx(o,r=.03,q=.02)
Vol=c(.2,.19,.18,.17,.16,.15,.14,.13,.12)
(o =VarianceSwapBS(o,K=seq(80,120,5),Vol=Vol,notional=10^4,varrate=.03))$PxBS
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.