Mean Reversion

Mean reversion is the tendency of a series to move back towards its average after it has moved away from it. An interest rate, a credit spread, a valuation ratio or the volatility of a market can rise or fall for a while, but forces pull it back: a high rate slows the economy, a wide spread attracts buyers. A mean-reverting series is stationary, so a shock fades instead of moving its level for good, as it would in a random walk.

The standard model is the Ornstein-Uhlenbeck process of Uhlenbeck and Ornstein (1930), which Vasicek used for the short-term interest rate: the series is pulled to its long-run mean at a speed proportional to its distance from it.

The formula for the Ornstein-Uhlenbeck process and its half-life is as follows:

\[\,\mathrm{d}X_{t} = a \cdot (b - X_{t}) \cdot \,\mathrm{d}t + \sigma \cdot \,\mathrm{d}W_{t}\] \[\text{Half-Life} = \frac{\ln\left(2\right)}{a}\]

Where \(X_{t}\) is the series, b its long-run mean, a the speed of reversion, sigma the volatility and \(W_{t}\) a Brownian motion. The half-life is the time it takes to close half the gap to the mean, so a fast-reverting series has a short half-life.

For stock prices the evidence is weaker and depends on the horizon. Poterba and Summers (1988) and Fama and French (1988) found that returns over three to five years are negatively correlated, so part of a large rise or fall in prices is later reversed, while over days and months prices are close to a random walk. Mean reversion over a short sample is also hard to tell apart from a random walk, as the tests have little power against a series that reverts slowly.

The Finance Toolkit tests for mean reversion with the unit root tests, whose rejection points to a stationary, mean-reverting series, and with the KPSS test, which takes stationarity as its null hypothesis. The Hurst exponent is below 0.5 for a mean-reverting series and the variance ratio test below 1. The short rate models estimate the speed of reversion and the half-life of interest rates, and the GARCH parameters the half-life of a volatility shock.

Example · ^VIX, ^GSPC · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["^VIX", "^GSPC"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
    benchmark_ticker=None,
)

toolkit.risk.get_hurst_exponent()

Which returns:

Item Value
^VIX 0.3189
^GSPC 0.4412

References

  • Paper Uhlenbeck, G.E. & Ornstein, L.S. (1930). “On the Theory of the Brownian Motion.” Physical Review, 36(5), 823-841.
  • Paper Poterba, J.M. & Summers, L.H. (1988). “Mean Reversion in Stock Prices: Evidence and Implications.” Journal of Financial Economics, 22(1), 27-59.
  • Paper Fama, E.F. & French, K.R. (1988). “Permanent and Temporary Components of Stock Prices.” Journal of Political Economy, 96(2), 246-273.

Updated:

Share