Lab for Roulette · Lab · Statistics · 8 min

Di Chi-Square Test

Di standard test for “dis 37 counts na wetin fair wheel go produce?”

Short answer

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

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

How to Calculate Am

Di count wey you expect for each pocketequipmentPocketOne of di 37 small boxes wey get number for di rotor. Dem also dey call am: slot, cup.Read di whole tin → na n/37. For each pocket, square di difference between wetin you see and wetin you expect, and divide am by wetin you expect; add di 37 terms togeda. Fair wheel dey give values around 36 for average (di degrees of freedomlabDegrees of freedomDi number of values wey no depend on each oda inside one statistic. For chi-square test on 37 pockets na 36, becos di counts must add up to di total.Read di whole tin →), with standard deviationmathsStandard deviationSquare root of variance; di normal distance between one result and di expected value.Read di whole tin → of about 8.5. Above 51.0 na significant for di 5% level; above 58.6 for 1%. Di Analyser for Roulette Wheel Bias dey calculate di statistic and di exact p-valuelabp-valueDi probability to see deviation wey big reach di one wey you see or pass am, if di wheel dey fair.Read di whole tin → from di regularised incomplete gamma function.

n spinswetin you expect for each pocketσ for each pocketone pocket for +2σone pocket for +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. For 1,000 spins, pocket wey get 37 hits no special; di one wey get 42 worth second sample.

One Example Wey We Work

1,000 spins. Thirty-six pockets land between 20 and 34 hits; pocket 8 get 41. Wetin you expect na 27.03. Di pocket-8 term alone na (41 − 27.03)²/27.03 = 7.2. Suppose di oda 36 terms add up to 38 (normal). χ² = 45.2 on 36 df, p ≈ 0.14. E no significant: fair wheel dey do dis one time for seven. Pocket 8 na candidate, no be discovery, and di answer na anoda thousand spins.

Wetin Di Test Assume

Independent spinsmathsIndependent spinsEach spin get di same probabilities no matter wetin happen before. Na di base for every calculation for dis site.Read di whole tin →, and expected counts of at least 5 for each pocket, wey mean n ≥ 185 for di test to even dey valid, and plenty more for am to get use. To mix spins from different wheels dey break di first assumption for spirit (you dey test mixture, no be wheel). Dealer-signature effect go break am for real, and e go push χ² up without any pocket wey dey physically favoured.

Dealer Signature for RouletteRoulette Spins Wey No Dey Depend on One Anoda

Pearson and Monte Carlo

Karl Pearson publish di test for 1900, and one of im first examples na 26,306 Monte Carlo roulette spins wey dem record, wey e find sey dem no uniform at all to be chance, and e declare sey “Monte Carlo roulette… no be game of chance”. Later writers conclude sey di journalists wey record di spins for one newspaper invent many of dem, and dat one na lesson on im own about where data dey come from.

Di Test and Di Wheel
1900

Pearson publish di chi-square goodness-of-fit test, with Monte Carlo spins as example.

1900s

Pipo begin question di spin data; e be like sey di recorders invent runs.

1920s

Fisher formalise degrees of freedom; di 5% convention take hold.

1940s–50s

Statisticians dey use roulette spins as textbook data for uniformity tests.

1990s

Di García-Pelayo family apply di method with real data wey dem record, and dem win for Madrid.

today

Casinos dey run di same test on dem own wheels as normal maintenance.

Di 1900 test of Pearson find sey di Monte Carlo spins no even at all; di recorders of di newspaper don invent many of dem.

Roulette for Monte Carlo

One Real Test: Automatic Wheels for Las Vegas

Players dey often suspect sey automatic wheel dey steer di ballequipmentBallDi small ball wey dem dey throw for di track against di rotor. Modern balls na ivorine or Teflon, 18–21 mm.Read di whole tin → comot from big bets. One analysis for 2017 test di suspicion on di double-zerowheelZeroDi one green pocket wey no even-money, dozen or column bet dey cover; na im be di source of di house edge. Dem also dey call am: single zero, 0.Read di whole tin → wheels of Interblock wey no get dealer for Las Vegas, by betting on arc of five numbers wey dey near each oda, di kind bet wey wheel clocker dey make. For 299 spins, di arc win 29 times against 39.3 wey dem expect, shortfall wey fair wheel dey produce about 4% of di time. Di chi-square over all 38 pockets na 45.29 on 37 degrees of freedom: p = 16.5%. Second sample of 1,204 spins on three wheels give χ² = 34.79, p = 57%, and no arc of any size wey dem try dey significant. Both samples togeda, 1,503 spins, give χ² = 41.75, p = 27%. Di verdict: no evidence of steering. Di first sample alone look suspicious; na di second one settle am.

samplespinsχ²dfp
di first29945.293716.5%
di second, three wheels1,20434.793757%
di two togeda1,50341.753727%
Di figures dey come from dat 2017 analysis; each p-value dey follow from im χ². Double-zero wheel get 38 pockets, so 37 degrees of freedom.

Beyond Chi-Square

For one single pocket wey you suspect, binomial test get more power. For arc wey you suspect, di sectorwheelSectorPockets wey follow each oda for one arc of di wheel, no be group for di layout.Read di whole tin → z-test for di sector analysis page. Chi-square na di omnibus test: e dey tell you sey sometin no correct without saying wetin. Use am first, den look.

How to Analyse Sector

Formula

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

Questions wey pipo dey ask

Why 36 degrees of freedom and no be 37?

Di 37 counts must add up to n, so na only 36 fit change freely.

Which χ² wheel wey get strong bias go show?

Wheel wey get one pocket for 1/25 for 10,000 spins go give pocket term of around 60 alone; χ² around 100, p almost zero.

I fit run am on 200 spins?

For technical side, yes, with 5.4 expected for each pocket. E no go catch anytin unless na wheel wey dem gum one pocket shut.

Small laugh

Add di squared surprises. Compare am with 51.0.

Add di squared surprises. Compare am with 51.0.

Sources

  1. Pearson, K. “On the criterion that a given system of deviations from the probable…” Philosophical Magazine 50(302), 1900.
  2. Feller, W. An Introduction to Probability Theory and Its Applications, Vol. 1. Wiley, 3rd ed., 1968. Gambler ruin, chapter XIV.
  3. Wizard of Odds. “Organic Roulette Experiment.” March 2017; dem update am August 3, 2026.
we check am 2026-09-28model: European wheel, single zerohow we work am ↗where we get am ↗