Chi-Square nga Pagsulay
Ang sumbanan nga pagsulay para sa “mao ba kini nga 37 ka ihap ang ihatag sa patas nga ligid?”

χ² = Σ (naobserbahan − gidahom)² / gidahom sa tanang 37 ka bulsa. Itandi sa distribusyon sa chi-square sa 36 ka degree of freedom aron makuha ang p-value.
Pagkwenta niini
Ang gidahom nga ihap matag bulsakagamitanBulsaUsa sa 37 ka numerado nga kompartamento sa rotor. Gitawag usab: slot, cup.Basaha tanan → mao ang n/37. Para sa matag bulsa, i-square ang kalainan tali sa naobserbahan ug gidahom ug bahina sa gidahom; idugang ang 37 ka termino. Ang patas nga ligid mohatag og mga bili nga mga 36 sa average (ang degree of freedomlabDegrees of freedomAng gidaghanon sa independente nga mga bili sa usa ka estadistika. Alang sa chi-square nga pagsulay sa 37 ka bulsa kini 36, tungod kay ang mga ihap kinahanglan mosuma sa kinatibuk-an.Basaha tanan →), nga adunay standard deviationmatematikaStandard deviationSquare root sa variance; ang kasagarang gilay-on sa usa ka resulta gikan sa gidahom nga bili.Basaha tanan → nga mga 8.5. Ibabaw sa 51.0 mahinungdanon sa 5% nga lebel; ibabaw sa 58.6 sa 1%. Ang Tig-analisar sa Pagkiling sa Ligid sa Roulette mokwenta sa estadistika ug sa eksakto nga p-valuelabp-valueAng probabilidad nga makakita og deviation nga labing menos sama kadako sa naobserbahan kon patas ang ligid.Basaha tanan → gikan sa regularized incomplete gamma function.
Usa ka gikwenta nga ehemplo
Consider a hypothetical sample of 1,000 independent spinsmatematikaIndependente nga mga tuyokAng matag tuyok adunay parehas nga mga probabilidad bisan unsa pa ang kasaysayan. Ang sukaranan sa matag kuwenta niini nga site.Basaha tanan →. 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 probabilitymatematikaProbabilidadTsansa sa usa ka resulta, gikan sa 0 hangtod 1 o 0% hangtod 100%. Usa ka numero: 1/37 = 2.70%.Basaha tanan → 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.
Mga pangagpas
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.
Pirma sa Dealer sa RouletteIndependente nga mga Tuyok sa Roulette
Si Pearson ug ang Monte Carlo
Gipatik ni Karl Pearson ang pagsulay niadtong 1900, ug usa sa iyang unang gikwenta nga mga ehemplo mao ang 26,306 ka narekord nga mga tuyok sa roulette sa Monte Carlo, nga iyang nakit-an nga dili managsama kaayo aron mahimong tsamba ug gipahayag nga “ang roulette sa Monte Carlo… dili dula sa tsamba”. Ang ulahing mga magsusulat mihinapos nga ang mga peryodista nga nagrekord sa mga tuyok para sa usa ka mantalaan nag-imbento sa daghan niini, nga usa usab ka leksyon bahin sa gigikanan sa datos.

Usa ka tinuod nga pagsulay: mga awtomatikong ligid sa 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.
Lapas sa chi-square
Para sa usa ka gidudahang bulsa, mas gamhanan ang binomial nga pagsulay. Para sa gidudahang arko, ang z-test sa sektorligidSektorUsa ka padayon nga arko sa mga bulsa sa ligid, lahi sa usa ka grupo sa layout.Basaha tanan → sa panid sa Pag-analisar sa Sektor. Ang chi-square mao ang omnibus nga pagsulay: mosulti kini nimo nga adunay sayop nga wala magsulti kon unsa. Gamita kini una, dayon tan-awa.
Pormula
Mga pangutana
Ang 37 ka ihap kinahanglan mosuma og n, busa 36 ra ang gawasnon nga mausab.
Ang ligid nga adunay usa ka bulsa sa 1/25 sa 10,000 ka tuyok mohatag og termino sa bulsa nga mga 60 nga nag-inusara; χ² mga 100, p halos sero.
Teknikal nga oo, nga gidahom nga 5.4 matag bulsa. Wala kini madetekta gawas kon ang ligid adunay bulsa nga gipapilit nga sirado.
Komiks nga pahulay

For 36 degrees of freedom, the approximate 5% upper-tail cutoff is 51.0.
Mga Tinubdan
- 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.