The Z-score measures how far price is from its mean in standard deviations: z = (price − mean) / standard deviation. z = 0: price on its mean; |z| > 2: a rare gap, used as a mean-reversion signal.
Example: 20 SMA = 100, 20-bar standard deviation = 2, price = 94 → z = −6 / 2 = −3. Under a normal distribution, |z| > 2 would happen about 5% of the time and |z| > 3 about 0.3%. In markets, fat tails make extreme z values far more common.
Reading the z-score: it is plotted below price with lines at +2, 0 and −2. Typical plan: buy when z drops below −2, exit when it returns to 0 (price is back at its average), cut if |z| goes beyond 4. The z also works as a common thermometer to compare assets with very different volatilities.
Advantage: z adapts to volatility, unlike a fixed % gap. Limit: mean and standard deviation are estimated from the past; if the market changes regime, price can drift further away. Pros cap position size and cut if |z| exceeds a break threshold (for example 4).
Examples
ZED-X (fictional market) : The gold curve is the 20 SMA. Assume an SMA at 60 and a standard deviation of 1.2: a dip to 57.3 gives z = −2.7 / 1.2 = −2.25, below the −2 threshold: buy signal. The exit comes when price returns toward 60 (z = 0).
August 2007: the “quant quake” : In the week of 6 August 2007, many market-neutral quant funds betting on equity mean reversion suffered heavy losses within a few days. Khandani and Lo (2007) attribute it to forced unwinding of very similar positions held by many players. Lesson: when everyone sells the same positions, extreme z values get even more extreme before reverting; leverage and size must survive that scenario.
Key terms
Z-score
Distance from the mean expressed in standard deviations
Standard deviation
Measure of how widely prices spread around their mean
Fat tails
Extreme events that happen more often than the normal distribution predicts
Regime
Market phase with stable properties (calm, trend, crisis); a change breaks past statistics