Mean reversion: what would have to return, and why?
Distinguish price, spread and residual mean reversion, causal z-scores and half-life through a worked example with explicit exits and failure conditions.

A pendulum hanging to one side has a reason to move back: gravity and the geometry of its suspension. A currency chart above a moving average has a line drawn underneath it. The resemblance is visually persuasive, but the line does not supply an equivalent force. Before calling a trading rule mean reverting, we need to identify what is displaced and what could make that displacement diminish.
Consider a screen showing a fictional exchange rate at 1.1040 against a recent average of 1.1000. On another screen, two fictional assets trade at 105 and 100, leaving a difference of five. Both screens will soon produce the same standardised reading. They nevertheless describe different propositions, different positions and different ways of losing money.
This article develops an explicit hypothesis about a reverting quantity. All prices, coefficients, windows, costs and trade paths below are invented for explanation. They are not historical findings or results from Atlas, a robot or an executable investment opportunity. The purpose is to turn an attractive chart pattern into a claim whose meaning survives the next observation.
Distance from an average describes the present; a reason to return concerns the future. Keeping those statements separate makes it possible to discuss mean reversion without pretending that every expensive currency, wide spread or extreme indicator must eventually come back.
1. Name the quantity before naming the strategy
The first candidate is a price level. A claim about EUR/USD returning towards a particular number concerns dollars per euro. Selling that pair expresses a directional view about the exchange rate. Its historical average is easy to calculate, but the calculation does not identify a permanent equilibrium between two economies. A different starting date can produce a different average without changing today’s market.
A second candidate is a spread between assets. Here spread means a specified combination of two prices, rather than the difference between the bid and ask. If both assets use the same currency and comparable units, subtracting one from the other can define a quantity with a clear monetary interpretation. Without that unit agreement, even an apparently simple subtraction needs explanation.
A third candidate is a model residual: the observed value of one series minus a fitted relationship involving another. An intercept and a hedge coefficient may be part of that relationship. The residual depends on those estimates, their estimation dates and the data transformations. A residual is an object you construct, not a separately quoted instrument waiting on an exchange.
Returns, volatility and deviations from a seasonal pattern are other possible quantities. A process with stationary returns need not have a stationary price. A volatility measure moving towards its typical level does not imply that the price will reverse its last move. Naming the object prevents a reasonable observation about one series from being used to support an unrelated trade.
Write its definition in words that include the units and clock: for example, the difference in dollars between one unit of A and one unit of B, measured at synchronised daily observations. That sentence already excludes several ambiguities. It also tells you which prices must be collected before the claim can be examined and which inventory would correspond to the proposed exposure.
2. An average is not an economic mechanism
A plausible explanation identifies who might respond to a displacement, how that response affects the chosen quantity and what could prevent it. Imagine two contracts with closely related deliverables. Substitution might matter if participants can obtain similar exposure through either contract. That is a mechanism to investigate, subject to contract terms and costs, rather than evidence that any two correlated lines should converge.
For our fictional assets, suppose the research hypothesis is that their economic exposures are sufficiently similar for unusually large differences to attract substitution. We have not established that this happens. We would need to describe the shared exposure, the differences that remain, the participants able to switch and the constraints on their activity. Otherwise the explanation is merely a story attached to a regression.
An anchor needs a reason to remain relevant. A sample average can move because old observations leave the window, even if no participant changes behaviour. A contractual conversion relationship, a temporary inventory imbalance and an estimated long-run association are distinct possible anchors. They deserve different horizons and different failure conditions. One cannot borrow the certainty of a contract for a statistical association.
The same discipline applies to currencies. A past exchange rate may be familiar without being a price at which anyone is obliged to transact again. A statement about a relative valuation over a long horizon also does not identify a short-term entry or a survivable holding period. The mechanism must operate on a clock compatible with the proposed trade.
Ask what observation would weaken the explanation. If the supposed substitutes cease to have comparable exposure, a wider spread may reflect a new relationship rather than a larger bargain. If the explanation cannot name any such condition, it is difficult to distinguish it from an unconditional belief in eventual recovery. The practical role of the economic argument is to constrain the model, including when to stop using it.
3. Two readings of two standard deviations
For the exchange-rate screen, assume the prior observations have a mean of 1.1000 and a standard deviation of 0.0020. A current midpoint of 1.1040 is 0.0040 above that mean, equivalent to forty pips when a pip is 0.0001. Dividing the difference by the standard deviation gives a z-score of two. This describes the chosen historical scale; it supplies no probability of a downward move.
For the second screen, define the spread as the price of A minus the price of B, with a fixed coefficient of one and no intercept. Both fictional assets are quoted in dollars per unit. At A equal to 105 and B equal to 100, the spread is five. Its assumed prior mean is one and its standard deviation is two, so its z-score is also two.
The proposed spread position sells one unit of A and buys one unit of B. A decline in the spread benefits that position before costs. Both prices could rise while the difference shrinks; both could fall; or they could move in opposite directions. By contrast, the currency sale depends on the direction of the exchange rate itself. Equal z-scores do not create equal economic bets.
Nor do the readings imply equal loss potential. The currency exposure, the gross value of the two spread legs, the cost of holding them and the behaviour of each scale estimate differ. Calling both observations extreme skips the information needed to choose a position size. A dimensionless signal is useful for comparison only after its economic meaning is preserved.
We will carry the spread example through the remaining decisions. Its numbers are assumptions supplied to the exercise, not estimates obtained from an undisclosed dataset. The currency example remains a counterexample to a common shortcut: a familiar historical level and a large z-score do not establish that a currency must return to that level.
4. Stationarity belongs to a specification and a period
For the narrow model considered here, weak stationarity means a constant mean, a finite constant variance and an autocovariance that depends on the lag rather than the calendar date. The authors of Forecasting: Principles and Practice distinguish stationary behaviour from trends and explain that differencing changes the series being modelled. That distinction does not establish stationarity for our fictional spread. Stationarity and differencing.
A bounded-looking plot is not enough. A sequence can stay inside a convenient chart range during a short sample while its generating conditions change. Conversely, a stationary model can generate a long excursion away from its mean. The visual impression of comfort or discomfort is therefore an unreliable substitute for specifying the properties being assumed.
Local stability is a narrower claim than permanence. We might investigate whether a spread relationship is approximately stable during a particular operating regime. That still requires an observable definition of the regime and a policy for transitions. Selecting the apparently calm stretches after seeing their outcomes does not tell a live system when those stretches begin or end.
Suppose the mean changes from one to four while the spread remains five. Relative to the old centre, the displacement is four; relative to the new centre, it is one. Which centre is relevant cannot be resolved by subtraction alone. It depends on whether the relationship has changed and whether the change could have been identified with information available at the time.
A moving centre can reduce the measured deviation without reversing the price move. This matters whenever a report celebrates a z-score returning towards zero. The report should decompose the change into movement of the underlying quantity, movement of the centre and movement of the estimated scale. Only the first component directly describes convergence of the original fixed spread.
5. Give the z-score a causal window
For the hypothetical entry, use sixty completed daily spread observations ending on the day before the signal. Their assumed sample mean is one and their sample standard deviation, calculated with a denominator of fifty-nine, is two. The current synchronised observation is five. This particular convention excludes the current observation from the reference window and makes the z-score two.
Including the current observation is not inherently future leakage if it is already known before a later decision. It does, however, define a different statistic. A calculation based on a closing price cannot be assumed available before that close. The important requirement is a recorded sequence of observation, computation and executable action, rather than an ambiguous label such as today’s signal.
Freeze the reference used to explain this trade. For this example, retain the entry mean of one, scale of two and coefficient of one until the position closes. A separate monitoring model may update, but it must not silently rewrite the original target or the exposure. This convention makes the subsequent outcome interpretable and is a design choice, not a universal requirement for every strategy.
Now suppose the spread widens to nine. Against the frozen reference its z-score is four. If a separate updated window instead has mean three and scale four, its z-score is only one and a half. Neither arithmetic operation is wrong. The second reading can look calmer even though the original short-spread position has lost four dollars per basket before costs.
Missing or stale observations also matter. Repeating yesterday’s B price beside today’s A price can create an apparent spread jump that was never simultaneously observable. The timing issue connects directly to when market data becomes available. Our sixty observations are assumed synchronised and complete; this article does not claim that a real provider’s records satisfy that condition.
6. Use tests to ask bounded questions
The augmented Dickey–Fuller test starts with a unit-root null. Its outcome depends on the specified deterministic terms and lag treatment; a failure to reject is not proof that the null is true. The implementation documentation defines the hypothesis and its options. Official ADF documentation.
The KPSS test reverses the starting question: its null is stationarity around a constant or a trend, according to the specification. Its reported p-values are limited by the tabulated range used by the implementation. It should not be interpreted as an unlimited precision score for how stationary a series is. Official KPSS documentation.
Using both can reveal disagreement rather than settle it. A researcher needs to inspect what was tested, how many observations were available and whether a constant-centre specification matches the proposed rule. If both tests leave uncertainty, the uncertainty belongs in the decision. Choosing whichever result supports an intended trade changes the role of the tests from investigation to decoration.
For a relationship between nonstationary prices, cointegration is a more specific question than correlation. The documented Engle–Granger procedure assumes inputs integrated of order one and tests a null of no cointegration. Its residual-based statistic uses the corresponding cointegration calibration. Official cointegration documentation.
A fitted residual does not automatically validate itself. Fitting a coefficient to two series makes the resulting line look purposeful, but does not grant its residual an economic mechanism or a useful trading horizon. Applying a generic test without accounting for how the residual was estimated can also ask the wrong statistical question. Preserve the complete specification alongside the result.
We have run none of these tests on market data here. There are no hidden p-values behind the hypothetical mean and scale. Even a favourable result in an actual investigation would not establish that the next excursion is tradable after costs or that the relationship survives a structural change. That is a limitation of the question being asked, not a reason to replace a careful question with intuition.
7. Let a toy process explain half-life
A simple Ornstein–Uhlenbeck model makes the restoring assumption explicit. With positive speed, fixed centre and constant noise scale, its conditional mean approaches the centre exponentially. Jonathan Goodman’s university exercise states the zero-centred transition distribution; shifting the centre gives the version used here. This is a mathematical model, not an identified law of financial prices. OU transition distribution.
dX(t) = κ × [μ − X(t)] × dt + σ × dW(t)
For an original discrete teaching example, let the daily spread equal one plus eighty per cent of yesterday’s deviation from one, plus an independent zero-mean Gaussian innovation with standard deviation 1.2. If initialised in its stationary distribution, this model has standard deviation two: the innovation variance of 1.44 divided by one minus 0.64 is four. These parameters deliberately match our assumed signal scale.
X(t + 1) = 1 + 0.8 × [X(t) − 1] + ε(t + 1)
ε(t + 1) ~ Normal(mean = 0, variance = 1.2²)
Starting from five, its conditional mean is 4.2 after one daily step, 2.6384 after four and approximately 1.6711 after eight. The expected deviation halves after approximately 3.1063 steps. This half-life follows from the logarithm of one half divided by the logarithm of 0.8. At that interpolated horizon, the conditional mean is three, halfway between the initial five and the centre one.
Half-life is not a deadline for a trade. It concerns decay of a conditional expected deviation in this model. It is neither the time by which half the trades must have closed nor a promise that a particular path will touch the centre. The conditional mean remains above one at every finite horizon in this example, even though random paths can cross it.
The conditional standard deviation after four steps is approximately 1.8245. There is substantial dispersion around the mean of 2.6384 despite the neat downward curve. The mean reaches a target of two only at an interpolated horizon of about 6.2126 steps. Neither that crossing nor the shaded band calculates which exit barrier a realised trade will hit first.
8. Estimating a speed creates another assumption
An observed series does not arrive with its autoregressive coefficient printed on it. Estimating the daily coefficient can produce uncertainty large enough to change the interpretation. For illustration, coefficients of 0.6, 0.8 and 0.95 imply half-lives of approximately 1.3569, 3.1063 and 13.5134 daily steps under the same formula. A small-looking difference near one can mean a much longer proposed wait.
These are sensitivity calculations, not confidence limits from data. To report an estimated half-life responsibly, preserve the fitted coefficient, its uncertainty method, the sample and the time unit. If plausible coefficients reach one, the simple finite positive half-life story becomes fragile. A negative coefficient describes alternating deviations and is outside the monotone-decay interpretation used in our example.
The observation clock belongs inside the parameter. A coefficient estimated from hourly observations cannot be read as a daily speed. Irregular intervals need explicit treatment rather than a row count disguised as elapsed time. Under an exact OU sampling interpretation, the coefficient equals the exponential of minus speed times the interval; that relationship is not the same as every rough discrete approximation.
Parameter estimation also depends on what is held fixed. Estimating the spread coefficient, centre, scale and decay speed on the same short window can produce an attractive description that is sensitive to individual observations. Re-estimating all four whenever the position struggles can make it impossible to distinguish adaptation from repeatedly changing the original claim.
A useful diagnostic is to keep the quantity definition fixed while inspecting whether the proposed speed is stable across relevant periods and observation frequencies. This does not demand identical estimates. It asks whether the differences have an explanation compatible with the intended holding period. A model that alternates between rapid decay and virtually no decay needs that instability explained before its average speed becomes an operating rule.
9. Translate the spread into a finite position
Return to the fictional entry at A equal to 105 and B equal to 100. One basket sells one unit of A and buys one unit of B. Gross exposure is 205 dollars; the initial difference in proceeds is five dollars, but that difference is not the capital required to hold the position. Financing, collateral and access to the short leg are deliberately unspecified in this teaching exercise.
Assume a total round-trip implementation cost of 0.40 dollars per basket, charged in the final accounting. For the basic calculation, exclude additional financing and taxes. This flat cost is invented, not a broker quote, and it is held constant only to isolate the spread arithmetic. A real implementation would need separate costs and execution prices for both legs.
Set a profit-taking signal at a spread of two, a stop signal at seven and a time exit after eight daily steps if neither price-based exit has already occurred. Signals are evaluated on the stipulated synchronised observations. For the first three scenarios below, assume execution at those same prices; the fourth scenario will deliberately violate the idea of a fill exactly at the stop level.
The target is a position rule, not a forecast. Moving from five to two produces a gross gain of three dollars and a net gain of 2.60 after the assumed cost. Moving from five to seven produces a gross loss of two and a net loss of 2.40. The toy conditional mean does not supply the probabilities of those events under this exit policy.
The time exit has no fixed monetary outcome. At the eighth observation, the result depends on the spread actually observed and the executable prices, not the toy mean of 1.6711. Computing profit from that mean would replace a path-dependent policy with an average that ignores earlier exits. Our rules therefore remain a worked decision specification rather than a return forecast.
10. Follow both legs through four outcomes
In the first hypothetical outcome, A falls from 105 to 103 while B rises from 100 to 101. The spread becomes two. The short A leg gains two dollars and the long B leg gains one. Together they earn three before costs, or 2.60 after the assumed 0.40. The convergence appears in both the spread change and the inventory accounting.
In the second outcome, A rises to 110 and B rises to 108. The spread again becomes two, but the short A leg loses five while the long B leg gains eight. The same net result follows. This path demonstrates why spread reversion does not mean that the more expensive asset must fall in absolute terms. Relative movement is the relevant quantity for the fixed basket.
In the third outcome, A rises to 108 and B to 101. The spread reaches seven. The short leg loses three while the long leg gains one, leaving a gross loss of two and a net loss of 2.40. The rule closes at the stop under the stated execution assumption. A subsequently favourable move would not retrospectively remove that realised exit.
In the fourth outcome, the first actionable observation after entry is A equal to 110 and B equal to 101, giving a spread of nine. Assume both legs can be closed there. The short loses five and the long gains one, so the net loss becomes 4.40 after costs. A stop threshold is not a guaranteed loss ceiling. The example supplies no intermediate executable observation at seven.
The fixed cost also makes the comparison unusually tidy. If one leg’s execution deteriorates, the basket may not close at the displayed spread. The related discussion of bid, ask and transaction spread explains why a midpoint and an executable side are different references. Here, the arithmetic is exact only under the explicitly assigned fills and cost assumptions.
11. Do not erase a loss by changing the residual
Suppose the third scenario has occurred: A is 108 and B is 101. Under the entry coefficient of one, the spread is seven. A newly fitted coefficient of 1.04 would instead make the residual 2.96, with the intercept still zero. The residual appears much closer to the old target even though the held basket has not changed and its gross loss remains two dollars.
The difference of 4.04 comes entirely from multiplying B’s current price of 101 by the coefficient change of 0.04. No profitable convergence is required. This is why comparing residual values across model versions without identifying the versions can produce a misleading history. The apparent improvement may belong to the definition rather than to either asset price.
Changing the hedge changes the economic question. To hold the new one-to-1.04 relationship, the position would need additional B exposure, with a transaction, a new cost and a revised inventory record. Even then, the old loss remains part of the history. A newly defined basket cannot retroactively transform the previous basket’s result.
Intercept changes create a similar accounting issue without necessarily changing the hedge quantities. Subtracting a new intercept shifts the displayed residual, but does not transfer cash into the account. When reviewing convergence, retain a price-based ledger alongside the model-based signal. They answer related questions, yet they should reconcile only under the corresponding fixed definitions.
Adaptation can be legitimate when designed in advance. The record should state when parameters update, whether open positions change, which costs apply and what happens if the new model invalidates the old rationale. For our example, a suspected relationship change closes or suspends the original rule; it does not authorise relabelling a losing position as a fresh bargain without another decision.
12. Separate a wider deviation from permission to add
The temptation to average into a losing mean-reversion position follows naturally from the language of cheapness. If a spread of five looked attractive, seven can seem more attractive. But that conclusion requires the same centre, scale and restoring mechanism to remain relevant. The larger deviation might instead be evidence that the relationship has changed or that the original scale underestimated adverse movement.
Our hypothetical policy permits one initial basket and no additions during that trade. That is an explicit design constraint, not a claim that every other inventory policy is impossible. No averaging is part of this experiment’s definition. A staged-entry strategy would need its own maximum exposure, conditions, exit accounting and evaluation; it cannot be smuggled in after the first position starts losing.
For a sizing illustration, allocate a hypothetical loss allowance of 24 dollars to this idea. Dividing by the planned 2.40 loss per basket gives ten baskets if the stop fills exactly as assumed. Their gross entry exposure is 2,050 dollars. Under the jump scenario, however, ten baskets lose 44 dollars. The allowance calculation does not guarantee that realised losses remain within the allowance.
A risk budget constrains a decision; it does not bind future execution. Position size must be assessed against plausible adverse fills and the resources needed to hold both legs, not just the distance to a line. Because those resources and distributions are unspecified here, ten baskets is an arithmetic illustration rather than a recommended size.
Time deserves the same discipline. Extending the eight-step deadline because the spread has not yet returned changes the experiment. It may be possible to design a conditional extension rule, but the extension must have a rationale and a finite limit before the result is known. Otherwise the original short-horizon hypothesis can become an open-ended commitment justified only by an unrealised loss.
13. Inspect episodes rather than counting reassuring dots
A series may spend many observations near its centre and still produce a small number of prolonged excursions that dominate trading outcomes. Counting every daily reading inside a band gives those quiet stretches substantial weight. The operating question is different: after the specified entry condition, what happens before the target, stop or time limit ends the position?
An episode begins with an eligible signal while no position is already open. Consecutive readings above the threshold during one open trade are not separate opportunities under our one-basket rule. Recording them as independent successful forecasts after an eventual recovery can exaggerate the amount of evidence. The inventory policy determines how observations become trades.
Preserve maximum adverse excursion, elapsed time, actual exit reason and both leg prices for each episode. Also preserve periods with no eligible entry. This makes it possible to distinguish a process that appears stable mostly because it offers few excursions from a process that repeatedly provides the kind of movement the rule is meant to use.
Observed convergence and executable convergence need separate records. A midpoint spread may touch two when one quote is stale or the tradable sides do not support the basket exit. The figure’s perfect reconciliation is a teaching convenience. In an empirical review, explaining discrepancies between the signal series and the realised inventory is part of determining whether the original quantity is operationally meaningful.
Finally, classify evidence by what it can establish. An equation shows a consequence of assumptions. Our four paths show accounting under invented observations. A historical study would show what happened in a defined dataset under a reproducible rule. None of these is interchangeable with a forecast of the next trade. The useful conclusion depends on retaining those distinctions rather than accumulating reassuring labels.
14. Write the hypothesis so someone can challenge it
A compact research statement can now be specific: investigate whether the synchronised daily difference between A and B, with coefficient one, has a sufficiently stable local centre to justify studying a finite short-spread rule after an upper deviation. The economic rationale is possible substitution between comparable exposures; the reference window, costs and inventory policy are declared separately.
The statement should preserve the uncomfortable alternatives. The spread might have no stable centre. The centre might change faster than it can be estimated. The relationship might be statistically detectable but too slow or too costly for the proposed position. The signal could also be constructed from prices that cannot be traded together. Each alternative suggests a concrete investigation rather than a generic warning.
The strongest mean-reversion explanation includes the conditions under which it should be abandoned. For our example, the response to a suspected relationship break is to stop initiating the rule and review the definition. Open positions follow their declared exits unless a separately specified invalidation rule acts earlier. A new explanation begins a new recorded decision, with the old outcome still visible.
Keep the quantity definition, parameter version and exit ledger together in an experiment journal. That record lets a reviewer ask whether an apparent return came from prices, changing estimates or a modified basket. It also prevents the pendulum metaphor from carrying more weight than the actual mechanics of the proposed system.
If you want to apply this reading method to a concrete robot, the TradeAndRoll demo is a next place to inspect what its rules and available information actually say. Start by asking which quantity is supposed to revert, what evidence is supplied and how the rule exits when it does not. The label mean reversion alone answers none of those questions.
Sources
- Hyndman and Athanasopoulos, Stationarity and differencing: definition and transformation of a time series, not evidence about these assets.
- Statsmodels, ADF, KPSS and cointegration: hypotheses and implementation scope.
- Jonathan Goodman, Stochastic Calculus, Assignment 2, question 2: mathematical OU transition law. All trading examples and chosen numbers in this article are original hypothetical constructions.



