1992issue C011-2
Constructing a chi-square test as a gate for two-way market records
A two-way market record can be tested for chance with a Yates-corrected chi-square statistic and one degree of freedom. Expected counts follow sample-wide outcome rates unless an even-money baseline is stated, and conventional cutoffs label how rarely a result that large would appear if the baseline were true.
- A two-way record can be tested for chance with a chi-square statistic that uses the Yates correction and one degree of freedom.
- When the sample is not split evenly, each bucket's expected counts are the sample-wide outcome rates times that bucket's total, not an even split.
- The Yates-corrected construction takes the absolute observed-minus-expected gap, subtracts 0.5, squares the remainder, and divides by each of the two expected counts.
- Conventional cutoffs treat a result above 3.84, 6.64, and 10.83 as 95 percent, 99 percent, and 99.9 percent confidence, or about once in 20, 100, and 1,000 repetitions.
Treat the test as a gate
TradersWeek editorial: the chi-square construction is a gate, not a garnish. A two-way market tally is unfinished until observed counts are forced through a Yates-corrected, one-degree-of-freedom comparison with a written expected-rate baseline.
A two-way record is a tally limited to a pair of mutually exclusive outcomes, such as rise versus decline. That record can be tested for chance with a chi-square test, a one-degree-of-freedom comparison of observed two-way counts with the counts implied by a stated baseline.
Write expected counts from the baseline
An expected count is the count implied for one outcome after the baseline rate is applied to that bucket's total.
When the overall sample is not split evenly between the two outcomes, each bucket's expected counts should be the sample-wide outcome rates times that bucket's total, not an even split.
Apply the Yates correction
The Yates correction is a half-count adjustment applied to the absolute observed-minus-expected gap before that gap is squared.
The Yates-corrected construction takes the absolute gap between an observed count and its expected count, subtracts 0.5, squares the remainder, and divides by each of the two expected counts.
A shorter form when the baseline is even money
An even-money baseline is the special case in which the two outcomes are treated as equally likely, allowing a shorter form of the same test.
If the baseline can be treated as even money, the same test reduces to one less than the absolute gap between the two outcome counts, squared and divided by their combined total.
Read the statistic as a confidence level
A confidence level is a conventional label for how rarely a result at least as large as the computed statistic would appear if the baseline were true.
After the statistic is computed, conventional cutoffs treat a result above 3.84 as 95 percent confidence, above 6.64 as 99 percent, and above 10.83 as 99.9 percent.
Those three confidence cutoffs correspond to a chance repeat about once in 20 repetitions, once in 100 repetitions, and once in 1,000 repetitions.
Weekday rise and decline counts
The weekday illustration uses a long lookback of ordered daily rise and decline counts and a sampling interval of one weekday, then compares each day's observed mix with the sample-wide expected mix.
All readings on this track · 17 readings
- 1987Testing price-volume agreement after percent reversal filters
- 1988Constructing chi-square tests for two-way price counts
- 1988Building consensus indicators with correlation and the chi-square test
- 1988Test edges against chance, not story
- 1988Constructing an advance-decline divergence oscillator
- 1989Evaluate a contrary put-call premium ratio at a stated horizon
- 1990A weekly resistance-index from hourly volume-per-point
- 1990Testing breadth above moving averages by horizon
- 1990Evaluating member versus odd-lot breadth
- 1990A chi-square test of split frequency histograms across price aggregations
- 1990Evaluating smoothed secondary counts with a chi-square test
- 1991Treat session high and low times as codes, then require a chi-square check
- 1991A signed hourly swing catalog as a next-session chi-square check
- 1992Constructing a chi-square test as a gate for two-way market records
- 1992Percent filters, log point-and-figure, and breadth residuals
- 1997Build a chi-square stationarity screen before you forecast
- 1998Timed breakout rules after a nested-bar contraction