Statistical Hypothesis Testing Yp G: Null Hypothesis Null Hypothesis
Statistical Hypothesis Testing Yp G: Null Hypothesis Null Hypothesis
yp Testing
g
• A null hypothesis,
hypothesis denoted by H0, is an assertion about one or more population
parameters. This is the assertion we hold to be true until we have sufficient
statistical evidence to conclude otherwise.
H0: = 100
• The alternative
Th l i hypothesis,
h h i denoted
d d bby H1, is
i the
h assertion
i off all
ll situations
i i not
covered by the null hypothesis.
H1: 100
• H0 and H1 are:
Mutually exclusive
– Only one can be true.
Exhaustive
– Together they cover all possibilities, so one or the other must be
true.
Hypothesis
yp about other Parameters
H0: p 40%
H1: p < 40%
H0:
H1:
The Null Hypothesis,
yp H0
Consider H0: = 100. We may have a decision rule that says: “Reject
H0 if the sample mean is less than 95 or more than 105.
105 ”
Decision Making
g
• A decision
d i i may be b incorrect
i in
i two ways:
Type I Error: Reject a true H0
The Probability of a Type I error is denoted by .
is called the level of significance of the test
Type II Error: Do not a false H0
The Probability of a Type II error is denoted by .
1 - is called the power of the test.
• and are conditional probabilities:
= P(Reject H 0 H 0 is true)
= P(Accept H H is false)
0 0
Type I and Type II Errors
Recall:
The p-value is the probability of obtaining a value of the test
statistic as extreme as, or more extreme than, the actual value
obtained, when the null hypothesis is true.
The tails
Th t il off a statistical
t ti ti l test
t t are determined
d t i d byb the
th needd for
f an action.
ti If action
ti
is to be taken if a parameter is greater than some value a, then the alternative
hypothesis is that the parameter is greater than a, and the test is a right-tailed
test
test. H0: 50
H1: 50
0.5
0.2
.025 .025
01
0.1
We will find 95% of the 0.0
Thee binomial
b o a distribution
d st but o can
ca be used whenever
w e eve we are
a e able
ab e to
calculate the necessary binomial probabilities. This means that
for calculations using tables, the sample size n and the population
proportion p should have been tabulated.
tabulated
2
2
For = 0.05,
F 0 05 critical
i i l values
l off z are 0.6
0.5
±1.96 x
0.4
z
0.3
0 0.2
.025 .025
z
n -1.96 1.96
[-1 96 z 1.96]
Do not reject H0 if: [-1.96 1 96] Lower Rejection
Region
Nonrejection
Region
Upper Rejection
Region
x 0 14.6-12
0.3
14 6 12
z
.025 .025
0.2
=
s 7.8 0.1
0.0
2.6
4
Lower Rejection Nonrejection Upper Rejection
= Region
Region Region
0.65
n -0.081
= 2 .5614 Reject H
0.0316 0
Additional Examples
The EPA sets limits on the concentrations of ppollutants emitted byy
various industries. Suppose that the upper allowable limit on the
emission of vinyl chloride is set at an average of 55 ppm within a
range of two miles around the plant emitting this chemical.
chemical To check
compliance with this rule, the EPA collects a random sample of 100
readings at different times and dates within the two-mile range around
the plant.
plant The findings are that the sample average concentration is
60 ppm and the sample standard deviation is 20 ppm. Is there
evidence to conclude that the plant in question is violating the law?
n = 100
H0: 55 x = 60
s = 20
H1: 55
n = 100 x 0 60 - 55
x 0 z
The test statistic is: z s
=
20
s
n n 100
5
= 2.5 Reject H
2 0
Additional Examples
The average
g lifetime of Vietnamese people
p p is said byy WHO to be
an average of 65 years. A researcher believes that the average life
of the Vietnamese is less than that claimed by WHO above and sets
out to prove that the claim is false.
false A random sample of 21
Vietnamese individuals is chosen and shows that the sample
average lifetime is 62.5 years and the sample standard deviation is
i =0.01, determine
3. Using d i whether
h h there
h isi evidence
id to conclude
l d
that the WHO’s claim is false.
H0: 65
H1: 65
n = 21
Additional Examples:
p Continued
0 .2
When the p-value is greater than 0.10, the result is considered not
significant.
The p
p-Value and Hypothesis
yp Testing
g
The further away in the tail of the distribution the test statistic falls, the smaller
is the p-value and, hence, the more convinced we are that the null hypothesis is
false and should be rejected.
In a right-tailed
i h il d test, the h p-value
l isi the
h area to the
h right
i h off the
h test statistic
i i if the
h
test statistic is positive.
In a left-tailed
left tailed test,
test the p-value
p value is the area to the left of the test statistic if the
test statistic is negative.
In a two-tailed
two tailed test,
test the pp-value
value is twice the area to the right of a positive test
statistic or to the left of a negative test statistic.
For a g
given level of significance,:
g ,
Reject the null hypothesis if and only if p-value