Lecture Note 24
Lecture Note 24
Lecture Note 24
3
In this chapter, you will conduct hypothesis tests on single means and single
proportions. You will also learn about the errors associated with these tests.
Hypothesis testing consists of two contradictory hypotheses or statements, a
decision based on the data, and a conclusion. To perform a hypothesis test, a
statistician will:
• Set up two contradictory hypotheses.
• Collect sample data
• Determine the correct distribution to perform the hypothesis test.
• Analyze sample data by performing the calculations that ultimately will allow
you to reject or decline to reject the null hypothesis.
• Make a decision and write a meaningful conclusion.
4
9.1
Null and Alternative Hypothesis
The actual test begins by considering two hypotheses. They are called the null
hypothesis and the alternative hypothesis. These hypotheses contain opposing
viewpoints.
gory
contradictory to H0 and what we conclude when we reject H0. This is usually what
the researcher is trying to prove.
Since the null and alternative hypotheses are contradictory, you must examine
evidence to decide if you have enough evidence to reject the null hypothesis or
not. The evidence is in the form of sample data.
After you have determined which hypothesis the sample supports, you make
a decision. There are two options for a decision. They are "reject H0" if the sample
information favors the alternative hypothesis or "do not reject H0" or "decline to
reject H0" if the sample information is insufficient to reject the null hypothesis.
6
Mathematical Symbols Used in !! and !"
H0 Ha
IHg
equal (=) not equal (≠) or greater than (>) or less than (<)
H0 always has a symbol with an equal in it. Ha never has a symbol with an equal in
it. The choice of symbol depends on the wording of the hypothesis test.
7
Example
1. We want to test whether the mean height of eighth graders is 66 inches. State the
D
null and alternative hypotheses. Fill in the correct symbol (=, ≠, ≥, <, ≤, >) for the null
and alternative hypotheses.
Ho µ 66
Hg M 66
2. An insurance executive asserts that the mean amount paid by his firm for personal
D
injury claims resulting from automobile accidents is $18500. An actuary wants to
check the accuracy of this assertion. State the null and alternative hypotheses.
Ho M 18500
18500
Hg M
3. The CEO of a large electric utility claims that 80 percent of his 1,000,000
00
customers are very satisfied with the service they receive. To test this claim, the local
newspaper surveyed 100 customers, using simple random sampling.Amtmann Among the
sampled customers, 73 percent
Ijamessay they are very satisfied.
Ho 10 0.8
08
Hg p1 8
Homework
We want to test if it takes fewer than 45 minutes to teach a lesson plan. State the
null and alternative hypotheses. Fill in the correct symbol ( =, ≠, ≥, <, ≤, >) for the null
and alternative hypotheses.
9
9.2 Outcomes And The
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 H0 and the decision to reject
or not. The outcomes are summarized in the following table
11
Each of the errors occurs with a particular probability. The Greek letters # and $ represent
the probabilities.
# and $ should be as small as possible because they are probabilities of errors. They are
rarely zero.
The Power of the Test is 1– $. 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.
12
Example
Suppose the null hypothesis, H0, is: Frank's rock climbing equipment is safe.
Describe type I error, type II error, # and $. Which error has the greater
consequence?
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.
( = probability that Frank thinks his rock climbing equipment may not be safe
when, in fact, it really is safe.
) = 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.)
13
Example
Suppose the null hypothesis, H0, is: The victim of an automobile accident is alive
when he arrives at the emergency room of a hospital.
Describe type I error, type II error, # and $. Which error has the greater
consequence?
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.
( = probability that the emergency crew thinks the victim is dead when, in fact, he
is really alive= P(Type I error).
) = 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.)
14
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? Ho p 7,0 75
Hq PL 0.75
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.
15