Description Usage Arguments Value Examples
Option2price
return the prices of contracts paying the first
N powers of the asset's future return $R^N=log(ST/S0)^N$.
1 | Option2price(XC, C, XP, P, S0, df, N)
|
XC |
vector of call strikes |
C |
vector of call prices |
XP |
vector of put strikes |
P |
vector of put prices |
S0 |
if not given will be approximated along the way |
df |
optional, if not given, will be approximated along the way |
N |
optional, will return the N (4) first standardized moments. Note that, as there only a discrete number of options employed in this approximation, the accuracy of the result will quickly decrease with N. |
Vector of N (4) first standardized moments
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.