Skip to main content
Track Chi-square test
16 / 17
Library

1997issue C061-6

Build a chi-square stationarity screen before you forecast

A stationarity check splits a lookback into two halves and asks whether they still measure the same process. The chi-square comparison of two binned frequency tables is the construction step that decides whether a later forecast is reading a stable series or mixed data.

  • A stationarity check asks whether the first half of a chosen lookback still measures the same process as the second half.
  • The construction converts the series into ordered changes, splits the lookback into equal halves, and compares two binned frequency tables with a chi-square test.
  • Charts can hint at a break, but the chi-square comparison is the quantitative baseline for statistical consistency.
  • Declare the sampling interval and lookback first. If the halves do not match, methods that assume a homogeneous series can give misleading out-of-sample readings.
Entries in this reading1 entry

What stationarity is asking

A price, volume, or rate chart is a time series. A stationarity check asks whether observations in the first half of a chosen lookback still measure the same process as observations in the second half.

Stationarity is the condition in which the same governing influences operate across a sampled series so that early observations remain comparable to later ones. The lookback is the historical window that is split and compared before a later forecast is trusted.

How the two halves are built

The construction converts the raw series into ordered changes, splits the lookback into two equal halves, and assigns each change to one of a fixed set of mutually exclusive bins so that two frequency tables can be compared. A bin is a mutually exclusive value interval that receives each observation once when a frequency table is built.

The chi-square test is a goodness-of-fit comparison of two binned frequency tables from successive halves of the same ordered series. In the Treasury-rate illustration, an 11-bin frequency table of daily changes over two 12-year halves was used to display that later observations did not share the earlier distribution after slope and volatility shifted.

Why a chart is not the baseline

Charts can show a break, but they lack the precision of a chi-square comparison of the two binned halves. That comparison is the quantitative baseline used to decide whether the series is statistically consistent.

Declare the sampling interval first

The same construction is sensitive to sampling interval. Daily and weekly versions of the same rate series can produce different visual and statistical impressions of stability, so the horizon must be declared before the test is read as a forecast screen.

Sampling interval is the chosen spacing, such as daily or weekly changes, used to form the observations that enter the bins.

When the screen finds mixed data

Nonstationarity is a material change in the distribution of later observations relative to earlier ones in the same series. Methods that assume a stationary, homogeneous series, including uses of regression beyond simple description, can give misleading out-of-sample readings when the chi-square screen finds the two halves do not match.

If the test flags nonstationarity, the construction can be revised by lengthening or shortening the lookback or by changing the lag used to form differences, then rerun so that the revised baseline is compared with the later sample.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
16 of 17 in the Chi-square test track
19981-3 pp.Next on Chi-square testTimed breakout rules after a nested-bar contractionA nested-bar-contraction is a three-bar setup, not an order. The base-bar high and low become the only frozen reference range for later confirmation.
All readings on this track · 17 readings
  1. 1987Testing price-volume agreement after percent reversal filters
  2. 1988Constructing chi-square tests for two-way price counts
  3. 1988Building consensus indicators with correlation and the chi-square test
  4. 1988Test edges against chance, not story
  5. 1988Constructing an advance-decline divergence oscillator
  6. 1989Evaluate a contrary put-call premium ratio at a stated horizon
  7. 1990A weekly resistance-index from hourly volume-per-point
  8. 1990Testing breadth above moving averages by horizon
  9. 1990Evaluating member versus odd-lot breadth
  10. 1990A chi-square test of split frequency histograms across price aggregations
  11. 1990Evaluating smoothed secondary counts with a chi-square test
  12. 1991Treat session high and low times as codes, then require a chi-square check
  13. 1991A signed hourly swing catalog as a next-session chi-square check
  14. 1992Constructing a chi-square test as a gate for two-way market records
  15. 1992Percent filters, log point-and-figure, and breadth residuals
  16. 1997Build a chi-square stationarity screen before you forecast
  17. 1998Timed breakout rules after a nested-bar contraction
All 32 readings tagged Chi-square test
Also on Chi-square test5 readings