This lesson will explain the significance level and the probability of making a Type I error.
Source: Graphs created by Jonathan Osters
In this tutorial, you're going to learn about the significance level of a hypothesis test. Now, we should first understand what we mean by statistical significance. When we calculate a test statistic in a hypothesis test, we can calculate the p-value. The p-value is the probability that we would have obtained a statistic as large as the one we got or as small as the one we got or as extreme, far away from our hypothesized value, as the one we got, given that the null hypothesis is true. So it's a conditional probability.
Now, sometimes we're willing to attribute whatever difference we found between our statistic and our parameter to chance. If this is the case, we fail to reject the null hypothesis, if we're willing to write off of the differences between our statistic and our hypothesized parameter. If we're not, if it's just too far away from the mean to attribute to chance, we're going to reject the null hypothesis in favor of the alternative.
So this is what it might look like for a two-tailed test. The hypothesized mean is right here in the center of this normal distribution. And anything that we consider to be too far away, something like two standard deviations or more away, we might consider that to be too far away. And in that case, anything in here we might attribute to chance and fail to reject the null hypothesis, whereas anything that we consider just too far away will reject the null hypothesis, if it's just too high or too low for us to continue believing that this is the real mean. And again, this is assuming that the null hypothesis is true.
But now think about this. All of this curve assumes that the null hypothesis is true. But we make a decision to reject the null hypothesis anyway if the statistic we got is far away. It means that this would rarely happen by chance. But it's still the wrong thing to do technically, if the null hypothesis is true, which says that the mean is right here.
And so this idea that we're comfortable making some error sometimes is called a significance level. So the probability of rejecting the null hypothesis in error, so rejecting when the null hypothesis is in fact true, is called a Type I Error. But the nice thing is we get to choose how big we want this error to be.
If you remember on the blue sections of that normal curve, we could have said, all right. Well, we deem too far away to be three standard deviations from the mean on either side. We get to choose how large we want this error to be. That value that we say we only want to be wrong 1% of the time, or we're OK being wrong 5% of the time rejecting the null hypothesis in error that often, is called a significance level. And we denote it with the Greek letter alpha.
When we choose how big we want alpha to be, we do it before we start the tests. And we do it this way to reduce bias, because if we already ran the tests, we could choose an alpha level that would automatically make our result seem more significant than it is. And we don't want to bias our results that way.
So let's take a look back at this visual here. The alpha in this case is 0.05. If you recall, the 68-95-99.7 rule says that 95% of the values will fall within two standard deviations of the mean, meaning that 5% of the values will fall outside of those two standard deviations. And so our decision to reject the null hypothesis will be 5% of the time, the most extreme 5% of cases, we will not be willing to attribute to chance variation from the hypothesized mean.
Now, the level of significance will depend on the type of experiment that we're doing. So suppose that we are trying to bring a drug to market. And we want to be really, really cautious about how often we reject the null hypothesis. We will reject the null hypothesis if we're pretty darn certain that the drug will work.
We don't want to reject the null hypothesis of the drug not working in error and thereby giving the public a drug that doesn't work. So if we want to be really cautious and not reject the null hypothesis in error very much, we'll choose a low significance level, like 0.01. This means that only the most extreme 1% of cases will have the null hypothesis rejected.
Now, if we don't believe a Type I Error is going to be that bad, we might allow the significance level to be something higher, like 0.05 or 0.10. Now, those still seem like low numbers. But think about what that means. This means that one out of every 20, or one out of every 10 samples of that particular size will have the null hypothesis rejected even when it's true.
So are we willing to make that mistake one out of every 20 times or once every 10 times? Or are we only willing to make that mistake one out of every 100 times? And so setting this value to something really low reduces the probability that you make that error.
Now, the only thing to note here is that you don't want it to be too low. We have to be careful how low we set it, because the problem with setting it really, really low is that as we lower the value of a Type 1 Error, we actually increase the probability of a Type II Error. A Type II Error is failing to reject the null hypothesis when a difference does exist. What this does is it reduces the power or the sensitivity of our significance test, meaning that we will not be able to detect very real differences from the null hypothesis when they in fact exist if our alpha level is set too low.
So to recap, the probability of a Type 1 Error is a value that we get to choose in a hypothesis test. We call it the significance level. It's denoted with the Greek letter alpha.
And choosing a big one allows us to reject the null hypothesis more often, though the problem is sometimes we reject the null hypothesis in error. When the difference really doesn't exist, we say that a difference does exist. However, if we choose a really small one, we reject the null hypothesis less often. And sometimes we fail to reject the null hypothesis in error as well. So there's no foolproof method here. But we usually like to keep our significance levels low, something like 0.05 or 0.01. 0.05 is the default choice for most significance tests for most hypothesis testing.
So we talked about the significance level, also called alpha, also called the probability of a Type I Error. Good luck. And we'll see you next time.
The probability of making a type I error. Abbreviated with the symbol, alpha .