Chi-square sɔhwɛ
Gyinapɛn sɔhwɛ a ɛbisa sɛ “so akontaa 37 yi ne deɛ ntwahonan a ɛyɛ pɛ bɛma?”

χ² = Σ (deɛ wohunuiɛ − deɛ wɔhwɛ kwan)² / deɛ wɔhwɛ kwan wɔ ntokuru 37 no nyinaa so. Fa toto chi-square nhyehyɛe a ɛwɔ ahofadie dodoɔ 36 so ho na wobɛnya p-boɔ.
Sɛdeɛ wobɛbu
Akontaa a wɔhwɛ kwan wɔ tokurunneɛma a wɔde diTokuruRotor no so tokuru 37 a nɔma wom no mu baako. Wɔfrɛ no nso slot, cup.Kenkan ne nyinaa → biara so ne n/37. Wɔ tokuru biara so no, fa nsonsonoeɛ a ɛda deɛ wohunuiɛ ne deɛ wɔhwɛ kwan ntam no bɔ ne ho mmɔho na fa deɛ wɔhwɛ kwan kyɛ mu; ka nneɛma 37 no bom. Ntwahonan a ɛyɛ pɛ ma boɔ a ɛbɛyɛ 36 wɔ mfinimfini mu (ahofadie dodoɔnhwehwɛmu danAhofadie dodoɔBoɔ a ɛmfa ho dodoɔ a ɛwɔ akontaabu nsunsuansoɔ bi mu. Wɔ chi-square sɔhwɛ a ɛwɔ ntokuru 37 so no, ɛyɛ 36, ɛfiri sɛ ɛsɛ sɛ nkontaabu no nyinaa bom yɛ dodoɔ no nyinaa.Kenkan ne nyinaa → no), a ne gyinapɛn nsakraeɛakontaabuGyinapɛn nsakraeɛNsakraeɛ ntini; ntam kwan a ɛtaa da deɛ ɛfiri mu ba ne boɔ a wɔhwɛ kwan ntam.Kenkan ne nyinaa → yɛ bɛyɛ 8.5. Deɛ ɛboro 51.0 so no wɔ nnyinasoɔ wɔ 5% so; deɛ ɛboro 58.6 so no wɔ 1% so. Roulette ntwahonan animhwɛ nhwehwɛmu afidie no bu akontaa no ne p-boɔnhwehwɛmu danp-boɔHokwan a wobɛhunu nsonsonoeɛ a ɛso te sɛ deɛ wohunuu no anaa ɛboro saa, sɛ ntwahonan no yɛ pɛ a.Kenkan ne nyinaa → pɛpɛɛpɛ firi regularized incomplete gamma function mu.
| kyinhyia n | deɛ wɔhwɛ kwan wɔ tokuru biara so | σ wɔ tokuru biara so | tokuru wɔ +2σ | tokuru wɔ +3σ |
|---|---|---|---|---|
| 370 | 10 | 3.1 | 16 | 19 |
| 1,000 | 27 | 5.1 | 37 | 42 |
| 3,700 | 100 | 9.9 | 120 | 130 |
| 10,000 | 270 | 16.2 | 303 | 319 |
| 37,000 | 1,000 | 31.2 | 1,062 | 1,094 |
Nhwɛsoɔ a yɛayɛ
Consider a hypothetical sample of 1,000 independent spinsakontaabuKyinhyia a ɛmfa hoKyinhyia biara hokwan yɛ pɛ sɛdeɛ deɛ atwam teɛ biara. Ɛno ne akontaabu biara a ɛwɔ wɛbsaet yi so nnyinasoɔ.Kenkan ne nyinaa →. 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 probabilityakontaabuHokwanHokwan a biribi bɛba, firi 0 kɔsi 1 anaa 0% kɔsi 100%. Nɔma baako: 1/37 = 2.70%.Kenkan ne nyinaa → 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.
Susuo a ɛwɔ ase
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.
Pearson ne Monte Carlo
Karl Pearson tintimii sɔhwɛ no wɔ 1900, na ne nhwɛsoɔ a edi kan no mu baako yɛ Monte Carlo roulette kyinhyia 26,306 a wɔkyerɛw too hɔ, a ɔhunuu sɛ ɛnyɛ pɛ koraa ara ma ɛrentumi nyɛ akɔntɔnkye, na ɔkaa sɛ “Monte Carlo roulette… nyɛ akɔntɔnkye agorɔ”. Akyire nwomakyerɛfoɔ kaa sɛ nsɛmmɔnefoɔ a wɔkyerɛw kyinhyia no too hɔ maa nsɛmma krataa bi no bɔɔ dodoɔ no ara ho atorɔ, na ɛno ankasa yɛ asuadeɛ a ɛfa baabi a nsɛm firi ho.

Sɔhwɛ ankasa: ntwahonan a ɛyɛ n’ankasa adwuma wɔ 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.
Sɛ yɛtra chi-square so a
Sɛ tokuru baako pɛ na wosusu ho a, binomial sɔhwɛ wɔ tumi kɛseɛ. Sɛ ɔfa bi na wosusu ho a, ɔfantwahonanƆfaNtokuru a ɛtoa so wɔ ntwahonan no so, a ɛnyɛ kuo a ɛwɔ bɛt nhyehyɛe no so.Kenkan ne nyinaa → z-sɔhwɛ a ɛwɔ ntwahonan afa ho nhwehwɛmu krataafa no so. Chi-square yɛ sɔhwɛ a ɛhwɛ biribiara: ɛka kyerɛ wo sɛ biribi nteɛ a ɛnka deɛ ɛyɛ. Di kan fa yɛ adwuma, na afei hwɛ.
Akontaabu kwan
Nsɛmmisa
Ɛsɛ sɛ akontaa 37 no nyinaa bom yɛ n, enti 36 pɛ na wɔde wɔn ho wɔ hɔ sɛ wɔbɛsesa.
Ntwahonan a ne tokuru baako ba wɔ 1/25 wɔ kyinhyia 10,000 mu no, ne tokuru no nko ara bɛma bɛyɛ 60; χ² bɛyɛ 100, na p kame ayɛ hwee.
Wɔ mmara kwan so de, aane, a wɔhwɛ kwan sɛ ɛbɛyɛ 5.4 wɔ tokuru biara so. Ɛrenhu hwee gye sɛ ntwahonan a wɔde ɛfam ato ne tokuru bi ano.
Serew kakra

For 36 degrees of freedom, the approximate 5% upper-tail cutoff is 51.0.
Nsɛm fibea
- Pearson, K. “On the criterion that a given system of deviations from the probable…”
- Feller, W. An Introduction to Probability Theory and Its Applications, Vol. 1.