Sub topic 10
Volatility and sentiment indicators such as the VIX
This chapter assumes you know what a drawdown is and how corrections and bear markets are defined. It also assumes you are comfortable with percentages. The Python examples use only the standard library. Earlier chapters measured declines after they happened. This chapter covers gauges that try to describe how nervous or confident investors are right now.
Volatility versus direction
Volatility measures how widely prices swing, regardless of direction. A market that rises 1% every day has low volatility. A market that jumps up 3% one day and drops 3% the next has high volatility, even if it ends where it started.
Statisticians usually express volatility as the standard deviation of returns, annualized so that different assets can be compared. Two kinds matter here:
- Realized (historical) volatility is computed from past prices. It describes what already happened.
- Implied volatility is backed out of option prices. It describes what option traders are collectively pricing in for the future.
Volatility and market phases are linked, but loosely. Bear markets and corrections tend to be volatile. Bull markets tend to be calmer, though not always. Volatility is therefore a gauge of stress, not a label for a phase.
What the VIX is
The VIX is the Cboe Volatility Index. Cboe is the exchange operator that publishes it. It is calculated from prices of S&P 500 index options with about 30 days left until expiry. Options are contracts that pay off depending on where the index ends up. When traders expect large moves, they pay more for options, and the VIX rises.
The VIX is quoted in percentage points and is annualized. A reading of 20 means options are priced as if the S&P 500 would have an annualized standard deviation of about 20%. It does not predict direction. A high VIX says traders expect large moves, up or down.
Because the VIX rises when investors pay up for protection against falls, the press calls it the "fear gauge". That nickname is a simplification, since the index measures expected movement size, not fear as such.
Turning a VIX reading into an expected move
To convert an annualized figure into a 30-day figure, scale it by the square root of the time fraction. This rests on the assumption that variance grows in proportion to time. For 30 calendar days the factor is the square root of 30/365, about 0.287.
import math
def one_sd_move(vix, calendar_days=30):
"""Approximate one-standard-deviation index move implied by a VIX level."""
return vix / 100 * math.sqrt(calendar_days / 365)
for level in (12, 20, 40, 80):
print(f"VIX {level}: about +/-{one_sd_move(level):.1%} over 30 days")The output is roughly ±3.4%, ±5.7%, ±11.5%, and ±22.9%.
Read these numbers carefully. A "one standard deviation" move is not a worst case. If returns were normally distributed, about one month in three would see a bigger move than that. Real markets have fatter tails, so extreme moves happen more often than a normal curve suggests.
Typical VIX ranges
The long-run average of the VIX is close to 20. The table below gives common informal ranges. They are conventions, like the 10% and 20% rules for corrections, and different writers draw the lines in slightly different places.
| VIX level | Common description | Typical setting |
|---|---|---|
| Below about 15 | Calm | Steady bull market, low demand for protection |
| About 15 to 25 | Normal | Everyday market with ordinary pullbacks |
| About 25 to 35 | Elevated | Corrections, or uncertainty around events |
| Above about 40 | Stressed | Crises such as late 2008 and March 2020 |
In both 2008 and 2020 the VIX closed above 80, its highest closes on record. Those readings came with fast, deep declines. They also came near the lows of those declines, not before them.
How the VIX behaves around declines
Three patterns recur:
- It moves opposite to the index. The VIX usually rises when the S&P 500 falls, and falls when the index rises. The relationship is strong but not exact.
- It spikes fast and decays slowly. Fear arrives suddenly, while calm returns gradually.
- It mean-reverts. Extreme readings do not last. After a spike, the VIX has historically drifted back toward its average over weeks or months.
Realized volatility from a price series
You can compute realized volatility yourself. Take the daily returns, find their standard deviation, then annualize by multiplying by the square root of 252, the usual number of trading days per year.
import math
import statistics
def realized_vol(prices, periods_per_year=252):
"""Annualized standard deviation of simple period returns."""
returns = [b / a - 1 for a, b in zip(prices, prices[1:])]
return statistics.stdev(returns) * math.sqrt(periods_per_year)
calm = [100, 100.5, 101, 101.2, 101.8, 102.3]
rough = [100, 103, 98, 104, 99, 105]
print(f"calm: {realized_vol(calm):.1%}")
print(f"rough: {realized_vol(rough):.1%}")The calm series prints a low figure, in the single digits. The rough series prints a figure many times larger, because its daily swings are about 5% in size. Both series end higher than they began. Volatility describes the path, not the destination.
Comparing the VIX with realized volatility is informative. The VIX has historically sat above subsequently realized volatility more often than below it. The usual explanation is that option buyers pay a premium for protection, much as people pay more for insurance than the expected payout. This gap is called the volatility risk premium. In a sudden crash, realized volatility can overshoot the VIX for a time.
Other sentiment indicators
The VIX is one of several gauges. Each looks at a different part of investor behavior:
- Put/call ratio. The number of put options (bets on falls or protection) traded divided by call options (bets on rises). A high ratio means more defensive positioning.
- Investor surveys. The American Association of Individual Investors (AAII) publishes a weekly survey of how many members are bullish, bearish, or neutral.
- Composite "fear and greed" indexes. Some media outlets blend several inputs, such as momentum, volatility, and demand for safe assets, into one score. The method varies by publisher and is not standardized.
- Market breadth. This counts how many stocks rise versus fall. A rising index with fewer and fewer participating stocks can signal weakening support.
- Fund flows. Data on money moving into or out of stock funds shows what investors are doing, not just what they say.
Some analysts use sentiment as a contrarian signal. The idea is that extreme pessimism means most sellers have already sold, and extreme optimism means most buyers are already in. This has worked at some turning points, but it has also failed repeatedly. Sentiment can stay extreme for a long time, and a market can keep falling after pessimism looks "extreme".
Common errors
- Treating a high VIX as a sell signal or a buy signal. The VIX describes current pricing of risk. It does not give a reliable trading rule by itself.
- Reading the VIX as a forecast of direction. It is symmetric. A VIX of 30 priced in large moves both ways.
- Forgetting the time frame. The VIX covers the next 30 days. It says little about next year.
- Confusing the VIX with an investable asset. You cannot buy the index itself. Products tied to VIX futures have costs and can behave very differently from the index. Their long-term returns have often been poor.
- Ignoring fat tails. A one-standard-deviation estimate understates how bad an unusual month can be.
- Using indicators as a substitute for the drawdown. Your actual loss is measured by your portfolio's drawdown, not by the VIX.
Using these gauges sensibly
For a long-term investor, the useful job of these indicators is context. A VIX near 40 tells you that the people who price risk for a living expect large moves, so a decline of several percent in a week is not unusual. That can help you avoid panic. A very low VIX tells you that protection is cheap and the mood is calm, which is a reminder that drawdowns can start from quiet periods.
None of this replaces a plan made in advance. The next chapters turn to how investors behave when these gauges spike, and how an allocation and rebalancing plan can reduce the need to react.
Exercise
The VIX closes at 25. Using the square-root-of-time scaling in this chapter, roughly what one-standard-deviation move over the next 30 calendar days is implied for the S&P 500? Does this mean the index is expected to fall?
Show answer
25% x sqrt(30/365), which is 25% x 0.287, gives about 7.2%. No. The VIX is symmetric and says nothing about direction. It implies that moves of about 7% up or down are within one standard deviation, and larger moves happen with meaningful probability.
Exercise
Two stocks both rise 5% over a year. Stock A gains about 0.4% every week. Stock B swings between +4% and -3% from week to week. Which has the higher realized volatility, and does that make it the worse investment?
Show answer
Stock B has the higher realized volatility, because its returns vary far more from week to week. Volatility alone does not make it worse, since both ended up 5%. Stock B's path was rougher, so it likely had larger drawdowns along the way, which matters for investors who might sell during a decline.
Exercise
Why can a VIX reading above 40 appear near a market low instead of before it, and why is that a problem for a rule such as "sell when the VIX exceeds 40"?
Show answer
The VIX spikes when prices are already falling fast and demand for protection is at its peak. By the time it passes 40, much of the decline has usually occurred, and spikes tend to fade as the market stabilizes or rebounds. A sell rule triggered at that point would lock in losses near the bottom.