Roulette lab · Lab · Statistics · 8 minute

Di chi-square test

Di standard test fi “dem 37 count yah a wah a fair wheel woulda gi?”

Short ansa

χ² = Σ (observed − expected)² / expected ova all 37 pocket. Compare it wid di chi-square distribution pon 36 degrees a freedom fi get a p-value.

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

Ow fi work it out

Di expected count fi evry pocketgearPocketOne a di 37 compartment wid numba pon di rotor. Nex name: slot, cup.Read di whole ting → a n/37. Fi each pocket, square di difference between observed an expected an divide by expected; add up di 37 piece. A fair wheel gi value roun 36 pon average (di degrees a freedomlabDegrees a freedomDi numba a independent value inna a statistic. Fi a chi-square test pon 37 pocket it a 36, cause di count dem haffi add up to di total.Read di whole ting →), wid a standard deviationmathsStandard deviationDi square root a variance; ow far a result usually deh fram di expected value.Read di whole ting → a bout 8.5. Ova 51.0 significant at di 5% level; ova 58.6 at 1%. Di Wheel Bias Analyzer work out di statistic an di exact p-valuelabp-valueDi probability fi see a deviation at leas as big as di one yuh see, if di wheel did fair.Read di whole ting → fram di regularized incomplete gamma function.

n spinexpected fi evry pocketσ fi evry pocketone pocket at +2σone pocket at +3σ
370103.11619
1,000275.13742
3,7001009.9120130
10,00027016.2303319
37,0001,00031.21,0621,094
σ ≈ √(n·p·(1−p)) wid p = 1/37. Inna 1,000 spin a pocket at 37 hit nuh special; one at 42 worth a second sample.

A example weh work out

1,000 spin. Thirty-six pocket land between 20 an 34 hit; pocket 8 have 41. Di expected a 27.03. Di pocket-8 piece alone a (41 − 27.03)²/27.03 = 7.2. Seh di odda 36 piece add up to 38 (normal). χ² = 45.2 pon 36 df, p ≈ 0.14. Nuh significant: a fair wheel do dis one time outta seven. Pocket 8 a one candidate, nuh a finding, an di ansa a anodda thousand spin.

Assumption

Independent spinmathsIndependent spinEvry spin have di same probability dem, nuh matta wah happen bifo (one spin nuh know bout di nex one). Di base fi evry calculation pon dis site.Read di whole ting →, an expected count a at least 5 fi evry pocket, an dat mean n ≥ 185 fi di test fi valid at all, an far more fi it fi useful. Fi mix spin fram different wheel break di fus assumption inna spirit (yuh a test a mixture, nuh one wheel). A dealer-signature effect woulda break it fi true, an it woulda push up χ² even if nuh pocket physically come up more.

Di dealer signature inna rouletteIndependent spin inna roulette

Pearson an Monte Carlo

Karl Pearson publish di test inna 1900, an one a im fus example weh im work out a did 26,306 Monte Carlo roulette spin weh people write dung. Im find seh dem too uneven fi be chance, an im declare seh “Monte Carlo roulette… is not a game of chance”. Later writer dem conclude seh di journalist dem weh write dung di spin fi a newspaper did mek up nuff a dem, an dat a one lesson by itself bout weh data come fram.

Di test an di wheel
1900

Pearson publish di chi-square goodness-of-fit test, wid Monte Carlo spin as a example.

1900s

People question di spin data; it look like di recorder dem mek up run.

1920s

Fisher set dung degrees a freedom proper; di 5% rule tek hold.

1940s–50s

Statistician dem use roulette spin as textbook data fi uniformity test.

1990s

Di García-Pelayo family use di method wid real data weh dem write dung, an win inna Madrid.

nowadays

Casino run di same test pon dem own wheel as normal maintenance.

Pearson 1900 test find seh di Monte Carlo spin dem too uneven; di newspaper recorder dem did mek up nuff a dem.

Roulette inna Monte Carlo

A real test: automatic wheel inna Las Vegas

Playa dem often suspec seh a automatic wheel steer di ballgearBallDi likkle ball weh di dealer fling roun di track di opposite way to di rotor. Modern ball mek outta ivorine or Teflon, 18–21 mm.Read di whole ting → weh fram big bet. A 2017 analysis put di suspicion to di test pon Interblock double-zeropon di wheelZeroDi one green pocket weh no even-money, dozen or column bet nuh cover; a weh di house edge come fram. Nex name: single zero, 0.Read di whole ting → wheel widout dealer inna Las Vegas, bettin pon a arc a five numba weh deh side by side, di kind a bet a wheel clocker mek. Inna 299 spin di arc win 29 time gainst 39.3 expected, a shortfall weh a fair wheel gi bout 4% a di time. Di chi-square ova all 38 pocket a did 45.29 pon 37 degrees a freedom: p = 16.5%. A second sample a 1,204 spin pon tree wheel gi χ² = 34.79, p = 57%, an nuh arc a any size dem try did significant. Both sample togedda, 1,503 spin, gi χ² = 41.75, p = 27%. Di verdict: nuh evidence a steerin. Di fus sample alone did look suspicious; a di second one settle it.

samplespinχ²dfp
fus29945.293716.5%
second, tree wheel1,20434.793757%
di two a dem1,50341.753727%
Di figure dem come fram dat 2017 analysis; each p-value follow fram it χ². A double-zero wheel have 38 pocket, suh 37 degrees a freedom.

Afta chi-square

Fi one pocket yuh suspec, a binomial test more powerful. Fi a arc yuh suspec, di sectorpon di wheelSectorA piece a di wheel weh di pocket dem follow one anodda roun di arc, nuh a group pon di betting layout.Read di whole ting → z-test pon di sector analysis page. Chi-square a di omnibus test: it tell yuh sumting off widout seh wah. Use it fus, den look.

Analysis a di sector dem

Formula

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

Question dem

Why 36 degrees a freedom an nuh 37?

Di 37 count haffi add up to n, suh only 36 free fi change.

Wah χ² a wheel weh strong bias woulda show?

A wheel wid one pocket at 1/25 inna 10,000 spin woulda gi a pocket piece roun 60 by itself; χ² roun 100, p as good as zero.

Mi can run it pon 200 spin?

Technically yes, wid 5.4 expected fi evry pocket. It nah find nutten, unless a wheel wid one pocket glue shut.

Sumting fi laugh

Add up di square surprise dem. Compare wid 51.0.

Add up di square surprise dem. Compare wid 51.0.

Source dem

  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’s ruin, chapter XIV.
  3. Wizard of Odds. “Organic Roulette Experiment.” March 2017; update 3 August 2026.
wi check it 2026-09-28model: European wheel, single zeroow wi work it out ↗source dem ↗