Skip to main content

Introductory Statistics

Section A.5 Foundations For Inference

Solution 1. Exercise 1
  1. Mean. Each student reports a numerical value: a number of hours.
  2. Mean. Each student reports a number, which is a percentage, and we can average over these percentages.
  3. Proportion. Each student reports Yes or No, so this is a categorical variable and we use a proportion.
  4. Mean. Each student reports a number, which is a percentage like in part.
  5. .
  6. Proportion. Each student reports whether or not s/he expects to get a job, so this is a categorical variable and we use a proportion.
Solution 2. Exercise 3
  1. The sample is from all computer chips manufactured at the factory during the week of production. We might be tempted to generalize the population to represent all weeks, but we should exercise caution here since the rate of defects may change over time.
  2. The fraction of computer chips manufactured at the factory during the week of production that had defects.
  3. Estimate the parameter using the data: \(\hat{p} = \frac{27}{212} = 0.127\text{.}\)
  4. Standard error (or \(SE\)).
  5. Compute the \(SE\) using \(\hat{p} = 0.127\) in place of \(p\text{:}\) \(SE \approx \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}} = \sqrt{\frac{0.127(1 - 0.127)}{212}} = 0.023\text{.}\)
  6. The standard error is the standard deviation of \(\hat{p}\text{.}\) A value of 0.10 would be about one standard error away from the observed value, which would not represent a very uncommon deviation. (Usually beyond about 2 standard errors is a good rule of thumb.) The engineer should not be surprised.
  7. Recomputed standard error using \(p = 0.1\text{:}\) \(SE = \sqrt{\frac{0.1(1 - 0.1)}{212}} = 0.021\text{.}\) This value isn’t very different, which is typical when the standard error is computed using relatively similar proportions (and even sometimes when those proportions are quite different!).
Solution 3. Exercise 5
  1. Sampling distribution.
  2. If the population proportion is in the 5-30\% range, the success-failure condition would be satisfied and the sampling distribution would be symmetric.
  3. We use the formula for the standard error: \(SE = \sqrt{\frac{p (1 - p)}{n}} = \sqrt{\frac{0.08 (1 - 0.08)}{800}} = 0.0096\text{.}\)
  4. Standard error.
  5. The distribution will tend to be more variable when we have fewer observations per sample.
Solution 4. Exercise 7
Recall that the general formula is \(point estimate \pm z^{\star} \times SE\text{.}\) First, identify the three different values. The point estimate is 45\%, \(z^{\star} = 1.96\) for a 95\% confidence level, and \(SE = 1.2\%\text{.}\) Then, plug the values into the formula: \(45\% \pm 1.96 \times 1.2\% \quad\to\quad (42.6\%, 47.4\%) \) We are 95\% confident that the proportion of US adults who live with one or more chronic conditions is between 42.6\% and 47.4\%.
Solution 5. Exercise 9
  1. False. Confidence intervals provide a range of plausible values, and sometimes the truth is missed. A 95\% confidence interval β€œmisses” about 5\% of the time.
  2. True. Notice that the description focuses on the true population value.
  3. True. If we examine the 95\% confidence interval computed in Exercise \ref{chronic_illness_intro}, we can see that 50\% is not included in this interval. This means that in a hypothesis test, we would reject the null hypothesis that the proportion is 0.5.
  4. False. The standard error describes the uncertainty in the overall estimate from natural fluctuations due to randomness, not the uncertainty corresponding to individuals’ responses.
Solution 6. Exercise 11
  1. False. The point estimate is always in the confidence interval, and this is a non-sensical use of a confidence interval with a point estimate (because the point estimate is, by design, listed within the confidence interval).
  2. True.
  3. False. The confidence interval is not about a sample mean.
  4. False. To be more confident that we capture the parameter, we need a wider interval. Think about needing a bigger net to be more sure of catching a fish in a murky lake.
  5. True. Optional explanation: This is true since the normal model was used to model the sample mean. The margin of error is half the width of the interval, and the sample mean is the midpoint of the interval.
  6. False. In the calculation of the standard error, we divide the standard deviation by the square root of the sample size. To cut the SE (or margin of error) in half, we would need to sample \(2^2 = 4\) times the number of people in the initial sample.
Solution 7. Exercise 13
  1. The visitors are from a simple random sample, so independence is satisfied. The success-failure condition is also satisfied, with both 64 and \(752 - 64 = 688\) above 10. Therefore, we can use a normal distribution to model \(\hat{p}\) and construct a confidence interval.
  2. The sample proportion is \(\hat{p} = \frac{64}{752} = 0.085\text{.}\) The standard error is {\footnotesize[Math: SE &= \sqrt{\frac{p (1 - p)}{n}} \approx \sqrt{\frac{\hat{p} (1 - \hat{p})}{n}} &= \sqrt{\frac{0.085 (1 - 0.085)}{752}} = 0.010 ]}%.
  3. For a 90\% confidence interval, use \(z^{\star} = 1.6449\text{.}\) The confidence interval is \(0.085 \pm 1.6449 \times 0.010 \to (0.0683, 0.1017)\text{.}\) We are 90\% confident that 6.83\% to 10.17\% of first-time site visitors will register using the new design.
Solution 8. Exercise 15
  1. \(H_0: p = 0.5\) (Neither a majority nor minority of students’ grades improved) \(H_A: p \neq 0.5\) (Either a majority or a minority of students’ grades improved).
  2. \(H_0: \mu = 15\) (The average amount of company time each employee spends not working is 15 minutes for March Madness.) \(H_A: \mu \neq 15\) (The average amount of company time each employee spends not working is different than 15 minutes for March Madness.).
Solution 9. Exercise 17
(1) The hypotheses should be about the population proportion (\(p\)), not the sample proportion. (2) The null hypothesis should have an equal sign. (3) The alternative hypothesis should have a not-equals sign, and (4) it should reference the null value, \(p_0 = 0.6\text{,}\) not the observed sample proportion. The correct way to set up these hypotheses is: \(H_0: p = 0.6\) and \(H_A: p \neq 0.6\text{.}\)
Solution 10. Exercise 19
  1. This claim is reasonable, since the entire interval lies above 50\%.
  2. The value of 70\% lies outside of the interval, so we have convincing evidence that the researcher’s conjecture is wrong.
  3. A 90\% confidence interval will be narrower than a 95\% confidence interval. Even without calculating the interval, we can tell that 70\% would not fall in the interval, and we would reject the researcher’s conjecture based on a 90\% confidence level as well.
Solution 11. Exercise 21
  1. Set up hypotheses. \(H_0\text{:}\) \(p = 0.5\text{,}\) \(H_A\text{:}\) \(p \neq 0.5\text{.}\) We will use a significance level of \(\alpha = 0.05\text{.}\) (ii) Check conditions: simple random sample gets us independence, and the success-failure conditions is satisfied since \(0.5 \times 1000 = 500\) for each group is at least 10. (iii) Next, we calculate: \(SE = \sqrt{0.5 (1 - 0.5) / 1000} = 0.016\text{.}\) \(Z = \frac{0.42 - 0.5}{0.016} = -5\text{,}\) which has a one-tail area of about 0.0000003, so the p-value is twice this one-tail area at 0.0000006. (iv) Make a conclusion: Because the p-value is less than \(\alpha = 0.05\text{,}\) we reject the null hypothesis and conclude that the fraction of US adults who believe raising the minimum wage will help the economy is not 50\%. Because the observed value is less than 50\% and we have rejected the null hypothesis, we can conclude that this belief is held by fewer than 50\% of US adults. (For reference, the survey also explores support for changing the minimum wage, which is a different question than if it will help the economy.).
Solution 12. Exercise 23
If the p-value is 0.05, this means the test statistic would be either \(Z = -1.96\) or \(Z = 1.96\text{.}\) We’ll show the calculations for \(Z = 1.96\text{.}\) Standard error: \(SE = \sqrt{0.3 (1 - 0.3) / 90} = 0.048\text{.}\) Finally, set up the test statistic formula and solve for \(\hat{p}\text{:}\) \(1.96 = \frac{\hat{p} - 0.3}{0.048} \to \hat{p} = 0.394\) Alternatively, if \(Z = -1.96\) was used: \(\hat{p} = 0.206\text{.}\)
Solution 13. Exercise 25
  1. \(H_0\text{:}\) Anti-depressants do not affect the symptoms of Fibromyalgia. \(H_A\text{:}\) Anti-depressants do affect the symptoms of Fibromyalgia (either helping or harming).
  2. Concluding that anti-depressants either help or worsen Fibromyalgia symptoms when they actually do neither.
  3. Concluding that anti-depressants do not affect Fibromyalgia symptoms when they actually do.
Solution 14. Exercise 27
  1. We are 95\% confident that Americans spend an average of 1.38 to 1.92 hours per day relaxing or pursuing activities they enjoy.
  2. Their confidence level must be higher as the width of the confidence interval increases as the confidence level increases.
  3. The new margin of error will be smaller, since as the sample size increases, the standard error decreases, which will decrease the margin of error.
Solution 15. Exercise 29
  1. \(H_0\text{:}\) The restaurant meets food safety and sanitation regulations. \(H_A\text{:}\) The restaurant does not meet food safety and sanitation regulations.
  2. The food safety inspector concludes that the restaurant does not meet food safety and sanitation regulations and shuts down the restaurant when the restaurant is actually safe.
  3. The food safety inspector concludes that the restaurant meets food safety and sanitation regulations and the restaurant stays open when the restaurant is actually not safe.
  4. A Type 1 Error may be more problematic for the restaurant owner since his restaurant gets shut down even though it meets the food safety and sanitation regulations.
  5. A Type 2 Error may be more problematic for diners since the restaurant deemed safe by the inspector is actually not.
  6. Strong evidence. Diners would rather a restaurant that meet the regulations get shut down than a restaurant that doesn’t meet the regulations not get shut down.
Solution 16. Exercise 31
  1. \(H_0: p_{unemp} = p_{underemp}\text{:}\) The proportions of unemployed and underemployed people who are having relationship problems are equal. \(H_A: p_{unemp} \ne p{underemp}\text{:}\) The proportions of unemployed and underemployed people who are having relationship problems are different.
  2. If in fact the two population proportions are equal, the probability of observing at least a 2\% difference between the sample proportions is approximately 0.35. Since this is a high probability we fail to reject the null hypothesis. The data do not provide convincing evidence that the proportion of of unemployed and underemployed people who are having relationship problems are different.
Solution 17. Exercise 33
Because 130 is inside the confidence interval, we do not have convincing evidence that the true average is any different than what the nutrition label suggests.
Solution 18. Exercise 35
True. If the sample size gets ever larger, then the standard error will become ever smaller. Eventually, when the sample size is large enough and the standard error is tiny, we can find statistically significant yet very small differences between the null value and point estimate (assuming they are not exactly equal).
Solution 19. Exercise 37
  1. In effect, we’re checking whether men are paid more than women (or vice-versa), and we’d expect these outcomes with either chance under the null hypothesis: [Math: &H_0: p = 0.5 &&H_A: p \neq 0.5 ] We’ll use \(p\) to represent the fraction of cases where men are paid more than women.
  2. Below is the completion of the hypothesis test. \begin{itemize} \item There isn’t a good way to check independence here since the jobs are not a simple random sample. However, independence doesn’t seem unreasonable, since the individuals in each job are different from each other. The success-failure condition is met since we check it using the null proportion: \(p_0 n = (1 - p_0) n = 10.5\) is greater than 10. \item We can compute the sample proportion, \(SE\text{,}\) and test statistic: [Math: \hat{p} &= 19 / 21 = 0.905 SE &= \sqrt{\frac{0.5 \times (1 - 0.5)}{21}} = 0.109 Z &= \frac{0.905 - 0.5}{0.109} = 3.72 ] The test statistic \(Z\) corresponds to an upper tail area of about 0.0001, so the p-value is 2 times this value: 0.0002. \item Because the p-value is smaller than 0.05, we reject the notion that all these gender pay disparities are due to chance. Because we observe that men are paid more in a higher proportion of cases and we have rejected \(H_0\text{,}\) we can conclude that men are being paid higher amounts in ways not explainable by chance alone. \end{itemize} If you’re curious for more info around this topic, including a discussion about adjusting for additional factors that affect pay, please see the following video by Healthcare Triage: \oiRedirect{textbook-yt_healthcare_triage_gender_pay_gap} {youtu.be/aVhgKSULNQA}.