CBOE_VIX_vars | R Documentation |
This is a wrapper around the CBOE_...
functions that performs the calculation
of all variables required for the calculation of the squared model free implied volatility (\mjseqn\sigma^2)
as per the VIX whitepaper:
^2 = \frac2T \left(\sum_i \frac\Delta K_iK_i^2 Q(K_i) e^rT \right) - \frac1T \left( \fracF_0K_0 - 1 \right)^2
CBOE_VIX_vars(option_quotes, R, maturity, ret_vars = F)
option_quotes |
A
|
R |
|
maturity |
|
ret_vars |
A |
Returns either a numeric scalar
giving \mjseqn\sigma^2 or a list
with all variables
involved in the calculation:
F_0 (numeric
) - theoretical at-the money forward \mjseqnF_0
(see CBOE_F_0
)
K_0 (numeric
) - theoretical at-the money strike \mjseqnK_0
(see CBOE_K_0
)
n_put_raw (numeric
) - number of put options before option selection
(see CBOE_option_selection
)
n_call_raw (numeric
) - number of call options before option selection
(see CBOE_option_selection
)
n_put (numeric
) - number of put options after option selection
n_call (numeric
) - number of call options after option selection
sigma_sq (numeric
) - squared model free implied volatility \mjseqn\sigma^2
(see CBOE_sigma_sq
)
library(R.MFIV) nest <- option_dataset$option_quotes[[1]] CBOE_VIX_vars(option_quotes = nest, R = 0.005, maturity = 0.07, ret_vars = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.