LABEXPERIMENT 06df = 36α = 0.05seed 99

Bias for Roulette Wheel

Biased roulette wheel dey favour some pockets becos of physical fault: fret wey loose, rotor wey no level, pockets wey don wear. Roulette wheel bias dey and pipo don use am before. Di problem be sey wheel wey fair well well dey produce “hot numbers” all di time, so di question no be whether one number dey hot, but whether di whole pattern no balance pass wetin chance fit allow.

1. Sample one fair wheel

Spins from simulated wheel wey no get any bias at all. Change di size of di sample and watch di hottest pocket.

0321519421225173462713361130823105241633120143192218297281235326
spins370
expected for each pocket10.0
di hottest pocket20 · 16 hits (4.32%)
di hottest vs expected+60% · 1.9σ
chi-square · p32.8 · 0.622
verdictno evidence sey bias dey

2. Wetin we see vs wetin we expect

Each bar na one pocket for wheel order. Di dashed line na di count wey we expect, n/37. Di shaded band na ±2 standard deviations: for fair wheel, about one pocket out of twenty go comot outside am by chance alone.

0pockets for wheel order →26

3. Di chi-square test

Di test dey add how far every pocket dey from wetin we expect, squared and scaled. For fair wheel, di sum dey follow chi-square distribution with 36 degrees of freedom; p-value wey dey under 0.05, pipo dey normally call am significant.

χ² = Σ (Oᵢ − Eᵢ)² / Eᵢ Eᵢ = n/37 df = 36
n = 370 · E = 10.00 · χ² = 32.80 · p = 0.622
Warning about size of di sampleBelow about 1,000 spins, di test almost no get power to find biases wey fit really happen, and “significant” result for p < 0.05 go happen by chance for 1 out of every 20 fair samples wey you look. If you test plenty wheels, or you test di same wheel again and again until e pass, false alarms must come.

4. How many spins you go need

Spins wey you need to find one pocket wey dey hit more often pass 1/37, for one-sided 5% level with 80% power. Pocket wey dey hit 1 time for 35 instead of 1 for 37 go be strong edge for player, and e dey take tens of thousands of spins wey you record to confirm am.

di true rateedge of di playerspins wey you needfor 40 spins/h
1 for 25+44.0%1,10828 h
1 for 30+20.0%4,392110 h
1 for 33+9.1%15,747394 h
1 for 35+2.9%69,4611,737 h
To confirm bias mean sey you go dey record spins night afta night, tens of thousands of dem.

Methodology

Sampling. Uniform draws from 37 pockets with generator wey get seed (mulberry32, seed 99), so di page go give di same result every time.
Test. Pearson chi-square goodness of fit, 36 degrees of freedom, p-value from di regularized incomplete gamma function.
Power. Normal approximation to one-proportion test, α = 0.05 one-sided, power 0.80.
Wetin e cover. Na only statistical detection. Physical causes and analysis by sector (instead of by pocket) dey inside How to Analyse Sector.

Small laugh

Fair wheel dey make hot numbers every night. To prove bias need tens of thousands of spins.

Fair wheel dey make hot numbers every night. To prove bias need tens of thousands of spins.

Sources

  1. Pearson, K. (1900). On the criterion that a given system of deviations… Philosophical Magazine, 50(302).
  2. Thorp, E. O. (1969). Optimal gambling systems for favorable games. Review of the International Statistical Institute, 37(3).
  3. Ethier, S. N. (2010). The Doctrine of Chances: Probabilistic Aspects of Gambling. Springer. Ch. 13, Roulette.