Lesson 4.2: Testing Goodness of Fit in One-way Tables

Software Lab 4.2 Solutions

  1. The expected frequencies are each 100, so they are all at least five.
  2. \chi^2 = \dfrac{(96-100)^2}{100} + \dfrac{(94-100)^2}{100} + \dfrac{(90-100)^2}{100} + \dfrac{(89-100)^2}{100} + \dfrac{(114-100)^2}{100} + \dfrac{(117-100)^2}{100} = 7.58.
  3. 1 - pchisq(7.58, df=5) ≈ 0.181. Since p-value = 0.1810 > \alpha = 0.05, there is insufficient evidence to reject the null hypothesis. The data support the claim that the die is fair.
  4. The test statistic and p-value match:
    jamovi chi-square goodness of fit
    Figure 1: Chi-square goodness -of-fit test
  5. The expected frequencies are 742, 338, 154, 70, 32, and 14.
  6. The expected frequency for 7+ days is 12.
  7. The expected frequencies are all at least five.
  8. \chi^2 = \dfrac{(717-742)^2}{742} + \dfrac{(369-338)^2}{338} + \dfrac{(155-154)^2}{154} + \dfrac{(69-70)^2}{70} + \dfrac{(28-32)^2}{32} + \dfrac{(14-14)^2}{14} + \dfrac{(10-12)^2}{12} = 4.54.
  9. 1 - pchisq(4.54, df=6) ≈ 0.604. Since p-value = 0.604 > \alpha = 0.05, there is insufficient evidence to reject the null hypothesis. The data support the claim that trading days are independent.
  10. The test statistic and p-value match:
    chi-square goodness of fit test
    Figure 2: Chi-square goodness-of-fit test

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Introduction to Probability and Statistics Copyright © 2023 by Thompson Rivers University is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book