The following problems are copied from the chapter 16 exercises from Introduction to Modern Statistics First Edition by Mine Çetinkaya-Rundel and Johanna Hardin (https://openintro-ims.netlify.app/inference-one-prop.html)
Married at 25. A study suggests that the 25% of 25 year olds have gotten married. You believe that this is incorrect and decide to collect your own sample for a hypothesis test. From a random sample of 25 year olds in census data with size 776, you find that 24% of them are married. A friend of yours offers to help you with setting up the hypothesis test and comes up with the following hypotheses. Indicate any errors you see.
\(H_0 \hat p = 0.24\)
\(H_a \hat p \ne 0.24\)
ANSWER: The hypothesis should be for the population as a whole, not for the sample population.
ANSWER: \(H_0 p = 0.55\)
\(H_a p \ < .55\)
ANSWER: \(\alpha= .05\)
\(z=(\hat p - p_0)/ \sqrt (p_0(1-p_0)/n)\)
\(z=(.60 - .55)/ \sqrt (.55(1-.55)/1563)= 3.97\)
p hat= .6 . Given the alpha value of .05 and the p value of 1 we fail to reject the null hypothesis as the p value of 1 is greater than the alpha value of .05. Therefore we can state with confidence that weed would be legalized as the null hypothesis states that 55% of people would legalize weed.
A political pundit on TV claims that a majority of Independents support a National Health Plan. Do these data provide strong evidence to support this type of statement? One approach to assessing the question of whether a majority of Independents support a National Health Plan is to simulate 1,000 parametric bootstrap samples with p = 0.5 as the proportion of Independents in support.
See the book for the histogram displaying the parameterized bootstrap distribution.
ANSWER: Parameterized bootstrap sample proportions of those who support a national health plan.
ANSWER: Yes as .55 falls into the distribution chart
ANSWER: \(H_0 p = 0.50\)
\(H_a p \ < .50\)
ANSWER: \(\alpha= .05\)
\(z=(\hat p - p_0)/ \sqrt (p_0(1-p_0)/n)\)
\(z=(.55 - .5)/ \sqrt (.5(1-.5)/1000)= 3.16\)
phat=.5 . Independence is guaranteed in the problem and both the answers have more than 10 so we can use the central limit theorem. Given the alpha value of .05 and the p value of .999 we fail to reject the Null hypothesis as the p value is above the alpha value and therefore we can conclude that a majority of Independents support a National Health Plan.
Date and time completed: Thu Oct 13 22:01:29 2022