Escolar Documentos
Profissional Documentos
Cultura Documentos
Section 1
The Language of
Hypothesis Testing
Chapter 10 Section 1
Learning objectives
Determine the null and alternative hypotheses from a
claim
2 Understand Type I and Type II errors
3
State conclusions to hypothesis tests
1
Chapter 10 Section 1
Learning objectives
Determine the null and alternative hypotheses from a
claim
2 Understand Type I and Type II errors
3
State conclusions to hypothesis tests
1
Chapter 10 Section 1
The environment of our problem is that we want
to test whether a particular claim is believable, or
not
The process that we use is called hypothesis
testing
This is one of the most common goals of
statistics
Chapter 10 Section 1
Hypothesis testing involves two steps
Step 1 to state what we think is true
Step 2 to quantify how confident we are in our claim
Chapter 10 Section 1
We are usually told what the claim is, what the
goal of the test is
Now similar to estimation in the previous
chapter, we will again use the material in
Chapter 8 on the sample mean to quantify how
confident we are in our claim
Chapter 10 Section 1
An example of what we want to quantify
A car manufacturer claims that a certain model of car
achieves 29 miles per gallon
We test some number of cars
We calculate the sample mean it is 27
Is 27 miles per gallon consistent with the
manufacturers claim? How confident are we that the
manufacturer has significantly overstated the miles
per gallon achievable?
Chapter 10 Section 1
How confident are we that the gas economy is
definitely less than 29 miles per gallon?
We would like to make either a statement
Were pretty sure that
the mileage is less than 29 mpg
or
Its believable that the
mileage is equal to 29 mpg
Chapter 10 Section 1
A hypothesis test for an unknown parameter is a
test of a specific claim
Compare this to a confidence interval which gives an
interval of numbers, not a believe it or dont believe
it answer
Chapter 10 Section 1
How do we state our claim?
Our claim
Is the statement to be tested
Is called the null hypothesis
Is written as H0 (and is read as H-naught)
Chapter 10 Section 1
How do we state our counter-claim?
Our counter-claim
Is the opposite of the statement to be tested
Is called the alternative hypothesis
Is written as H1 (and is read as H-one)
Chapter 10 Section 1
There are different types of null hypothesis /
alternative hypothesis pairs, depending on the
claim and the counter-claim
One type of H0 / H1 pair, called a two-tailed test,
tests whether the parameter is either equal to,
versus not equal to, some value
H0: parameter = some value
H1: parameter some value
Chapter 10 Section 1
An example
example of
of aa two-tailed
two-tailed test
test
A bolt manufacturer
manufacturer claims
claimsthat
thatthe
thediameter
diameterofof
the bolts average
average 10
10 mm
mm
H00: Diameter
Diameter == 10
10
H11: Diameter
Diameter 10
10
An alternative
alternative hypothesis
hypothesis of
of
10
10isisappropriate
appropriate
since
A
A sample
sample diameter
diameter that
that is
is too
too high
high isisaaproblem
problem
A
A sample
sample diameter
diameter that
that is
is too
too low
lowisisalso
alsoaaproblem
problem
Chapter 10 Section 1
Another type of pair, called a left-tailed test, tests
whether the parameter is either equal to, versus
less than, some value
H0: parameter = some value
H1: parameter < some value
Chapter 10 Section 1
An example
example of
of aa left-tailed
left-tailed test
test
A car manufacturer
manufacturer claims
claims that
thatthe
thempg
mpgofofaa
certain model
model car
car is
is at
at least
least29.0
29.0
H00: MPG
MPG == 29.0
29.0
H11: MPG
MPG << 29.0
29.0
An alternative
alternative hypothesis
hypothesis of
of<
<29
29isisappropriate
appropriate
since
A
A mpg
mpg that
that is
is too
too low
low is
is aa problem
problem
A
A mpg
mpg that
that is
is too
too high
high is
is not
not aa problem
problem
Chapter 10 Section 1
Another third type of pair, called a right-tailed
test, tests whether the parameter is either equal
to, versus greater than, some value
H0: parameter = some value
H1: parameter > some value
Chapter 10 Section 1
An example
example of
of aa right-tailed
right-tailedtest
test
A bolt manufacturer
manufacturer claims
claimsthat
thatthe
thedefective
defectiverate
of
their
product
is at most
1 part1inpart
1,000
rate
of their
product
is at most
in 1,000
H00: Defect
Defect Rate
Rate == 0.001
0.001
H11: Defect
Defect Rate
Rate >> 0.001
0.001
An alternative
alternative hypothesis
hypothesis of
of>
>0.001
0.001isis
appropriate
appropriate since
since
A
A defect
defect rate
rate that
that is
is too
too low
low isis not
not aa problem
problem
A
A defect
defect rate
rate that
that is
is too
too high
high is
is aa problem
problem
Chapter 10 Section 1
A comparison of the three types of tests
The null hypothesis
We believe that this is true
Sample value
that is too low
Sample value
that is too high
Two-tailed test
A problem
A problem
Left-tailed test
A problem
Not a problem
Not a problem
A problem
Right-tailed test
Chapter 10 Section 1
A manufacturer claims that there are at least two
scoops of cranberries in each box of cereal
What would be a problem?
The parameter to be tested is the number of scoops
of cranberries in each box of cereal
If the sample mean is too low, that is a problem
If the sample mean is too high, that is not a problem
Chapter 10 Section 1
A manufacturer claims that there are exactly 500
mg of a medication in each tablet
What would be a problem?
The parameter to be tested is the amount of a
medication in each tablet
If the sample mean is too low, that is a problem
If the sample mean is too high, that is a problem too
Chapter 10 Section 1
A manufacturer claims that there are at most 8
grams of fat per serving
What would be a problem?
The parameter to be tested is the number of grams of
fat in each serving
If the sample mean is too low, that is not a problem
If the sample mean is too high, that is a problem
Chapter 10 Section 1
There are two possible results for a hypothesis
test
If we believe that the null hypothesis could be
true, this is called not rejecting the null
hypothesis
Note that this is only we believe could be
Chapter 10 Section 1
Learning objectives
Determine the null and alternative hypotheses from a
claim
2 Understand Type I and Type II errors
3
State conclusions to hypothesis tests
1
Chapter 10 Section 1
In comparing our conclusion (not reject or reject
the null hypothesis) with reality, we could either
be right or we could be wrong
When we reject (and state that the null hypothesis is
false) but the null hypothesis is actually true
When we not reject (and state that the null hypothesis
could be true) but the null hypothesis is actually false
Chapter 10 Section 1
A summary of the errors is
Chapter 10 Section 1
When we reject (and state that the null
hypothesis is false) but the null hypothesis is
actually true this is called a Type I error
When we do not reject (and state that the null
hypothesis could be true) but the null hypothesis
is actually false this called a Type II error
In general, Type I errors are considered the
more serious of the two
Chapter 10 Section 1
A very good analogy for Type I and Type II errors
is in comparing it to a criminal trial
In the US judicial system, the defendant is
innocent until proven guilty
Thus the defendant is presumed to be innocent
The null hypothesis is that the defendant is innocent
H0: the defendant is innocent
Chapter 10 Section 1
If the defendant is not innocent, then
The defendant is guilty
The alternative hypothesis is that the defendant is
guilty
H1: the defendant is guilty
Chapter 10 Section 1
Our possible conclusions
Reject the null hypothesis
Go with the alternative hypothesis
H1: the defendant is guilty
We vote guilty
Chapter 10 Section 1
A Type I error
Reject the null hypothesis
The null hypothesis was actually true
We voted guilty for an innocent defendant
A Type II error
Do not reject the null hypothesis
The alternative hypothesis was actually true
We voted not guilty for a guilty defendant
Chapter 10 Section 1
Which error do we try to control?
Type I error (sending an innocent person to jail)
The evidence was beyond reasonable doubt
We must be pretty sure
Very bad! We want to minimize this type of error
Chapter 10 Section 1
Learning objectives
Determine the null and alternative hypotheses from a
claim
2 Understand Type I and Type II errors
3
State conclusions to hypothesis tests
1
Chapter 10 Section 1
Innocent versus Not Guilty
This is an important concept
Innocent is not the same as not guilty
Innocent the person did not commit the crime
Not guilty there is not enough evidence to convict
that the reality is unclear