TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Rolling z-scores and causal standardisation

Study rolling z-scores and causal standardisation through mechanisms, a synthetic worked case, practice, and explained assessment.

Technical Indicators

APPLIED STUDY · ORIGINAL LESSON

Learning plan and prerequisites

Before you begin: Understand a mean, population standard deviation and rolling-window alignment.

Mechanism and interpretation

A z-score standardises an observation as(value−reference mean)/reference standard deviation. State exactly which observations form the reference. A prior-only window describes how unusual the new value is relative to information available before it arrived. A current-inclusive rolling window lets the new value influence both its own mean and its own scale. These are different features and can produce substantially different readings for the same price.

Use a consistent standard-deviation convention and an explicit policy for zero dispersion. A standardised score is dimensionless, but this does not make different markets automatically comparable in all respects. Price levels can be trending, serially dependent and heavy-tailed. A score of 2 does not establish a universal probability of reversal or a fixed normal-distribution tail frequency. If a model needs those probabilities, its distributional assumptions require separate examination.

Worked case — synthetic data

Synthetic prior prices are 90,100,110. Mean is 100 and population standard deviation is sqrt((100+0+100)/3)=sqrt(200/3)≈8.165. A new value 120 has prior-window z=(120−100)/8.165≈2.449. If a three-observation current-inclusive window instead drops 90 and uses 100,110,120, its mean is 110 with the same deviation 8.165, giving z≈1.225. The current price is identical, but the reference window changed.

Suppose a threshold ofz>2 defines an event. The prior-only version qualifies and the current-inclusive version does not. A backtest must use the version declared before evaluation rather than selecting whichever labels a successful move. If the reference prices were all 100, deviation would be zero; inventing a tiny denominator would produce an enormous score with no meaningful scale estimate. Marking the score undefined or applying a documented neutral policy is more transparent.

Context and failure modes

Outliers can inflate both the mean and deviation, reducing later scores until they leave the window. Robust alternatives use different centres and scales and should be named separately. Standardising unadjusted prices across a split creates artificial extremes. A z-score strategy still requires a direction hypothesis, entry timing and exit rule; the score alone says only relative distance.

Practice task

Reference mean is 50 and standard deviation 2. Current value is 55. Calculate z. Then let a revised reference mean be 52 and deviation 3; calculate the new z and explain why the two thresholds cannot be mixed silently.

Worked practice answer

Original z=(55−50)/2=2.5. Revised z=(55−52)/3=1. The change comes from the reference distribution, not the current value. A threshold calibrated for one feature definition may not apply to the other, so the window and scaling method must accompany results.

Topic assessment

Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.

1. What does a z-score measure?

  1. Distance from a chosen mean in chosen deviation units
  2. Guaranteed reversal probability
  3. The number of counterparties
Reveal answer and explanation

A. Its meaning depends on the stated reference distribution.

2. Why can current-inclusive standardisation reduce an extreme reading?

  1. It guarantees normal prices
  2. The observation shifts its own mean and scale
  3. It removes the observation entirely
Reveal answer and explanation

B. Including the event in the reference changes the comparison against which it is judged.

3. What must be handled when reference deviation is zero?

  1. Automatic infinite profit
  2. A mandatory short position
  3. An undefined denominator
Reveal answer and explanation

C. The ratio has no valid finite scale without an explicit convention.

Primary references and scope

Original explanation and synthetic calculations. Chart thresholds are explicit research conventions, not exchange rules or proof of predictive ability.