◀ CONTENTSSTA503 · VOL.8EP.1 · Chi-square goodness-of-fit testMISSIONS 0/2LV 10 XP
VOL.8 · EP.1 · §8.1

Chi-square goodness-of-fit test

/StatsMadeFun/sta503/vol-8/chisquare
SENSEI RANK
Then you lose one degree of freedom per estimated parameter.
Chi-square goodness-of-fit test
The faculty has six counsellors. 36 students chose one for a session.
FARAH
FARAH
Pejabat kata students pilih kaunselor sama rata. Betul ke counts ni setuju?
SENSEI RANK
SENSEI RANK
Under H₀ each counsellor has p = 1/6, so the expected count is 36 × 1/6 = 6. Compare observed with expected.
MIKEY
MIKEY
Kuasa duakan gap, bahagi dengan expected count, tambah semua. Itu X².
NORMY
NORMY
Kalau kita estimate parameter dari data dulu? Macam λ untuk Poisson?
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Then you lose one degree of freedom per estimated parameter.
READ THE NOTES

Use it when

Testing whether observed frequencies in k categories fit a hypothesised distribution (uniform, binomial, Poisson, normal, or any specified probabilities).

Assumptions

  • A random sample of n observations classified into k mutually exclusive categories.
  • Expected frequencies not too small (no more than 20% below 5, none below 1); combine adjacent categories if needed.

Hypotheses

H₀: the sample comes from the hypothesised distribution H₁: it does not

Test statistic

X² = Σ (Oᵢ − Eᵢ)² / Eᵢ, Eᵢ = n·pᵢ (Equation 8.1) df = k − 1 − (number of parameters estimated from the sample)

Decision rule

Reject H₀ if X² ≥ χ²_df,1−α.

Worked shortcuts

  • Poisson with unknown λ: estimate λ̂ = Σx·f / n, then df = k − 2.
  • Normal with unknown μ and σ: estimate both, df = k − 3.
START THE MISSIONS
MISSION 1 OF 2

Counsellor choice

+30 XP
HOW TO PLAY

Work the procedure by hand on the data shown. Fill every box, then press CHECK. NEW DATA deals a fresh problem; SHOW SOLUTION gives the full working.

CLEARS WHENEvery box correct on one set of data.
Loading mission engine...

ALL MISSIONS IN THIS EPISODE