Vai al contenuto principale

Mean Reversion: Something to Know for Statistics and Finance

Learn what mean reversion is, how to identify mean-reverting behavior in time-series data, and how the concept is used in statistics, trading, and quantitative finance.
5 ott 2026  · 15 min leggi

Scopri con l'IA

ChatGPTClaudePerplexity

Imagine you're watching the spread between two airline stocks, companies that tend to move together because they share the same fuel costs, routes, and passenger demand. One morning, the spread widens sharply: something idiosyncratic hit one ticker while the other barely moved. A quant trader looks at this and asks a very specific question: is that spread likely to narrow back, or has something structural shifted?

Mean reversion is the tendency of a variable to move back toward a long-run level after deviating from it. It underpins a wide range of time-series models and quantitative trading strategies, and it's the statistical engine behind an entire family of approaches known as statistical arbitrage. The critical thing to keep in mind, and this article will keep coming back to it: mean reversion is a property you test for, not an assumption you make about prices.

What Is Mean Reversion?

Mean reversion describes a dynamic tendency: when a variable drifts away from its equilibrium level, forces tend to pull it back. That equilibrium might be a long-run statistical mean, a fair value implied by fundamentals, or a cointegrating relationship between two series. A positive deviation (the value sitting above the mean) tends to be followed by a decline. A negative deviation tends to be followed by a rise.

What makes mean reversion interesting is what it implies about shocks. In a mean-reverting process, a shock is temporary. Its effect dissipates over time, and the series eventually returns toward equilibrium. That's very different from a random walk, where every shock is permanent, and the series has no "home" to return to. We'll get to that distinction properly in a moment.

How Mean Reversion Works

Here's the basic intuition. A variable fluctuates around an equilibrium level. A shock (an earnings miss, a policy surprise, a liquidity crunch) pushes it away from that level. The farther it moves, the stronger the restoring force may be. Over time, the shock's effect fades, and the variable drifts back.

Contrast that with a random walk. Each period's value equals last period's value plus a random shock, and that shock never goes away. There's no equilibrium to return to; the series just wanders. The difference matters enormously for forecasting: mean-reverting series are, at least in principle, somewhat predictable over longer horizons. Random walks are not.

How to Identify Mean Reversion

Moving from intuition to evidence requires statistical analysis. No single test is enough. You want multiple forms of evidence pointing in the same direction.

Plot the time series

Start visually. A mean-reverting series tends to oscillate around a relatively stable level rather than drifting persistently upward or downward. But visual inspection is easy to fool: a trending series can look mean-reverting over short windows, and a slow mean-reverting process can look almost indistinguishable from a random walk. The plot is a first pass, not a verdict.

Examine autocorrelation

Autocorrelation measures the correlation between a series and its own lagged values. In a mean-reverting process, the autocorrelation function (ACF) decays rapidly toward zero, reflecting the transient nature of deviations. By contrast, a unit-root process shows autocorrelation that persists near 1.0 even at long lags. The ACF plot can reveal this pattern — a quick drop-off is consistent with mean reversion, while a slow, linear decline suggests non-stationarity. That said, autocorrelation alone doesn't confirm stationarity. It's one piece of evidence.

Test for stationarity

The Augmented Dickey-Fuller (ADF) test is the standard starting point. It tests the null hypothesis that the series has a unit root, meaning it's a random walk. Rejecting the null suggests the series may be stationary, which is closely associated with mean-reverting behavior. A p-value below 0.05 gives you grounds to proceed, though not certainty.

Estimate the speed of mean reversion

If the tests support mean reversion, the next question is how fast it happens. The speed parameter (often denoted κ in continuous-time models, or θ in some parameterizations) tells you how quickly deviations decay. High speed means deviations shrink quickly; low speed means the process wanders quite a bit before returning. This matters practically: a very slow mean-reverting process may not be tradeable over realistic horizons.

Mean Reversion vs. Random Walk

This distinction deserves its own section because it's the one people get wrong most often.

A random walk has no long-run mean to revert to. Shocks are permanent. The series is non-stationary, meaning its statistical properties (mean, variance) change over time. Forecasting beyond the very short run is futile. A mean-reverting process is stationary (or at least trend-stationary): its properties are stable, shocks are transient, and longer-horizon forecasts carry real information.

Here's the trap: a price series that has returned to a particular level several times in history isn't necessarily mean-reverting. Wander long enough, and any random walk will revisit its starting value. The question is whether there's a structural pull back to equilibrium, and that requires testing, not pattern recognition.

Property

Mean-reverting

Random walk

Long-run behavior

Oscillates around stable level

Drifts without bound

Shock persistence

Transient

Permanent

Stationarity

Stationary

Non-stationary

Forecastability

Yes, over longer horizons

Very limited

Mean Reversion and Stationarity

Mean reversion and stationarity is another point of confusion. They're closely related, but they're not the same thing. Stationarity is a formal statistical property: a stationary process has a constant mean, constant variance, and autocovariance that depends only on the lag, not the time period. Mean reversion is a dynamic tendency, the pull back toward equilibrium.

Most mean-reverting models assume stationarity, and most stationary processes exhibit some form of mean-reverting behavior. But the relationship isn't perfectly one-to-one. A process can be stationary without especially strong mean-reverting dynamics, and the label "mean-reverting" sometimes gets applied loosely to processes that are only weakly stationary. Worth keeping the distinction clear when you're reading the literature.

Mean Reversion vs. Momentum

Mean reversion and momentum pull in opposite directions. Mean reversion assumes that unusually large moves are more likely to reverse. A stock that has fallen sharply relative to its historical range is expected (under this view) to recover, not because prices "must" revert, but because the deviation from fair value creates a return opportunity.

Momentum assumes the opposite: recent directional movement is more likely to continue. A stock that has risen strongly over the past twelve months is expected to keep outperforming.

The evidence for momentum is quite strong at medium-term horizons (one to twelve months), while mean reversion tends to show up more clearly at short horizons (days to weeks) and very long ones (multi-year). Markets can, and do, exhibit both behaviors simultaneously at different time scales. Neither is a universal law.

The Ornstein-Uhlenbeck Process

The standard continuous-time model for mean-reverting behavior is the Ornstein-Uhlenbeck (OU) process:

Ornstein-Uhlenbeck process equation

Each term does something specific. The κ(μ − Xt) part is the restoring force: when Xt sits above the long-run mean μ, the process gets pulled downward; when below, upward. The parameter κ controls how strong that pull is, the speed of mean reversion. The σ dWt term adds random noise with volatility σ.

Simulating OU paths with different κ values makes the intuition vivid. With high κ, paths hug the mean tightly, and deviations collapse quickly. With low κ, paths wander broadly and look, over short windows, almost indistinguishable from a random walk. This is why estimating κ carefully matters: a statistically significant but tiny κ may not be actionable in practice.

Half-Life of Mean Reversion

The OU model gives us κ, but κ on its own is hard to reason about intuitively. The half-life translates that abstract speed into something concrete: the expected time for a deviation from equilibrium to shrink by half.

Half-life of mean reversion formula

A half-life of three days means the process is rapid; deviations collapse within a week. A half-life of six months means you'd need a long holding period to capture the reversion, which creates its own risks. Quant traders compare estimated half-lives against their target holding periods before committing to a strategy.

One caution: the half-life is an expected value, not a guarantee. Any given deviation could persist much longer, especially around regime changes or structural breaks.

Mean Reversion in Finance

Where does mean reversion actually show up in financial markets? In some places the evidence is solid; in others, less so.

  • Asset spreads. Spreads between related assets (the price difference between two stocks in the same sector, or the yield spread between two similar bonds) are among the most plausible candidates for mean reversion. Neither individual price needs to be stationary; the spread between them can be, if the assets share a long-run relationship.
  • Interest rates. Short-term interest rates show historically strong mean-reverting behavior. Central banks have target ranges, and rates that move too far from them tend to get pulled back by policy. Longer-term rates are more debated.
  • Volatility. Implied and realized volatility are widely understood to be mean-reverting. Volatility spikes, like those seen during March 2020, are dramatic but temporary. The VIX eventually returns to more normal levels, and volatility traders routinely exploit this.
  • Valuation ratios. Price-to-earnings ratios, price-to-book ratios, and similar metrics show long-run mean reversion, though the "long run" can be very long indeed. Relying on valuation mean reversion over short horizons is a well-documented source of early losses.
  • Commodity prices. Commodity prices (oil, natural gas, agricultural products) are often modeled as mean-reverting to long-run marginal cost of production. When prices spike well above production cost, new supply comes online; when they crash below, supply contracts. The mechanism is real, but so is the uncertainty about where the "true" mean sits at any given time.

One thing worth flagging: individual equity prices are generally non-stationary. It's spreads, returns, volatility measures, or other transformations that tend to show mean-reverting behavior, not raw price levels.

Mean Reversion, Correlation, and Cointegration

There's yet another conceptual distinction that trips up even experienced people in this space, and getting it wrong leads to poorly constructed strategies.

  • Correlation measures how two variables move together. High correlation means they tend to rise and fall at the same time. But it says nothing about whether the spread between them is mean-reverting. Two stocks can have a correlation of 0.9 and still make a poor pairs trade, because correlation tells you nothing about whether the spread between them is stable over time.
  • Cointegration is a stronger statement. Two non-stationary series are cointegrated if a linear combination of them is stationary, meaning they share a long-run equilibrium relationship and can't drift apart permanently. Both stocks can trend upward together for years, then diverge permanently: that's high correlation with no cointegration, and no reliable trade. Testing for cointegration using the Engle-Granger test or the Johansen procedure gives you a more defensible basis for assuming the spread will revert. This is the statistical foundation for pairs trading.

You can have two assets with 0.95 correlation whose spread is a random walk. Always test.

Mean Reversion and Pairs Trading

Pairs trading is the clearest example of mean reversion put to practical use, and you might have landed on this article because of that connection.

You start by identifying two assets with a plausible long-run economic relationship: two oil majors, two large-cap banks, two consumer staples companies. The economic rationale matters here. Screening purely on historical correlations without a fundamental basis tends to produce spurious relationships that fall apart out of sample. You construct a spread, typically a ratio or a linear combination of the two prices, using a hedge ratio estimated from regression rather than a naïve one-to-one assumption. Then you test whether that spread is mean-reverting using the tools covered above: the ADF test, autocorrelation analysis, half-life estimation. If the evidence is supportive, you proceed.

The trade itself is fairly straightforward. When the spread widens unusually far from its historical mean, measured using a z-score that standardizes the deviation as (current spread minus moving mean) divided by standard deviation, you go long the underperformer and short the outperformer, expecting the spread to narrow. A z-score of +2 signals the spread is two standard deviations above its historical norm; a common approach is to enter at ±2.0 and exit when it reverts toward zero. The key point, one that gets lost in simpler explanations: it's the spread that's expected to mean-revert, not either individual stock. The long/short structure also reduces exposure to broad market movements. The profit comes from the relative move, not market direction.

Statistical Arbitrage: Taking It Further

Pairs trading is the most intuitive entry point into mean reversion strategies, but it's one instance of a broader family of approaches known as statistical arbitrage.

Statistical arbitrage (stat arb) uses statistical relationships between securities to spot relative mispricing: when two historically linked securities temporarily diverge from their expected relationship, you bet they'll converge. One important clarification: statistical arbitrage is not risk-free arbitrage. Traditional arbitrage exploits near-mechanical price discrepancies, the same asset trading at different prices on two exchanges, where the profit is close to certain if you can execute fast enough. Statistical arbitrage bets on probabilistic convergence. Entirely different risk profiles.

Mean Reversion Trading Strategies

There are different mean reversion trading ideas. Here are some of them:

  • Z-score strategies. Standardize deviations from a rolling historical mean by the rolling standard deviation. A z-score above +2 signals the variable is unusually extended; below −2 signals it's unusually depressed. Trading based on z-score thresholds is one of the simplest implementations of mean reversion and is widely used for single assets, spreads, and factor portfolios.
  • Bollinger Band strategies. Bollinger Bands place upper and lower envelopes around a moving average, at two standard deviations. When price touches the upper band, the series is extended relative to recent history; when it touches the lower band, it's depressed. The strategy trades the expected return toward the moving average. Keep in mind that the moving average is the "mean" being reverted to, so the relevant question is always whether a given asset actually mean-reverts, not just whether it touches the band.
  • Pairs trading. Already covered above. The spread is the object of interest, and the position is market-neutral by construction.
  • Multi-asset statistical arbitrage. The same logic as pairs trading, extended to portfolios of many assets. You're doing principal component analysis on a large covariance matrix, but the intuition is the same.

Worth saying plainly: a statistical signal doesn't guarantee profitable convergence. Transaction costs, borrowing costs, and regime changes can wipe out apparent edges entirely. The strategies above describe conditions for entering a position, not conditions for making money.

How to Analyze Mean Reversion in Python

Here's where things get practical. The code below walks through a compact mean-reversion analysis on a simulated spread, covering the essentials: plotting, rolling mean, ADF test, and half-life estimation. Swap in a real pairs spread, say the log price ratio of two cointegrated stocks, and the same pipeline applies.

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from statsmodels.tsa.stattools import adfuller
from statsmodels.regression.linear_model import OLS

# Simulate a mean-reverting spread using an AR(1) process
np.random.seed(42)
n = 500
phi = 0.92          # AR coefficient; close to 1 = slow mean reversion
spread = np.zeros(n)
for t in range(1, n):
    spread[t] = phi * spread[t-1] + np.random.normal(0, 1)

spread_series = pd.Series(spread, name="spread")

# --- Step 1: Plot the series with its rolling mean ---
rolling_mean = spread_series.rolling(window=60).mean()
plt.figure(figsize=(10, 4))
plt.plot(spread_series, label="Spread", alpha=0.7)
plt.plot(rolling_mean, label="60-period rolling mean", linewidth=2)
plt.axhline(0, color="black", linestyle="--", linewidth=0.8)
plt.title("Simulated Mean-Reverting Spread")
plt.legend()
plt.tight_layout()
plt.show()

# --- Step 2: ADF test for stationarity ---
adf_result = adfuller(spread_series.dropna())
print(f"ADF statistic : {adf_result[0]:.4f}")
print(f"p-value       : {adf_result[1]:.4f}")
print("Reject unit root?", "Yes" if adf_result[1] < 0.05 else "No")

# --- Step 3: Estimate half-life via AR(1) regression —
lagged = spread_series.shift(1).dropna()
delta  = spread_series.diff().dropna()
model  = OLS(delta, lagged).fit()
kappa  = -model.params.iloc[0]           # speed of mean reversion
half_life = np.log(2) / kappa
print(f"\nEstimated half-life: {half_life:.1f} periods")

Running this with the seed above gives a p-value well below 0.05 and a half-life of roughly seven periods. The theoretical value for φ = 0.92 is about 8.7 periods; individual runs will vary around that. Just remember: interpretation matters more than the mechanics. A statistically significant ADF result on a historical window doesn't mean the relationship will hold going forward. This regression omits an intercept, which is valid for zero-mean data. For real spreads with a non-zero mean, add a constant using add_constant(lagged) and extract the second coefficient.

Our Time Series Analysis in Python course goes much deeper on these techniques, including ARIMA modeling, stationarity testing, and forecasting.

Risks and Limitations of Mean Reversion

Mean reversion fails in predictable ways. Knowing the failure modes is as useful as knowing the strategy.

The mean can change

Historical equilibrium levels are estimated from data, and data reflects the past. Structural breaks (a merger, a regulatory change, a shift in competitive dynamics) can invalidate the historical mean entirely. The spread you thought was mean-reverting to zero may now have an equilibrium at +50 basis points. Applying a strategy built on the old mean is a reliable way to lose money. In pairs trading specifically, companies merge, diverge, or change their business models, and a pair that was tightly cointegrated for five years can decouple overnight.

Over a short sample, a trending series can look mean-reverting simply because it reverts to a local moving average. This is especially common in backtests that use a fixed lookback window. The fix is to test across multiple sample periods and to be skeptical of results that only appear over narrow windows.

Transaction costs

Frequent trading eats into returns. A strategy with a two-day half-life might require daily rebalancing, and round-trip transaction costs can easily exceed the expected profit per trade. Shorting adds further costs: securities lending fees and the risk of being bought in by a broker. Slippage between modeled and actual fill prices accumulates across hundreds of trades. Paper returns and live returns can differ dramatically for high-frequency mean-reversion strategies.

Crowded trades

When many funds run similar strategies, they become exposed to each other's behavior. The August 2007 quant meltdown happened precisely because too many equity stat arb funds liquidated simultaneously, and the resulting cascade had nothing to do with the underlying relationships those strategies were built on. When a strategy works, it attracts capital; when it attracts too much capital, it stops working, sometimes gradually and sometimes all at once.

Regime changes

Stat arb models are calibrated to a particular market environment: a volatility regime, an interest rate cycle, a correlation structure. When that environment shifts, every assumption moves at once. It's not one pair breaking down; it's the entire portfolio misbehaving because the statistical properties it was built on no longer hold. Historical lookback windows won't warn you in advance.

Parameter sensitivity

Results depend heavily on the lookback window used to estimate the mean, the threshold for entering trades, and the exit rule. Small changes to any of these can flip a strategy from profitable to unprofitable. Stress-test this explicitly before trusting any backtest.

Backtest overfitting

The most insidious risk. With enough parameters and historical data, you can fit a strategy to almost any past period, and it will degrade sharply in live trading. Walk-forward testing and out-of-sample validation aren't optional.

Conclusion

Mean reversion is one of those concepts that sounds simple until you try to use it. The basic idea, that deviations from equilibrium tend to reverse, is intuitive. What's harder is establishing whether a particular series actually has that property, estimating how quickly it reverts, and building strategies that survive transaction costs, regime changes, and parameter uncertainty. Statistical arbitrage formalizes that challenge into a trading discipline, but the core difficulty stays the same: the relationships you're trading are competing with everyone else who found the same ones.

A few things to take away: test before you assume; pay attention to what's doing the reverting (spreads and transformations, not raw prices); distinguish correlation from cointegration, because they're not interchangeable; and treat the risks above as part of the strategy, not an afterthought. Our Time Series Analysis in Python course covers stationarity testing, ARIMA modeling, and forecasting in depth. For trading applications specifically, Financial Trading in Python covers implementing and evaluating quantitative strategies in practice.


Vinod Chugani's photo
Author
Vinod Chugani
LinkedIn

Vinod Chugani began his career in Tokyo as JPMorgan's youngest Hedge Fund Sales Desk Head and later set an individual sales record at Lehman Brothers, then built a 30-country electronics distribution business past SG$100 million in revenue before pivoting to data. A Duke Economics grad and NYC Data Science Academy alum, he was one of three scholarship recipients out of 100+ applicants for Hugo Bowne-Anderson's Building AI Applications course on Maven. Today, he writes for DataCamp, KDnuggets, Machine Learning Mastery, and Statology on topics from statistics to agentic AI, and mentors data professionals at NYC Data Science Academy with over 1,000 one-on-one sessions to his name.

 

Mean Reversion FAQs

Is mean reversion the same as stationarity?

Not exactly. Stationarity is a formal statistical property: a stationary series has a constant mean, constant variance, and time-invariant autocovariance structure. Mean reversion describes a dynamic tendency, the pull back toward equilibrium after a deviation. Most mean-reversion models assume stationarity, and most stationary processes show some mean-reverting behavior, but the terms aren't interchangeable. A process can be stationary without strong mean-reverting dynamics, and writers sometimes use "mean-reverting" loosely where "stationary" would be more precise.

Can individual stock prices be mean-reverting?

Generally, no. Individual stock prices are typically non-stationary: they trend, drift, and don't settle around a stable level. What can be mean-reverting is a transformation, like the spread between two cointegrated stocks, a valuation ratio like P/E, or short-window returns. When someone claims a stock "always comes back," they're usually confusing a random walk's occasional revisits to past levels with a genuine mean-reverting process.

How do I interpret the p-value from an ADF test?

The ADF test's null hypothesis is that the series has a unit root, meaning it behaves like a random walk. A low p-value (below 0.05 by convention) gives you grounds to reject that null, which is evidence for stationarity and possible mean-reversion. A high p-value means you can't reject the random walk hypothesis. One caveat: the ADF test has low power in small samples and against slowly mean-reverting series, so failing to reject doesn't definitively prove the series is a random walk.

What's the difference between pairs trading and statistical arbitrage?

Pairs trading is a specific two-asset strategy. You go long one asset and short another when their spread deviates from its historical mean, expecting it to narrow. Statistical arbitrage generalizes this to portfolios of many assets, running many mean-reversion positions simultaneously and relying on diversification across uncorrelated signals. Stat arb desks at hedge funds typically run hundreds of positions at once. Pairs trading is the conceptual building block; stat arb is the industrial-scale version.

Why do transaction costs matter so much for mean-reversion strategies?

Because mean-reversion strategies trade frequently. You're entering and exiting as spreads move in and out of threshold bands, and each round trip incurs bid-ask spread costs, commissions, and market impact. A strategy with a two-day half-life might trade dozens of times per month per pair. If the expected profit per trade is small (as it usually is in well-arbitraged markets), transaction costs can easily exceed gross returns. This is why many mean-reversion strategies that look great in backtests disappoint in live trading.

How does the Ornstein-Uhlenbeck process relate to interest rate models?

The OU process is the continuous-time foundation for several classic interest rate models, most notably the Vasicek model. In Vasicek, the short rate follows an OU process, drifting toward a long-run mean at speed κ with volatility σ. This captures the economic intuition that central banks have implicit targets and that rates can't drift to infinity. The model is analytically tractable and produces closed-form bond pricing formulas, which is why it became a standard despite allowing negative rates.

What does half-life tell me practically for a trading strategy?

Half-life gives you a rough estimate of how long you'd need to hold a position for the deviation to shrink by half. A five-day half-life suggests a short-term trade requiring active management; a three-month half-life means a slower, longer-term position. In practice, traders compare estimated half-life against their transaction cost tolerance and holding period constraints. A statistically valid mean-reverting relationship with a two-year half-life is rarely worth trading unless you can afford to wait out long drawdowns.

Can mean reversion and momentum coexist in the same market?

Yes, and they often do at different time horizons. Momentum tends to dominate at medium-term horizons (roughly one to twelve months), where recent winners keep outperforming. Mean reversion tends to dominate at very short horizons (days to weeks, driven by bid-ask bounce and liquidity effects) and at very long horizons (multi-year, where valuations revert to fundamentals). A market can exhibit both patterns without contradiction since they operate at different frequencies. This is also why a naive momentum strategy can look mean-reverting over a short backtest window.

Argomenti
Data Analysis

Learn with DataCamp

Corso

Financial Modeling in Excel

3 ore
28.2K
Scopri come fare modelli finanziari con Excel, tipo flusso di cassa, analisi di scenari, valore temporale e budget di capitale.
Vedi i dettagliRight Arrow
Inizia Il Corso
Mostra altroRight Arrow
Correlato

podcast

Data Science in Finance

The financial world has been irrecoverably changed by the advent of data science. Find out how.
Hugo Bowne-Anderson's photo

Hugo Bowne-Anderson

59 min

Tutorial

Statistical Arbitrage: How Quantitative Trading Strategies Work

Learn what statistical arbitrage is, how quantitative traders identify temporary pricing relationships, and how strategies such as pairs trading and mean reversion work in practice.
Vinod Chugani's photo

Vinod Chugani

9 min

Tutorial

Simple Linear Regression: Everything You Need to Know

Learn simple linear regression. Master the model equation, understand key assumptions and diagnostics, and learn how to interpret the results effectively.
Josef Waples's photo

Josef Waples

7 min

Tutorial

Mean vs Median: Knowing the Difference

Explore the differences between mean and median, learn their applications in data analysis, and know how to choose the right measure for different scenarios.
Samuel Shaibu's photo

Samuel Shaibu

8 min

Tutorial

Arithmetic Mean: A Foundational Tool for Data Analysis

Explore the arithmetic mean's role in data analysis. Learn its formula, applications, and how it compares to other kinds of means and other statistical measures, and understand when each is most useful.
Vinod Chugani's photo

Vinod Chugani

7 min

Tutorial

Measures of Central Tendency: A Comprehensive Overview

Explore the concept of central tendency in statistics, including specialized measures such as mean, median, and mode. Learn how to select the most appropriate measure based on your data characteristics and distribution.
Elena Kosourova's photo

Elena Kosourova

11 min

Mostra AltroMostra Altro