CBOE_delta_K | R Documentation |
Following the VIX whitepaper this function calculates \mjseqn\Delta K_i as "half the difference between the strike prices on either side of \mjseqnK_i": \loadmathjax \mjsdeqn\Delta K_i := \begincases K_1 - K_0 \qquad \; \; if \; i = 0 \\\ K_N - K_N-1 \; \; \; if \; i = N \\\ \fracK_i+1 - K_i-12 \qquad \; else \endcases
CBOE_delta_K(K)
K |
A |
Returns a numeric vector
giving the \mjseqn\Delta K_i variable of the CBOE VIX calculation.
library(R.MFIV) strikes <- c(10, 12.5, c(1:10)*5 + 10, 62.5, 65) CBOE_delta_K(K = strikes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.