Lesson 5Advanced4 minutes

Price Percentiles & Z-Scores

Percentile rank and z-scores turn a raw price into a relative read, telling you how extreme today's level really is versus its own history.

What it is

A raw price tells you very little on its own. Is $180 high or low? You cannot say without context. Percentile rank and z-scores supply that context by re-expressing today's value relative to a recent distribution, converting an absolute number into a statement about how unusual it is.

  • Percentile rank answers: what fraction of recent observations sit below today's value? A reading in the 95th percentile means today is higher than 95% of the recent sample, near the top of its range.
  • Z-score answers: how many standard deviations is today's value from its recent mean? A z-score of +2 means today sits two standard deviations above average, a statistically stretched level.

Both are normalisation tools: they strip away the units and the absolute level so you can compare any instrument, indicator, or spread on the same relative scale.

How it works

Start by choosing a lookback window, perhaps the last 100 or 252 trading days, and a series to measure (price itself, a return, or an indicator value).

Percentile rank is computed by ranking: count how many observations in the window are below the current value, divide by the total count, and express as a percentage. It makes no assumption about the shape of the distribution, which is its great virtue. The 50th percentile is simply the median.

Z-score is computed parametrically:

  1. Find the mean of the window.
  2. Find the standard deviation of the window.
  3. Subtract the mean from the current value and divide by the standard deviation.

The formula is z = (value minus mean) divided by standard deviation. A z of 0 is exactly average; +1 is one standard deviation high; minus 1.5 is one and a half standard deviations low. Because the z-score assumes a roughly bell-shaped distribution, the recognisable thresholds apply: roughly 68% of values fall between minus 1 and +1, and about 95% between minus 2 and +2.

How to read it

The shared purpose is spotting extremes and judging mean-reversion potential.

  • A high percentile (say above 90) or a high z-score (above +2) flags a level that is stretched to the upside relative to its own recent history. In a range-bound, mean reversion context this argues for fading; in a strong trend it may simply mean the move is powerful and persistent.
  • A low percentile (below 10) or a deeply negative z-score (below minus 2) flags the opposite extreme.
  • Mid readings (40 to 60 percentile, z near 0) say there is no statistical edge from extremity, price is simply normal.

Worked example

A stock has traded over the last 100 days with a mean of $150 and a standard deviation of $10. Today it prints $172.

  1. Z-score = (172 minus 150) divided by 10 = +2.2. That is beyond the two-sigma band, statistically unusual.
  2. Suppose only 3 of the last 100 closes were above $172. Then the percentile rank is the 97th, today is higher than 97% of the recent sample.
  3. Both measures agree: price is at a genuine extreme. The disciplined next question is regime, in a range you might lean toward mean reversion; in a confirmed uptrend a high z-score can persist for weeks, so an extreme reading is a reason for caution, never an automatic short.

Strengths & limits

The strength of percentiles and z-scores is comparability. By normalising to a common scale, you can rank how stretched ten different stocks are at once, or compare today's RSI extreme to today's price extreme, regardless of their native units. Percentile rank in particular is robust because it makes no distributional assumption.

The caveats are important and easy to ignore. Both measures are entirely dependent on the lookback window, a 20-day z-score and a 200-day z-score can disagree completely, so the window must match your horizon. The z-score specifically assumes a bell curve; in fat-tailed markets a "3-sigma" event is far more common than the model implies, so do not treat an extreme z as impossible-to-exceed. Both are descriptive, not predictive: an extreme can become more extreme. And in a strong trend, mean-reversion logic built on these tools will repeatedly fight the trend and lose. Always pair the extremity read with a regime filter before acting.

Key takeaway: Percentile rank and z-scores normalise a raw value against its own recent distribution, telling you how extreme today's level is; they are powerful for spotting stretched conditions but depend entirely on the lookback window and must be filtered by trend regime before you trade them.

An extreme reading is a reason to pay attention, not an automatic signal to fade.

Tip: take the quiz below to lock in what you learned.
Loading quiz…