Roulette Lab · Lab · Statistics · 8 min

Chi-Square Test

The standard test for “are these 37 counts what a fair wheel would produce?”

Short answer

χ² = Σ (observed − expected)² / expected over all 37 pockets. Compare with the chi-square distribution on 36 degrees of freedom to get a p-value.

statistic
Σ (O−E)²/E
df
36
critical at 5%
51.0
critical at 1%
58.6

Computing it

Expected count per pocketequipmentPocketOne of the 37 numbered compartments on the rotor. Also: slot, cup.Read full → is n/37. For each pocket, square the difference between observed and expected and divide by expected; add the 37 terms. A fair wheel gives values around 36 on average (the degrees of freedomlabDegrees of freedomThe number of independent values in a statistic. For a chi-square test on 37 pockets it is 36, because the counts must add up to the total.Read full →), with a standard deviationmathsStandard deviationSquare root of variance; the typical distance of a result from the expected value.Read full → of about 8.5. Above 51.0 is significant at the 5% level; above 58.6 at 1%. The Wheel Bias Analyser computes the statistic and the exact p-valuelabp-valueThe probability of seeing a deviation at least as large as the one observed if the wheel were fair.Read full → from the regularised incomplete gamma function.

n spinsexpected per pocketσ per pocketa pocket at +2σa pocket at +3σ
370103.11619
1,000275.13742
3,7001009.9120130
10,00027016.2303319
37,0001,00031.21,0621,094
σ ≈ √(n·p·(1−p)) with p = 1/37. In 1,000 spins a pocket at 37 hits is unremarkable; one at 42 is worth a second sample.

A worked example

Consider a hypothetical sample of 1,000 independent spinsmathsIndependent spinsEach spin has the same probabilities regardless of history. The basis for every calculation on this site.Read full →. Each pocket has an expected count of 1,000/37 ≈ 27.03. If pocket 8 appears 41 times, its contribution to the statistic is about 7.22. Suppose the total statistic is approximately 45.2. On 36 degrees of freedom, the approximate p-value is 0.14: under the fair-wheel model, a statistic at least this large has a probabilitymathsProbabilityChance of an outcome, from 0 to 1 or 0% to 100%. One number: 1/37 = 2.70%.Read full → of about 14%. This is not significant at the 5% level, and it does not prove the wheel is fair. A pocket selected after examining these counts needs independent confirmation; another 1,000 spins is not guaranteed to resolve a small departure.

Assumptions

The usual approximation assumes independent observations and adequate expected counts. The common five-per-cell rule gives n ≥ 185 for 37 equal pockets; it is a guideline for the approximation, not a hard boundary for all possible tests. Pooling wheels changes the population being tested. Dependence may invalidate the reference distribution without necessarily increasing the statistic.

Roulette Dealer SignatureIndependent Roulette Spins

Pearson and Monte Carlo

Karl Pearson published the test in 1900, and one of his first worked examples was 26,306 recorded Monte Carlo roulette spins, which he found far too non-uniform to be chance and declared that “Monte Carlo roulette… is not a game of chance”. Later writers concluded that the journalists who recorded the spins for a newspaper had invented many of them, which is its own lesson about data provenance.

Pearson’s 1900 test found the Monte Carlo spins far too uneven; the newspaper’s recorders had invented many of them.

Monte Carlo Roulette

A real test: automatic wheels in Las Vegas

A published analysis of specific automatic wheels is evidence about those recorded samples, not all automatic roulette. A non-significant uniformity test cannot prove the absence of steering, and combining several wheels does not identify the behavior of each one. Check the original study’s data and design before drawing that conclusion.

Beyond chi-square

For a single suspected pocket a binomial test is more powerful. For a suspected arc, the sectorwheelSectorA contiguous arc of pockets on the wheel, as distinct from a group on the layout.Read full → z-test on the sector analysis page. Chi-square is the omnibus test: it tells you something is off without saying what. Use it first, then look.

Sector Analysis

Formula

χ² = Σᵢ (Oᵢ − Eᵢ)² / Eᵢ
Eᵢ = n / 37 · df = 36
critical values: 51.0 (5%) · 58.6 (1%)

Questions

Why 36 degrees of freedom and not 37?

The 37 counts must sum to n, so only 36 are free to vary.

What χ² would a strongly biased wheel show?

A wheel with one pocket at 1/25 in 10,000 spins would give a pocket term around 60 alone; χ² around 100, p effectively zero.

Can I run it on 200 spins?

Technically yes, with expected 5.4 per pocket. It will detect nothing short of a wheel with a pocket glued shut.

Comic relief

For 36 degrees of freedom, the approximate 5% upper-tail cutoff is 51.0.

For 36 degrees of freedom, the approximate 5% upper-tail cutoff is 51.0.

Sources

  1. Pearson, K. “On the criterion that a given system of deviations from the probable…” https://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/chsqgood.htm
  2. Feller, W. An Introduction to Probability Theory and Its Applications, Vol. 1. https://www.amstat.org/asa/files/pdfs/P-ValueStatement.pdf
model: European, single zeromethodology ↗sources ↗

Roulette Online PRO is an educational reference. Every figure on this site assumes a fair European wheel with 37 pockets unless stated otherwise; no betting system changes the expected loss of 2.70% per unit wagered. Roulette is a game of chance: set a budget before you play, treat losses as the cost of entertainment, and seek help if play stops feeling like a choice.