This notebook shows how to reproduce the VIX given the data in CBOE White Paper (http://www.cboe.com/micro/vix/vixwhite.pdf). The code works for any option data set, not only one day as in the White Paper. The option data for this example is exactly the same as in the Appendix 1 of the White Paper.
Given are the prices
The VIX itself is
where
Since there are days when there no options with precisely 30 days to expiration, we have to interpolate between near-term index and next-term index:
with each
where the distance between strikes is
the out-of-the-money option premium is
at-the-money strike price is
forward price extracted from put-call parity:
with
and finally
pip install .
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate
Install development dependencies:
pip install -e .