Sub topic 3
Volatility and Sentiment Indicators Such as the VIX
This chapter assumes you know what a stock index is, can work with percentages, and can read simple Python.
Reading fear in the options market
Volatility measures how much prices swing. Sentiment describes the mood of investors. The CBOE Volatility Index (VIX) estimates the expected annualized swing of the S&P 500 over the next 30 days, using S&P 500 option prices. A VIX of 20 implies an expected move of about 1.26% in one trading day, as the code below shows.
import math
vix = 20
daily_move = vix / math.sqrt(252)
print(f"Implied 1-day move: about {daily_move:.2f}%")Lessons from past declines and recoveries
Declines vary widely in depth and length. The 2020 pandemic drop in the S&P 500 was about 34%, and the index regained its prior peak in about six months. The 2007–2009 decline was about 57%, and recovery to the prior peak took roughly five and a half years. Past patterns describe what happened. They do not set the timing of the next cycle.
Behavioral pitfalls: loss aversion and panic selling
Loss aversion is the tendency to feel a loss more strongly than an equal gain. Panic selling is selling after a drop, which turns a temporary paper loss into a realized one. Investors who sell at the bottom lock in the decline and may miss the recovery.
Strategies for long-term investors
- Allocation: Set a target mix of stocks and bonds that matches your time horizon and tolerance for losses.
- Diversification: Spread holdings across many companies, sectors, and asset types.
- Rebalancing: Sell assets that grew past their target and buy those that fell, to restore the mix.
- Regular investing: Invest a fixed amount on a schedule. Prices that fall buy more shares.
The regular investing example below buys $100 of shares each month at four prices. The average cost per share comes out below the simple average price.
monthly_amount = 100
prices = [100, 80, 60, 90]
shares = sum(monthly_amount / p for p in prices)
invested = monthly_amount * len(prices)
average_cost = invested / shares
average_price = sum(prices) / len(prices)
print(f"average cost per share: {average_cost:.2f}")
print(f"average price: {average_price:.2f}")Why timing the market is hard
Timing the market requires getting two decisions right: when to leave and when to return. Strong rebounds often occur within days of the worst declines. Investors who wait for confirmation usually buy after prices have already recovered. The start and end of a market phase are usually clear only in hindsight.
Exercise
If the VIX is 30, what is the implied one-day move?
Show answer
30 / sqrt(252) is about 1.89%.