Lesson 4.1: Inference for Proportions

Software Lab 4.1 Solutions

    1. n\hat{p} = 1807 \ge 10 and n(1-\hat{p}) = 10847 \ge 10.
    2. \hat{p} \pm z^* \times\sqrt {\dfrac{\hat{p}(1-\hat{p})}{n}} = 0.1428 \pm 1.960 \times \sqrt{\dfrac{0.1428(1-0.1428)}{12654}} = 0.143 \pm 0.006 = (0.137, 0.149) = (13.7\%, 14.9\%).
    3. np_0 = 1898 \ge 10$ and \( n(1-p_0) = 10756 \ge 10.
    4. Z = \dfrac{\hat{p}-p_0}{\sqrt{\dfrac{p_0(1-p_0)}{n}}} = \dfrac{0.1428-0.15}{\sqrt{\dfrac{(0.15)(0.85)}{12654}}} = -2.27.
    5. R code 2 * pnorm(-2.27, mean=0, sd=1) returns the p-value \small{ 0.023}. Since \small{ 0.023 < \alpha = 0.05}, reject H0 in favour of HA and conclude that there is sufficient evidence in the sample that the proportion of US high-schoolers who texted while driving for six or more days over the preceding 30 days is different from 15%. The survey results suggest that the proportion of US high-schoolers who texted while driving for six or more days over the preceding 30 days is less than 15%.<
    6. n_1\hat{p}_1 = 1031 \ge 10, n_1(1-\hat{p}_1) = 5462 \ge 10, n_2\hat{p}_2 = 776 \ge 10, and n_2(1-\hat{p}_2) = 5385 \ge 10.
    7. \hat{p}_1-\hat{p}_2 \, \pm \, z^* \times \sqrt{\dfrac{\hat{p}_1(1-\hat{p}_1)}{n_1}+\dfrac{\hat{p}_2(1-\hat{p}_2)}{n_2}} = 0.1588-0.1260 \, \pm \, 1.960 \times \sqrt{\dfrac{0.1588(1-0.1588)}{6493}+\dfrac{0.1260(1-0.1260)}{6161}} = 0.033 \pm 0.012 = (0.021, 0.045) = (2.1\%, 4.5\%).
    8. \hat{p} = \dfrac{1031+776}{6493+6161} = \dfrac{1807}{12654} = 0.1428. n_1\hat{p} = 927 \ge 10, n_1(1-\hat{p}) = 5566 \ge 10, n_2\hat{p} = 880 \ge 10, and n_2(1-\hat{p}) = 5281 \ge 10.
    9. Z = \dfrac{\hat{p}_1-\hat{p}_2}{\sqrt{\hat{p}(1-\hat{p})\left(\dfrac{1}{n_1}+\dfrac{1}{n_2}\right)}} = \dfrac{0.1588-0.1260}{\sqrt{0.1428(1-0.1428)\left(\dfrac{1}{6493}+\dfrac{1}{6161}\right)}} = 5.28.
    10. R code 2 * (1 - pnorm(5.28, mean=0, sd=1)) returns the p-value 0.000. Since 0.000 < \alpha = 0.05, reject H0 in favour of HA and conclude that there is sufficient evidence in the sample that the population proportions US high-schoolers who have texted while driving for six or more days over the preceding 30 day are not equal for males and females. The survey results suggest that the proportion of US high-schoolers who texted while driving for six or more days over the preceding 30 days is higher for males than females.

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