
Python for Finance

Obviously, each stock should possess one value for its volatility. However, when estimating implied volatility, different strike prices might offer us different implied volatilities. More specifically, the implied volatility based on out-of-the-money options, at-the-money options, and in-the-money options might be quite different. Volatility smile is the shape going down then up with the exercise prices, while the volatility skewness is downward or upward sloping. The key is that investors' sentiments and the supply and demand relationship have a fundamental impact on the volatility skewness. Thus, such a smile or skewness provides information on whether investors, such as fund managers, prefer to write calls or puts, as shown in the following code:
import datetime import pandas as pd import matplotlib.pyplot as plt from matplotlib.finance import quotes_historical_yahoo_ochl as getData # Step 1: input area infile="c:/temp/callsFeb2014.pkl" ticker...
Change the font size
Change margin width
Change background colour