Hypothesis testing
A manufacturer claims that its bags of crisps weigh $150$ g; a guidance counsellor suspects that her students study less than the national average. In both cases there is a starting claim and a sample that may, or may not, contradict it. Hypothesis testing is the formal procedure for deciding, using a sample, whether that claim stands or is rejected.
Null and alternative hypotheses
In quality control at a crisp factory, we wish to check whether the mean weight of the packets is really $150$ grams, as stated on the packaging. The population standard…
In quality control at a crisp factory, we wish to check whether the mean weight of the packets is really $150$ grams, as stated on the packaging. The population standard deviation is known to be $\sigma = 5$ grams. If it is suspected that the packets may weigh either more or less than stated:
- a) State the hypotheses $H_0$ and $H_1$.
- b) If we set a significance level of $\alpha = 0,05$, calculate the critical values $z_{\alpha/2}$ that bound the acceptance region.
Type I and type II errors
A new model of running shoes designed to increase performance is being tested. The manufacturer sets the null hypothesis $H_0$: "The mean performance with the new model…
A new model of running shoes designed to increase performance is being tested. The manufacturer sets the null hypothesis $H_0$: "The mean performance with the new model is equal to that of the previous model" against the alternative hypothesis $H_1$: "The mean performance is higher".
Give reasons explaining what making a Type I error and a Type II error would mean in this practical context. Which of the two errors do you think would be more damaging to the company's brand image if discovered later?
Test statistic and p-value for a mean
We are conducting a two-tailed hypothesis test for the mean of a normal population with known $\sigma$. After calculating the test statistic with the data from a sample,…
We are conducting a two-tailed hypothesis test for the mean of a normal population with known $\sigma$. After calculating the test statistic with the data from a sample, we obtain a value of $z_{exp} = 2,15$.
If the critical values for a significance level of $\alpha = 0,05$ are $-1,96$ and $1,96$, reason whether we should accept or reject the null hypothesis.
A study on youth mental health indicates that the daily mean time that 2nd Baccalaureate students spend on TikTok is $120$ minutes, with a standard deviation of $30$…
A study on youth mental health indicates that the daily mean time that 2nd Baccalaureate students spend on TikTok is $120$ minutes, with a standard deviation of $30$ minutes. A counsellor at a school believes that at their centre, due to the pressure of the EBAU exams, the mean time is significantly lower. They take a random sample of $50$ students and obtain a mean of $112$ minutes.
- a) Define the appropriate hypothesis test for the counsellor's belief.
- b) Calculate the p-value of the obtained sample.
- c) If a significance level of $1\%$ is used, what conclusion should the counsellor draw? What if the significance level were $5\%$?
We want to investigate whether a new study method improves performance in Mathematics. The historical mean grade in a region is $6,4$ with a standard deviation…
We want to investigate whether a new study method improves performance in Mathematics. The historical mean grade in a region is $6,4$ with a standard deviation $\sigma = 1,2$. The new method is applied to an experimental group of $36$ students and a mean grade of $6,9$ is obtained.
- a) Carry out a one-tailed hypothesis test for a significance level $\alpha = 0,05$ (state $H_0$ and $H_1$, calculate the critical value and the rejection region, and conclude).
- b) If the $95\%$ confidence interval for the mean of this group were $(6,508 ; 7,292)$, could you have answered the previous part without calculating the test statistic? Explain the relationship between confidence intervals and hypothesis testing.
Test for a proportion
In a debate on sustainability, it is claimed that $75\%$ of young people in a city separate plastic packaging from the rest of the rubbish. To verify this, a sample of…
In a debate on sustainability, it is claimed that $75\%$ of young people in a city separate plastic packaging from the rest of the rubbish. To verify this, a sample of $150$ young people is selected, and it is observed that $105$ of them recycle correctly.
- a) Set up the hypothesis test to check whether the true proportion is lower than claimed.
- b) Is the initial claim acceptable for a significance level of $10\%$?
- c) Suppose that the true proportion were $65\%$. What decision would most likely be made with this test if the sample size were only $20$ people? Reason about the importance of sample size on the power of the test.
In a sustainability study, it is known that two years ago $30\ \%$ of young people in a town used public transport to get to school. Following an environmental awareness…
In a sustainability study, it is known that two years ago $30\ \%$ of young people in a town used public transport to get to school. Following an environmental awareness campaign, we want to test whether this percentage has increased. A random sample of $150$ young people is taken, and it is observed that $54$ of them now use public transport.
From these data, and with a significance level of $5\ \%$, can it be concluded that the campaign was effective and the proportion of users has increased? Set up the corresponding hypothesis test.
A health centre claims that the proportion of smokers among young people aged between 16 and 18 is $15\ \%$. To verify this, a study is conducted on a sample of $400$…
A health centre claims that the proportion of smokers among young people aged between 16 and 18 is $15\ \%$. To verify this, a study is conducted on a sample of $400$ young people in that age range, revealing that $72$ of them smoke.
Calculate the p-value (the probability of obtaining a result as extreme as, or more extreme than, the observed result under the null hypothesis) for a two-tailed test. In light of the result, would you reject the health centre's claim at a standard significance level of $\alpha = 0,05$?
The relationship between confidence interval and hypothesis test
A study was conducted on the monthly leisure expenditure of university students in a city, assuming it follows a normal distribution with $\sigma = 20$ euros. A $95\ \%$…
A study was conducted on the monthly leisure expenditure of university students in a city, assuming it follows a normal distribution with $\sigma = 20$ euros. A $95\ \%$ confidence interval for the mean was obtained as $(75,1; 84,9)$.
Without carrying out new standardisation calculations, use the relationship between confidence intervals and hypothesis tests to answer: Would the null hypothesis $H_0: \mu = 70$ euros be rejected against $H_1: \mu \neq 70$ euros at a significance level of $\alpha = 0,05$? What if the null hypothesis were $H_0: \mu = 80$ euros? Justify your answer.
Explain in your own words what it means to make a Type I Error in the context of a study attempting to test whether a new study method improves mathematics marks (where…
Explain in your own words what it means to make a Type I Error in the context of a study attempting to test whether a new study method improves mathematics marks (where $H_0$ is that the method yields no improvement).
Back to the start: If you analyse a sample of $36$ bags of crisps and obtain $\bar{x} = 148$ g with $\sigma = 6$ g, the statistic is $z_{exp} = \frac{148 - 150}{6 / \sqrt{36}} = -2$; since it falls in the rejection region for $\alpha = 0{,}05$ ($|-2| > 1{,}96$), you conclude on statistical grounds that the manufacturer does not meet the promised $150$ g.