Lab sa Roulette · Lab · Estadistika · 8 min

Chi-Square nga Pagsulay

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

Mubo nga tubag

χ² = Σ (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.

estadistika
Σ (O−E)²/E
df
36
kritikal sa 5%
51.0
kritikal sa 1%
58.6

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.

n ka tuyokgidahom matag bulsaσ matag bulsabulsa sa +2σbulsa sa +3σ
370103.11619
1,000275.13742
3,7001009.9120130
10,00027016.2303319
37,0001,00031.21,0621,094
σ ≈ √(n·p·(1−p)) nga p = 1/37. Sa 1,000 ka tuyok, ang bulsa nga 37 ka igo walay katingalahan; ang usa nga 42 angay og ikaduhang sampol.

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.

Ang pagsulay ni Pearson niadtong 1900 nakakita nga dili managsama kaayo ang mga tuyok sa Monte Carlo; ang mga tigrekord sa mantalaan nag-imbento sa daghan niini.

Roulette sa Monte Carlo

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.

Pag-analisar sa Sektor

Pormula

χ² = Σᵢ (Oᵢ − Eᵢ)² / Eᵢ
Eᵢ = n / 37 · df = 36
kritikal nga mga bili: 51.0 (5%) · 58.6 (1%)

Mga pangutana

Nganong 36 ka degree of freedom ug dili 37?

Ang 37 ka ihap kinahanglan mosuma og n, busa 36 ra ang gawasnon nga mausab.

Unsa nga χ² ang ipakita sa ligid nga grabe ang pagkiling?

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.

Mapadagan ba nako kini sa 200 ka tuyok?

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.

For 36 degrees of freedom, the approximate 5% upper-tail cutoff is 51.0.

Mga Tinubdan

  1. Pearson, K. “On the criterion that a given system of deviations from the probable…” https://www.itl.nist.gov/div898/software/dataplot/refman1/auxillar/chsqgood.htm
  2. Feller, W. An Introduction to Probability Theory and Its Applications, Vol. 1. https://www.amstat.org/asa/files/pdfs/P-ValueStatement.pdf
modelo: Uropanhon, usa ka serometodolohiya ↗mga tinubdan ↗