4 coins are tossed 160 times and the following results were obtained:
| No. of heads | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Observed frequencies | 17 | 52 | 54 | 31 | 6 |
4 coins are tossed 160 times and the following results were obtained: Under the assumption that the coins are unbiased, we obtain the expected frequencies of getting 0, 1, 2 3 or 4 heads and tested the goodness of fit. Applying the χ² that for testing the goodness of fit, the calculated value of χ² comes out to be:
Under H₀ the number of heads X ~ Binomial(4, 1/2), so P(X = x) = C(4, x)/16.
Expected frequencies = 160 × (1, 4, 6, 4, 1)/16 = 10, 40, 60, 40, 10.
Contributions (O − E)²/E: 49/10 = 4.9, 144/40 = 3.6, 36/60 = 0.6, 81/40 = 2.025, 16/10 = 1.6.
χ² = 4.9 + 3.6 + 0.6 + 2.025 + 1.6 = 12.725.
Degrees of freedom = 5 − 1 = 4, since p is fully specified and no parameter is estimated.
The 5% critical value χ²₀.₀₅(4) = 9.488, so 12.725 leads to rejecting the hypothesis of unbiased coins.
If p were estimated from the data, one more degree of freedom would be lost, giving 3 d.f.
Pearson's χ² goodness of fit test (1900) requires each expected frequency to be at least 5, otherwise adjacent classes are pooled.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →