- 2074 Bhadra · 6 marks
Chi-square uniformity test, 40 numbers
Short answer
Divide the range 1‑59 into 10 equal classes, expected count Ei=4. Observed frequencies yield χ² = Σ (Oi−Ei)²/Ei = 2.00. With df=9 and α=0.10, critical value χ²0.10,9 = 14.684. Since 2.00 < 14.684, H0 is not rejected; the numbers can be accepted as uniform.
Using Chi-Square test the uniformity at 90% for the given random numbers. Degree of freedom for 6 = 10.645, 7 = 12.017, 8 = 13.362, 9 = 14.684, 10 = 15.987.
| 20 | 34 | 43 | 42 | 14 | 10 | 33 | 17 | 6 | 11 |
| 15 | 16 | 4 | 1 | 35 | 22 | 9 | 46 | 37 | 57 |
| 51 | 49 | 40 | 27 | 59 | 5 | 44 | 19 | 41 | 55 |
| 53 | 29 | 3 | 31 | 48 | 8 | 56 | 28 | 12 | 7 |
Setup. H0: the numbers are uniformly distributed. H1: they are not. The 40 numbers lie between 1 and 59, so the range 1–60 is divided into 10 equal classes of width 6. The number of classes is n = 10, N = 40, so the expected frequency of each class is Ei = N/n = 40/10 = 4.
The test statistic is χ0² = Σ (Oi − Ei)²/Ei.
Counting the observed frequencies
| Class | Oi | Ei | Oi − Ei | (Oi − Ei)²/Ei |
|---|---|---|---|---|
| 1–6 | 5 | 4 | 1.0 | 0.250 |
| 7–12 | 6 | 4 | 2.0 | 1.000 |
| 13–18 | 4 | 4 | 0.0 | 0.000 |
| 19–24 | 3 | 4 | -1.0 | 0.250 |
| 25–30 | 3 | 4 | -1.0 | 0.250 |
| 31–36 | 4 | 4 | 0.0 | 0.000 |
| 37–42 | 4 | 4 | 0.0 | 0.000 |
| 43–48 | 4 | 4 | 0.0 | 0.000 |
| 49–54 | 3 | 4 | -1.0 | 0.250 |
| 55–60 | 4 | 4 | 0.0 | 0.000 |
Σ Oi = 40 (all 40 numbers counted).
χ0² = 2.00
Critical value. Confidence 90% means α = 0.10. Degrees of freedom = n − 1 = 10 − 1 = 9. From the values given, χ²0.10,9 = 14.684.
Conclusion. Since χ0² = 2.0 < 14.684, H0 is not rejected. At the 90% level the numbers can be accepted as uniformly distributed.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Chi-square test on 100 random numbers · Simulation and Modeling, chapter 6
- Poker test, 10,000 five-digit numbers (2072) · Simulation and Modeling, chapter 6 · asked 4×
- Poker test, 10,000 five-digit numbers (2074) · Simulation and Modeling, chapter 6 · asked 2×
- K-map Σm(7,9,12,13,14,15)+d, NOR-only · Digital Logic, chapter 3
- Chi-square test of independence: 2×2 procedure · Probability and Statistics, chapter 7
- Minterms/maxterms; K-map Σm(0,1,2,4,6,8,9,12,13,14) · Digital Logic, chapter 3
- K-map Σ(1,2,3,8,9,10,11,13,14)+d, POS · Digital Logic, chapter 3