Every problem in the chapter beside the book’s answer, a chapter at a time as you scroll.
Chapter 5: Foundations for inference
33 problems · 1 figureGuided Practice 5.5 §5.1 source ↗
In Example 5.1 we discussed how a smaller sample would tend to produce a less reliable estimate. Explain how this intuition is reflected in the formula for .
If we used a much smaller sample size of , would you guess that the standard error for would be larger or smaller than when we used ?
Answer. Intuitively, it seems like more data is better than less data, and generally that is correct! The typical error when and would be larger than the error we would expect when .
Answer
Since the sample size is in the denominator (on the bottom) of the fraction, a bigger sample size means the entire expression when calculated will tend to be smaller. That is, a larger sample size would correspond to a smaller standard error.
5.1 §5.1 source ↗
Identify the parameter, Part I. For each of the following situations, state whether the parameter of interest is a mean or a proportion. It may be helpful to examine whether individual responses are numerical or categorical.
In a survey, one hundred college students are asked how many hours per week they spend on the Internet.
In a survey, one hundred college students are asked: “What percentage of the time you spend on the Internet is part of your course work?"
In a survey, one hundred college students are asked whether or not they cited information from Wikipedia in their papers.
In a survey, one hundred college students are asked what percentage of their total weekly spending is on alcoholic beverages.
In a sample of one hundred recent college graduates, it is found that 85 percent expect to get a job within one year of their graduation date.
Answer (5 parts)
Mean. Each student reports a numerical value: a number of hours.
Mean. Each student reports a number, which is a percentage, and we can average over these percentages.
Proportion. Each student reports Yes or No, so this is a categorical variable and we use a proportion.
Mean. Each student reports a number, which is a percentage like in part (b).
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.
5.3 §5.1 source ↗
Quality control. As part of a quality control process for computer chips, an engineer at a factory randomly samples 212 chips during a week of production to test the current rate of chips with severe defects. She finds that 27 of the chips are defective.
What population is under consideration in the data set?
What parameter is being estimated?
What is the point estimate for the parameter?
What is the name of the statistic we use to measure the uncertainty of the point estimate?
Compute the value from part (d) for this context.
The historical rate of defects is 10%. Should the engineer be surprised by the observed rate of defects during the current week?
Suppose the true population value was found to be 10%. If we use this proportion to recompute the value in part (e) using instead of , does the resulting value change much?
Answer (7 parts)
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.
The fraction of computer chips manufactured at the factory during the week of production that had defects.
Estimate the parameter using the data: .
Standard error (or ).
Compute the using in place of : .
The standard error is the standard deviation of . 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.
Recomputed standard error using : . 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!).
5.5 §5.1 source ↗
Repeated water samples. A nonprofit wants to understand the fraction of households that have elevated levels of lead in their drinking water. They expect at least 5% of homes will have elevated levels of lead, but not more than about 30%. They randomly sample 800 homes and work with the owners to retrieve water samples, and they compute the fraction of these homes with elevated lead levels. They repeat this 1,000 times and build a distribution of sample proportions.
What is this distribution called?
Would you expect the shape of this distribution to be symmetric, right skewed, or left skewed? Explain your reasoning.
If the proportions are distributed around 8%, what is the variability of the distribution?
What is the formal name of the value you computed in (c)?
Suppose the researchers’ budget is reduced, and they are only able to collect 250 observations per sample, but they can still collect 1,000 samples. They build a new distribution of sample proportions. How will the variability of this new distribution compare to the variability of the distribution when each sample contained 800 observations?
Answer (5 parts)
Sampling distribution.
If the population proportion is in the 5-30% range, the success-failure condition would be satisfied and the sampling distribution would be symmetric.
We use the formula for the standard error: .
Standard error.
The distribution will tend to be more variable when we have fewer observations per sample.
Guided Practice 5.6 §5.2 source ↗
If we want to be very certain we capture the population proportion in an interval, should we use a wider interval or a smaller interval?
Answer
If we want to be more certain we will capture the fish, we might use a wider net. Likewise, we use a wider confidence interval if we want to be more certain that we capture the parameter.
Guided Practice 5.9 §5.2 source ↗
If is a normally distributed random variable, what is the probability of the value being within 2.58 standard deviations of the mean?
Answer
This is equivalent to asking how often the Z-score will be larger than -2.58 but less than 2.58. For a picture, see Figure 5.7. To determine this probability, we can use statistical software, a calculator, or a table to look up -2.58 and 2.58 for a normal distribution: 0.0049 and 0.9951. Thus, there is a probability that an unobserved normal random variable will be within 2.58 standard deviations of .
Guided Practice 5.14 §5.2 source ↗
Answer the following two questions about the confidence interval from Example 5.13:
1. What does 95% confident mean in this context?
2. Do you think the confidence interval is still valid for the opinions of New Yorkers today?
Construct a 95% confidence interval for , the proportion of New York adults who supported a quarantine for anyone who has come into contact with an Ebola patient.
Answer. Using the standard error from Example 5.12, the point estimate 0.82, and for a 95% confidence level, the confidence interval is
We are 95% confident that the proportion of New York adults in October 2014 who supported a quarantine for anyone who had come into contact with an Ebola patient was between 0.796 and 0.844.
Answer (2 parts)
If we took many such samples and computed a 95% confidence interval for each, then about 95% of those intervals would contain the actual proportion of New York adults who supported a quarantine for anyone who has come into contact with an Ebola patient.
Not necessarily. The poll was taken at a time where there was a huge public safety concern. Now that people have had some time to step back, they may have changed their opinions. We would need to run a new poll if we wanted to get an estimate of the current proportion of New York adults who would support such a quarantine period.
Guided Practice 5.15 §5.2 source ↗
In the Pew Research poll about solar energy, they also inquired about other forms of energy, and 84.8% of the 1000 respondents supported expanding the use of wind turbines.
1. Is it reasonable to model the proportion of US adults who support expanding wind turbines using a normal distribution?
2. Create a 99% confidence interval for the level of American support for expanding the use of wind turbines for power generation.
Answer (2 parts)
The survey was a random sample and counts are both ( and ), so independence and the success-failure condition are satisfied, and can be modeled using a normal distribution.
Guided Practice 5.15 confirmed that closely follows a normal distribution, so we can use the C.I. formula:
In this case, the point estimate is . For a 99% confidence interval, . Computing the standard error: . Finally, we compute the interval as . It is also important to always provide an interpretation for the interval: we are 99% confident the proportion of American adults that support expanding the use of wind turbines in 2018 is between 81.9% and 87.7%.
Guided Practice 5.16 §5.2 source ↗
Consider the 90% confidence interval for the solar energy survey: 87.1% to 90.4%. If we ran the survey again, can we say that we’re 90% confident that the new survey’s proportion will be between 87.1% and 90.4%?
Answer
No, a confidence interval only provides a range of plausible values for a parameter, not future point estimates.
5.7 §5.2 source ↗
Chronic illness, Part I. In 2013, the Pew Research Foundation reported that “45% of U.S. adults report that they live with one or more chronic conditions”. However, this value was based on a sample, so it may not be a perfect estimate for the population parameter of interest on its own. The study reported a standard error of about 1.2%, and a normal model may reasonably be used in this setting. Create a 95% confidence interval for the proportion of U.S. adults who live with one or more chronic conditions. Also interpret the confidence interval in the context of the study.
Answer
Recall that the general formula is . First, identify the three different values. The point estimate is 45%, for a 95% confidence level, and . Then, plug the values into the formula: 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%.
5.9 §5.2 source ↗
Chronic illness, Part II. In 2013, the Pew Research Foundation reported that “45% of U.S. adults report that they live with one or more chronic conditions”, and the standard error for this estimate is 1.2%. Identify each of the following statements as true or false. Provide an explanation to justify each of your answers.
We can say with certainty that the confidence interval from Exercise 5.7 contains the true percentage of U.S. adults who suffer from a chronic illness.
If we repeated this study 1,000 times and constructed a 95% confidence interval for each study, then approximately 950 of those confidence intervals would contain the true fraction of U.S. adults who suffer from chronic illnesses.
The poll provides statistically significant evidence (at the level) that the percentage of U.S. adults who suffer from chronic illnesses is below 50%.
Since the standard error is 1.2%, only 1.2% of people in the study communicated uncertainty about their answer.
Chronic illness, Part I. In 2013, the Pew Research Foundation reported that “45% of U.S. adults report that they live with one or more chronic conditions”. However, this value was based on a sample, so it may not be a perfect estimate for the population parameter of interest on its own. The study reported a standard error of about 1.2%, and a normal model may reasonably be used in this setting. Create a 95% confidence interval for the proportion of U.S. adults who live with one or more chronic conditions. Also interpret the confidence interval in the context of the study.
Answer. Recall that the general formula is . First, identify the three different values. The point estimate is 45%, for a 95% confidence level, and . Then, plug the values into the formula: 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%.
Answer (4 parts)
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.
True. Notice that the description focuses on the true population value.
True. If we examine the 95% confidence interval computed in Exercise 5.7, 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.
False. The standard error describes the uncertainty in the overall estimate from natural fluctuations due to randomness, not the uncertainty corresponding to individuals’ responses.
Chronic illness, Part I. In 2013, the Pew Research Foundation reported that “45% of U.S. adults report that they live with one or more chronic conditions”. However, this value was based on a sample, so it may not be a perfect estimate for the population parameter of interest on its own. The study reported a standard error of about 1.2%, and a normal model may reasonably be used in this setting. Create a 95% confidence interval for the proportion of U.S. adults who live with one or more chronic conditions. Also interpret the confidence interval in the context of the study.
Answer. Recall that the general formula is . First, identify the three different values. The point estimate is 45%, for a 95% confidence level, and . Then, plug the values into the formula: 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%.
5.11 §5.2 source ↗
Waiting at an ER, Part I. A hospital administrator hoping to improve wait times decides to estimate the average emergency room waiting time at her hospital. She collects a simple random sample of 64 patients and determines the time (in minutes) between when they checked in to the ER until they were first seen by a doctor. A 95% confidence interval based on this sample is (128 minutes, 147 minutes), which is based on the normal model for the mean. Determine whether the following statements are true or false, and explain your reasoning.
We are 95% confident that the average waiting time of these 64 emergency room patients is between 128 and 147 minutes.
We are 95% confident that the average waiting time of all patients at this hospital’s emergency room is between 128 and 147 minutes.
95% of random samples have a sample mean between 128 and 147 minutes.
A 99% confidence interval would be narrower than the 95% confidence interval since we need to be more sure of our estimate.
The margin of error is 9.5 and the sample mean is 137.5.
In order to decrease the margin of error of a 95% confidence interval to half of what it is now, we would need to double the sample size. (Hint: the margin of error for a mean scales in the same way with sample size as the margin of error for a proportion.)
Answer (6 parts)
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).
True.
False. The confidence interval is not about a sample mean.
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.
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.
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 times the number of people in the initial sample.
5.13 §5.2 source ↗
Website registration. A website is trying to increase registration for first-time visitors, exposing 1% of these visitors to a new site design. Of 752 randomly sampled visitors over a month who saw the new design, 64 registered.
Check any conditions required for constructing a confidence interval.
Compute the standard error.
Construct and interpret a 90% confidence interval for the fraction of first-time visitors of the site who would register under the new design (assuming stable behaviors by new visitors over time).
Answer (3 parts)
The visitors are from a simple random sample, so independence is satisfied. The success-failure condition is also satisfied, with both 64 and above 10. Therefore, we can use a normal distribution to model and construct a confidence interval.
The sample proportion is . The standard error is
For a 90% confidence interval, use . The confidence interval is . We are 90% confident that 6.83% to 10.17% of first-time site visitors will register using the new design.
Guided Practice 5.17 §5.3 source ↗
A US court considers two possible claims about a defendant: she is either innocent or guilty. If we set these claims up in a hypothesis framework, which would be the null hypothesis and which the alternative?
Answer
The jury considers whether the evidence is so convincing (strong) that there is no reasonable doubt regarding the person’s guilt; in such a case, the jury rejects innocence (the null hypothesis) and concludes the defendant is guilty (alternative hypothesis).
Guided Practice 5.19 §5.3 source ↗
Another example of a real-world hypothesis testing situation is evaluating whether a new drug is better or worse than an existing drug at treating a particular disease. What should we use for the null and alternative hypotheses in this case?
Answer
The null hypothesis () in this case is the declaration of no difference: the drugs are equally effective. The alternative hypothesis () is that the new drug performs differently than the original, i.e. it could perform better or worse.
Guided Practice 5.22 §5.3 source ↗
Let’s move onto a second question posed by the Roslings:
There are 2 billion children in the world today aged 0-15 years old, how many children will there be in year 2100 according to the United Nations?
1. 4 billion.
2. 3 billion.
3. 2 billion.
Set up appropriate hypotheses to evaluate whether college-educated adults are better than random guessing on this question. Also, see if you can guess the correct answer before checking the answer in the footnote!
Answer
The appropriate hypotheses are:
: the proportion who get the answer correct is the same as random guessing: 1-in-3, or .
: the proportion who get the answer correct is different than random guessing, .
The correct answer to the question is 2 billion. While the world population is projected to increase, the average age is also expected to rise. That is, the majority of the population growth will happen in older age groups, meaning people are projected to live longer in the future across much of the world.
Guided Practice 5.23 §5.3 source ↗
This time we took a larger sample of 228 college-educated adults, 34 (14.9%) selected the correct answer to the question in Guided Practice 5.22: 2 billion. Can we model the sample proportion using a normal distribution and construct a confidence interval?
Let’s move onto a second question posed by the Roslings:
There are 2 billion children in the world today aged 0-15 years old, how many children will there be in year 2100 according to the United Nations?
1. 4 billion.
2. 3 billion.
3. 2 billion.
Set up appropriate hypotheses to evaluate whether college-educated adults are better than random guessing on this question. Also, see if you can guess the correct answer before checking the answer in the footnote!
Answer. The appropriate hypotheses are:
: the proportion who get the answer correct is the same as random guessing: 1-in-3, or .
: the proportion who get the answer correct is different than random guessing, .
The correct answer to the question is 2 billion. While the world population is projected to increase, the average age is also expected to rise. That is, the majority of the population growth will happen in older age groups, meaning people are projected to live longer in the future across much of the world.
Answer
We check both conditions, which are satisfied, so it is reasonable to use a normal distribution for :
Independence. Since the data are from a simple random sample, the observations are independent.
Success-failure. We’ll use in place of to check: and . Both are greater than 10, so the success-failure condition is satisfied.
Guided Practice 5.25 §5.3 source ↗
In a US court, the defendant is either innocent () or guilty (). What does a Type 1 Error represent in this context? What does a Type 2 Error represent? Figure 5.8 may be useful.
| Test conclusion | |||
| do not reject | reject in favor of | ||
| true | okay | Type 1 Error | |
| Truth | true | Type 2 Error | okay |
Answer
If the court makes a Type 1 Error, this means the defendant is innocent ( true) but wrongly convicted. Note that a Type 1 Error is only possible if we’ve rejected the null hypothesis.
A Type 2 Error means the court failed to reject (i.e. failed to convict the person) when she was in fact guilty ( true). Note that a Type 2 Error is only possible if we have failed to reject the null hypothesis.
Guided Practice 5.27 §5.3 source ↗
How could we reduce the Type 2 Error rate in US courts? What influence would this have on the Type 1 Error rate?
Answer
To lower the Type 2 Error rate, we want to convict more guilty people. We could lower the standards for conviction from “beyond a reasonable doubt” to “beyond a little doubt”. Lowering the bar for guilt will also result in more wrongful convictions, raising the Type 1 Error rate.
Guided Practice 5.32 §5.3 source ↗
Do a majority of Americans support or oppose nuclear arms reduction? Set up hypotheses to evaluate this question.
Answer
We would like to understand if a majority supports or opposes, or ultimately, if there is no difference. If is the proportion of Americans who support nuclear arms reduction, then : and : .
Guided Practice 5.36 §5.3 source ↗
A part inside of a machine is very expensive to replace. However, the machine usually functions properly even if this part is broken, so the part is replaced only if we are extremely certain it is broken based on a series of measurements. Identify appropriate hypotheses for this test (in plain language) and suggest an appropriate significance level.
Answer
Here the null hypothesis is that the part is not broken, and the alternative is that it is broken. If we don’t have sufficient evidence to reject , we would not replace the part. It sounds like failing to fix the part if it is broken ( false, true) is not very problematic, and replacing the part is expensive. Thus, we should require very strong evidence against before we replace the part. Choose a small significance level, such as .
5.15 §5.3 source ↗
Identify hypotheses, Part I. Write the null and alternative hypotheses in words and then symbols for each of the following situations.
A tutoring company would like to understand if most students tend to improve their grades (or not) after they use their services. They sample 200 of the students who used their service in the past year and ask them if their grades have improved or declined from the previous year.
Employers at a firm are worried about the effect of March Madness, a basketball championship held each spring in the US, on employee productivity. They estimate that on a regular business day employees spend on average 15 minutes of company time checking personal email, making personal phone calls, etc. They also collect data on how much company time employees spend on such non-business activities during March Madness. They want to determine if these data provide convincing evidence that employee productivity changed during March Madness.
Answer (2 parts)
(Neither a majority nor minority of students’ grades improved) (Either a majority or a minority of students’ grades improved)
(The average amount of company time each employee spends not working is 15 minutes for March Madness.) (The average amount of company time each employee spends not working is different than 15 minutes for March Madness.)
5.17 §5.3 source ↗
Online communication. A study suggests that 60% of college student spend 10 or more hours per week communicating with others online. You believe that this is incorrect and decide to collect your own sample for a hypothesis test. You randomly sample 160 students from your dorm and find that 70% spent 10 or more hours a week communicating with others online. A friend of yours, who offers to help you with the hypothesis test, comes up with the following set of hypotheses. Indicate any errors you see.
Answer
(1) The hypotheses should be about the population proportion (), 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, , not the observed sample proportion. The correct way to set up these hypotheses is: and .
5.19 §5.3 source ↗
Cyberbullying rates. Teens were surveyed about cyberbullying, and 54% to 64% reported experiencing cyberbullying (95% confidence interval). Answer the following questions based on this interval.
A newspaper claims that a majority of teens have experienced cyberbullying. Is this claim supported by the confidence interval? Explain your reasoning.
A researcher conjectured that 70% of teens have experienced cyberbullying. Is this claim supported by the confidence interval? Explain your reasoning.
Without actually calculating the interval, determine if the claim of the researcher from part (b) would be supported based on a 90% confidence interval?
Answer (3 parts)
This claim is reasonable, since the entire interval lies above 50%.
The value of 70% lies outside of the interval, so we have convincing evidence that the researcher’s conjecture is wrong.
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.
5.21 §5.3 source ↗
Minimum wage, Part I. Do a majority of US adults believe raising the minimum wage will help the economy, or is there a majority who do not believe this? A Rasmussen Reports survey of a random sample of 1,000 US adults found that 42% believe it will help the economy. Conduct an appropriate hypothesis test to help answer the research question.
Answer
(i) Set up hypotheses. : , : . We will use a significance level of . (ii) Check conditions: simple random sample gets us independence, and the success-failure conditions is satisfied since for each group is at least 10. (iii) Next, we calculate: . , 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 , 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.)
5.23 §5.3 source ↗
Working backwards, Part I. You are given the following hypotheses:
We know the sample size is 90. For what sample proportion would the p-value be equal to 0.05? Assume that all conditions necessary for inference are satisfied.
Answer
If the p-value is 0.05, this means the test statistic would be either or . We’ll show the calculations for . Standard error: . Finally, set up the test statistic formula and solve for : Alternatively, if was used: .
5.25 §5.3 source ↗
Testing for Fibromyalgia. A patient named Diana was diagnosed with Fibromyalgia, a long-term syndrome of body pain, and was prescribed anti-depressants. Being the skeptic that she is, Diana didn’t initially believe that anti-depressants would help her symptoms. However after a couple months of being on the medication she decides that the anti-depressants are working, because she feels like her symptoms are in fact getting better.
Write the hypotheses in words for Diana’s skeptical position when she started taking the anti-depressants.
What is a Type 1 Error in this context?
What is a Type 2 Error in this context?
Answer (3 parts)
: Anti-depressants do not affect the symptoms of Fibromyalgia. : Anti-depressants do affect the symptoms of Fibromyalgia (either helping or harming).
Concluding that anti-depressants either help or worsen Fibromyalgia symptoms when they actually do neither.
Concluding that anti-depressants do not affect Fibromyalgia symptoms when they actually do.
5.27 §5.R source ↗
Relaxing after work. The General Social Survey asked the question: “After an average work day, about how many hours do you have to relax or pursue activities that you enjoy?" to a random sample of 1,155 Americans. A 95% confidence interval for the mean number of hours spent relaxing or pursuing activities they enjoy was (1.38, 1.92).
Interpret this interval in context of the data.
Suppose another set of researchers reported a confidence interval with a larger margin of error based on the same sample of 1,155 Americans. How does their confidence level compare to the confidence level of the interval stated above?
Suppose next year a new survey asking the same question is conducted, and this time the sample size is 2,500. Assuming that the population characteristics, with respect to how much time people spend relaxing after work, have not changed much within a year. How will the margin of error of the 95% confidence interval constructed based on data from the new survey compare to the margin of error of the interval stated above?
Answer (3 parts)
We are 95% confident that Americans spend an average of 1.38 to 1.92 hours per day relaxing or pursuing activities they enjoy.
Their confidence level must be higher as the width of the confidence interval increases as the confidence level increases.
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.
5.29 §5.R source ↗
Testing for food safety. A food safety inspector is called upon to investigate a restaurant with a few customer reports of poor sanitation practices. The food safety inspector uses a hypothesis testing framework to evaluate whether regulations are not being met. If he decides the restaurant is in gross violation, its license to serve food will be revoked.
Write the hypotheses in words.
What is a Type 1 Error in this context?
What is a Type 2 Error in this context?
Which error is more problematic for the restaurant owner? Why?
Which error is more problematic for the diners? Why?
As a diner, would you prefer that the food safety inspector requires strong evidence or very strong evidence of health concerns before revoking a restaurant’s license? Explain your reasoning.
Answer (6 parts)
: The restaurant meets food safety and sanitation regulations. : The restaurant does not meet food safety and sanitation regulations.
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.
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.
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.
A Type 2 Error may be more problematic for diners since the restaurant deemed safe by the inspector is actually not.
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.
5.31 §5.R source ↗
Unemployment and relationship problems. A USA Today/Gallup poll asked a group of unemployed and underemployed Americans if they have had major problems in their relationships with their spouse or another close family member as a result of not having a job (if unemployed) or not having a full-time job (if underemployed). 27% of the 1,145 unemployed respondents and 25% of the 675 underemployed respondents said they had major problems in relationships as a result of their employment status.
What are the hypotheses for evaluating if the proportions of unemployed and underemployed people who had relationship problems were different?
The p-value for this hypothesis test is approximately 0.35. Explain what this means in context of the hypothesis test and the data.
Answer (2 parts)
: The proportions of unemployed and underemployed people who are having relationship problems are equal. : The proportions of unemployed and underemployed people who are having relationship problems are different.
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.
5.33 §5.R source ↗
Nutrition labels. The nutrition label on a bag of potato chips says that a one ounce (28 gram) serving of potato chips has 130 calories and contains ten grams of fat, with three grams of saturated fat. A random sample of 35 bags yielded a confidence interval for the number of calories per bag of 128.2 to 139.8 calories. Is there evidence that the nutrition label does not provide an accurate measure of calories in the bags of potato chips?
Answer
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.
5.35 §5.R source ↗
Practical vs. statistical significance. Determine whether the following statement is true or false, and explain your reasoning: “With large sample sizes, even small differences between the null value and the observed point estimate can be statistically significant.”
Answer
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).
5.37 §5.R source ↗
Gender pay gap in medicine. A study examined the average pay for men and women entering the workforce as doctors for 21 different positions.
If each gender was equally paid, then we would expect about half of those positions to have men paid more than women and women would be paid more than men in the other half of positions. Write appropriate hypotheses to test this scenario.
Men were, on average, paid more in 19 of those 21 positions. Supposing these 21 positions represent a simple random sample, complete a hypothesis test using your hypotheses from part (a).
Answer (2 parts)
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:
We’ll use to represent the fraction of cases where men are paid more than women.
Below is the completion of the hypothesis test.
• 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: is greater than 10.
• We can compute the sample proportion, , and test statistic:
The test statistic corresponds to an upper tail area of about 0.0001, so the p-value is 2 times this value: 0.0002.
• 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 , we can conclude that men are being paid higher amounts in ways not explainable by chance alone.
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: youtu.be/aVhgKSULNQA.
Loading chapter 6…
Exercises and answers are adapted from OpenIntro Statistics by David Diez, Mine Çetinkaya-Rundel and Christopher D Barr, which is free to read and download, and are used under the CC BY-SA 3.0 licence. They are taken from the book’s LaTeX source and set for the web, so they may differ slightly from the printed page. This adaptation is released under the same licence and is neither affiliated with nor endorsed by Diez, Çetinkaya-Rundel and Barr or OpenIntro.