The following problems are copied from the chapter 17 exercises from Introduction to Modern Statistics First Edition by Mine Çetinkaya-Rundel and Johanna Hardin (https://openintro-ims.netlify.app/inference-one-prop.html)
The following problem is a modified version of the problem that appears in your book.
ANSWER: Frequency Table
ANSWER: Yes as both the success and failures for both were larger than 10 and the observations are independent.
\(H_0 \space p_C = p_O\)
\(H_a \space p_C \ne p_O\)
prop.test(x=c (412.8, 923.6), n=c(4691, 11545), correct=FALSE, alternative = "two.sided")
##
## 2-sample test for equality of proportions without continuity
## correction
##
## data: c(412.8, 923.6) out of c(4691, 11545)
## X-squared = 2.825, df = 1, p-value = 0.09281
## alternative hypothesis: two.sided
## 95 percent confidence interval:
## -0.001499599 0.017496188
## sample estimates:
## prop 1 prop 2
## 0.08799829 0.08000000
ANSWER: P-value= .0928. We fail to reject the null hypothesis and therefore conclude that the rate of sleep deprivation between the two states is roughly equal.
ANSWER: It should be the same, since we were allowed to use the normal approximation method due to all of the prerequisites being present in terms of independence and numbers of successes and failures.
Date and time completed: Thu Nov 3 21:26:50 2022