Chapter 8: Hypothesis Testing with One Sample
8.2 Outcomes and the Type I and Type II Errors
Learning Objectives
By the end of this section, the student should be able to:
- Differentiate between Type I and Type II errors in a hypothesis test.
Type I and Type II Errors
When you perform a hypothesis test, there are four possible outcomes depending on the actual truth (or falseness) of the null hypothesis [latex]H_{0}[/latex] and the decision to reject or not. The outcomes are summarized in the following table:
| ACTION | [latex]H_{0}[/latex] IS ACTUALLY | … |
|---|---|---|
| True | False | |
| Do not reject[latex]H_{0}[/latex] | Correct Outcome | Type II error |
| Reject [latex]H_{0}[/latex] | Type I Error | Correct Outcome |
The four possible outcomes in the table are:
Each of the errors occurs with a particular probability. The Greek letters [latex]\alpha[/latex] and [latex]\beta[/latex] represent the probabilities.
[latex]\alpha[/latex] = probability of a Type I error = P(Type I error) = probability of rejecting the null hypothesis when the null hypothesis is true.
[latex]\beta[/latex] = probability of a Type II error = P(Type II error) = probability of not rejecting the null hypothesis when the null hypothesis is false.
[latex]\alpha[/latex] and [latex]\beta[/latex] should be as small as possible because they are probabilities of errors. They are rarely zero.
The Power of the Test is [latex]1 - \beta[/latex]. Ideally, we want a high power that is as close to one as possible. Increasing the sample size can increase the Power of the Test.
The following are examples of Type I and Type II errors.
Suppose the null hypothesis, [latex]H_{0}[/latex], is: Frank’s rock climbing equipment is safe.
Type I error: Frank thinks that his rock climbing equipment may not be safe when, in fact, it really is safe. Type II error: Frank thinks that his rock climbing equipment may be safe when, in fact, it is not safe.
[latex]\alpha[/latex] = probability that Frank thinks his rock climbing equipment may not be safe when, in fact, it really is safe. [latex]\beta[/latex] = probability that Frank thinks his rock climbing equipment may be safe when, in fact, it is not safe.
Notice that, in this case, the error with the greater consequence is the Type II error. (If Frank thinks his rock climbing equipment is safe, he will go ahead and use it.)
Example
Suppose the null hypothesis, [latex]H_{0}[/latex], is: the blood cultures contain no traces of pathogen [latex]X[/latex]. State the Type I and Type II errors.
Solution
Type I error: The researcher thinks the blood cultures do contain traces of pathogen [latex]X[/latex], when in fact, they do not.
Type II error: The researcher thinks the blood cultures do not contain traces of pathogen [latex]X[/latex], when in fact, they do.
Your Turn!
Suppose the null hypothesis, [latex]H_{0}[/latex], is: The victim of an automobile accident is alive when he arrives at the emergency room of a hospital.
Type I error: The emergency crew thinks that the victim is dead when, in fact, the victim is alive. Type II error: The emergency crew does not know if the victim is alive when, in fact, the victim is dead.
[latex]\alpha[/latex] = probability that the emergency crew thinks the victim is dead when, in fact, he is really alive = P(Type I error).
[latex]\beta[/latex] = probability that the emergency crew does not know if the victim is alive when, in fact, the victim is dead = P(Type II error).
The error with the greater consequence is the Type I error. (If the emergency crew thinks the victim is dead, they will not treat him.)
Example
Suppose the null hypothesis, [latex]H_{0}[/latex], is: a patient is not sick. Which type of error has the greater consequence, Type I or Type II?
Solution
The error with the greater consequence is the Type II error: the patient will be thought well when, in fact, he is sick, so he will not get treatment.
Exercises
Example
It’s a Boy Genetic Labs claim to be able to increase the likelihood that a pregnancy will result in a boy being born. Statisticians want to test the claim. Suppose that the null hypothesis, [latex]H_{0}[/latex], is: It’s a Boy Genetic Labs has no effect on gender outcome.
Type I error: This results when a true null hypothesis is rejected. In the context of this scenario, we would state that we believe that It’s a Boy Genetic Labs influences the gender outcome, when in fact it has no effect. The probability of this error occurring is denoted by the Greek letter alpha, [latex]\alpha[/latex].
Type II error: This results when we fail to reject a false null hypothesis. In context, we would state that It’s a Boy Genetic Labs does not influence the gender outcome of a pregnancy when, in fact, it does. The probability of this error occurring is denoted by the Greek letter beta, [latex]\beta[/latex].
The error of greater consequence would be the Type I error since couples would use the It’s a Boy Genetic Labs product in hopes of increasing the chances of having a boy.
Your Turn!
“Red tide” is a bloom of poison-producing algae—a few different species of a class of plankton called dinoflagellates. When the weather and water conditions cause these blooms, shellfish such as clams living in the area develop dangerous levels of a paralysis-inducing toxin. In Massachusetts, the Division of Marine Fisheries (DMF) monitors levels of the toxin in shellfish by regular sampling of shellfish along the coastline. If the mean level of toxin in clams exceeds 800 [latex]\mu g[/latex] (micrograms) of toxin per kg of clam meat in any area, clam harvesting is banned there until the bloom is over and levels of toxin in clams subside. Describe both a Type I and a Type II error in this context, and state which error has the greater consequence.
Solution
In this scenario, an appropriate null hypothesis would be [latex]H_{0}[/latex]: the mean level of toxins is at most [latex]800 \mu g[/latex], [latex]H_{0}: \mu_{0} ≤ 800 \mu g[/latex].
Type I error: The DMF believes that toxin levels are still too high when, in fact, toxin levels are at most [latex]800 \mu g[/latex]. The DMF continues the harvesting ban.
Type II error: The DMF believes that toxin levels are within acceptable levels (are at least [latex]800 \mu g[/latex]) when, in fact, toxin levels are still too high (more than [latex]800 \mu g[/latex]). The DMF lifts the harvesting ban. This error could be the most serious. If the ban is lifted and clams are still toxic, consumers could possibly eat tainted food.
In summary, the more dangerous error would be to commit a Type II error, because this error involves the availability of tainted clams for consumption.
Example
A certain experimental drug claims a cure rate of at least 75% for males with prostate cancer. Describe both the Type I and Type II errors in context. Which error is the more serious?
Type I: A cancer patient believes the cure rate for the drug is less than 75% when it actually is at least 75%.
Type II: A cancer patient believes the experimental drug has at least a 75% cure rate when it has a cure rate that is less than 75%.
In this scenario, the Type II error contains the more severe consequence. If a patient believes the drug works at least 75% of the time, this most likely will influence the patient’s (and doctor’s) choice about whether to use the drug as a treatment option.
Your Turn!
Determine both Type I and Type II errors for the following scenario:
Assume a null hypothesis, [latex]H_{0}[/latex], that states the percentage of adults with jobs is at least 88%.
Identify the Type I and Type II errors from these four statements.
Solution
Type I error: c
Type II error: a
The decision is not to reject the null hypothesis when, in fact, the null hypothesis is false.
The decision is to reject the null hypothesis when, in fact, the null hypothesis is true.