Introduction to significance testing
Significance testing
For example, suppose you sample some students from high school A and find that their average academic score is much higher than the overall average for high school students. That difference could happen for two reasons:
- Students at high school A really do perform better on average than students at other schools.
- By chance, the particular students sampled from high school A happened to be unusually high-scoring.
Significance testing gives a structured way to judge whether the sample result is unusual enough (assuming the population claim is true) that we should doubt the claim.
Significance level
Common choices are:
- (a common default)
- (used when you want stronger evidence before rejecting )
- (used when you’re willing to accept more risk of a false alarm)
To see what means, consider a company testing a new drug.
- : the drug has no effect
- (alternative hypothesis): the drug has an effect
If you use a significance level of , you are accepting a chance of rejecting even when is actually true. In context, that would mean concluding the drug has an effect when it really doesn’t. This is called a type I error.
Type I and type II errors
There’s an important trade-off: choosing a smaller reduces the chance of a type I error, but it increases the chance of missing a real effect. Missing a real effect is a type II error.
In the drug example, a type II error would mean the drug really does have an effect, but the test fails to reject (which says the drug has no effect).
Power of a test
Two common ways to increase power are:
- Increase the sample size.
- Increase the significance level.
Keep in mind that increasing the significance level increases power, but it also increases the probability of a type I error. So you’re balancing two kinds of mistakes.
Practice problem
Example:
McDonald’s claims that during the USA McDonald’s monopoly game, in game pieces are food prizes. Denia and her family go to McDonald’s and collect game pieces and of them are food prizes. Based on the in claim, the expected number of food prizes for Denia and her family would have been .
Using a significance level of , conduct a significance test to determine whether the observed number of out of food prizes provides significant evidence against the restaurant’s claim of in .
State the hypotheses:
From the problem:
Check conditions:
- Random: The random sample condition is met because Denia and her family collected game pieces that were randomly chosen rather than chosen specifically for her family.
- Independence: The independence condition is also met because game pieces is most certainly less than of all game pieces produced by such a large corporation.
- Normality: Both large-counts values are at least :
Find the standard error:
Find the z-score:
Find the p-value using the standard normal distribution:
This means that there is a chance of getting or fewer food prizes out of by random chance if the McDonald’s claim about in of their tickets being food prizes is correct.
Compare the p-value to :
Solution:
Since
we reject the null hypothesis . There is sufficient evidence to conclude that the true proportion of McDonald’s monopoly game pieces that are food prizes is less than .