Lesson 5.1: Inference for One Mean or a Mean Difference from Two Paired Groups

Software Lab 5.1 Solutions

  1. The sample size is at least 30 and there are no particularly extreme outliers evident in the normal probability plot, so the nearly normal condition is likely satisfied.
    normal probability plot - math scores
    Figure 1: Normal probability plot for high school math scores
  2. \overline{y} \pm t^* \times \dfrac{s}{\sqrt{n}} = 52.6 \pm 1.972 \times \dfrac{9.37}{\sqrt{200}} = 52.6 \pm 1.3 = (51.3, 53.9). The more accurate interval in the “One Sample T-Test” output is (51.3, 54.0).
    Confidence interval for the mean - math scores
    Figure 2: Confidence interval for the mean math scores
  3. We’re 95% confident the mean standardized math score for high school seniors is between 51.3 and 54.0.
  4. t = \dfrac{\overline{y}-\mu_0}{s/\sqrt{n}} = \dfrac{52.6-55}{9.37/\sqrt{200}} = -3.62. The more accurate test statistic in the “One Sample T-Test” output (Fig. 3) is -3.55.
    Hypothesis test for a mean - math scores
    Figure 3 Hypothesis test for a mean in math scores

    The p-value from the code pt(-3.55, df=199) is 0.0002, which in the “One Sample T-Test” output (Fig. 3) is shown as “<.001.”

  5. Since p-value < 0.001 < \alpha = 0.05, there is sufficient evidence to reject the null hypothesis. The data support the admission officer’s belief that the mean standardized math score for high school seniors is not 55. Based on the confidence interval from question 2, the mean score appears to be less than 55.
  6. The sample size is at least 30 and there are no particularly extreme outliers evident in the normal probability plot, so the nearly normal condition is likely satisfied.
    Normal probability plot - math-science
    Figure 4: Normal probability plot for math and science scores
  7. \overline{y} \pm t^* \times SE(\overline{y}) = 0.795 \pm 1.972 \times 0.586 = 0.795 \pm 1.156 = (-0.361, 1.951). The interval in the “Paired Samples T-Test” output (Fig. 5) is given as (-0.361, 1.95).
    Confidence interval - math-science
    Figure 5: Confidence interval for math and science scores
  8. We’re 95% confident the difference in the mean scores of high school seniors for math and science is between -0.361 and 1.95.
  9. t = \dfrac{\overline{y}-\mu_0}{SE(\overline{y})} = \dfrac{0.795-0}{0.586} = 1.36, which matches the value in the “Paired Samples T-Test” output (Fig. 5).
    The p-value from the code 2*(1-pt(1.36, df=199)) is 0.175. The more accurate p-vale in the “Paired Samples T-Test” output (Fig. 5) is 0.177.
  10. Since p-value = 0.177 > \alpha = 0.05, there is insufficient evidence to reject the null hypothesis. The data do not support the admission officer’s belief that the mean standardized math score for high school seniors differs from the mean standardized science score.

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