Professional Documents
Culture Documents
Hypothesis 2
Hypothesis 2
In this session .
What is hypothesis testing?
Interpreting and selecting significance level
PROBABILITY
DISTRIBUTIONS
One
tailed and two tailed tests
Type I and Type II errors
- the B-school
HYPOTHESI
S TESTING
Null hypothesis,
H0
State the hypothesized
value of the parameter
before sampling.
The assumption we wish to
test (or the assumption we
are trying to reject)
E.g population mean = 20
There is no difference
between coke and diet coke
Alternative
hypothesis,HA
All possible alternatives
other than the null
hypothesis.
E.g 20
> 20
< 20
There is a difference
between coke and diet coke
Null Hypothesis
The null hypothesis H0 represents a theory that
has been put forward either because it is believed
to be true or because it is used as a basis for an
argument and has not been proven. For example,
in a clinical trial of a new drug, the null hypothesis
might be that the new drug is no better, on
average, than the current drug. We would write
H0: there is no difference between the two drugs
on an average.
- the B-school
Alternative Hypothesis
The alternative hypothesis, HA, is a statement of what
a statistical hypothesis test is set up to establish. For
example, in the clinical trial of a new drug, the
alternative hypothesis might be that the new drug has
a different effect, on average, compared to that of the
current drug. We would write
HA: the two drugs have different effects, on average.
or
HA: the new drug is better than the current drug, on
average.
- the B-school
- the B-school
- the B-school
- the B-school
the
B-school
(a)It is better to make a Type II error (where H
is
false i.e average life is actually more than 300
days but we accept H0 and assume that the
average life is equal to 300 days)
0
- the B-school
HA: 0
e.g The manufacturer of light bulbs wants to produce
light bulbs with a mean life of 1000 hours. If the
lifetime is shorter he will lose customers to the
competition and if it is longer then he will incur a high
cost of production. He does not want to deviate
significantly from 1000 hours in either direction. Thus
he selects the hypotheses as
H0 : = 1000 hours and HA: 1000 hours
and uses a two tail test.
- the B-school
HA: < 0
e.g A wholesaler buys light bulbs from the
manufacturer in large lots and decides not to accept a
lot unless the mean life is at least 1000 hours.
H0 : = 1000 hours and HA: <1000 hours
and uses a lower tail test.
i.e he rejects H0 only if the mean life of sampled bulbs
- the B-school
HA: > 0
e.g A highway safety engineer decides to test the
load bearing capacity of a 20 year old bridge. The
minimum load-bearing capacity of the bridge must be
at least 10 tons.
H0 : = 10 tons and HA: >10 tons
and uses an upper tail test.
i.e he rejects H0 only if the mean load bearing
capacity of the bridge is significantly higher than 10
tons.
- the B-school
t n 1, by z
For n 30, replace
- the B-school
2.62
2.536
2.536
n ( p p0 )
p0 (1 p0 )
the
B-school
z
reject H if
0
z
For HA: p < p0 reject H0 if
z 2
For HA: p p0 reject H0 if
- the B-school
- the B-school
n ( p p0 )
p0 (1 p0 )
6000 0.00583
0.05 0.95
77.459 0.00583
2.072
0.218
0.02
Z (the critical value of Z ) 2.05 (NORMSINV
) interest is significantly
Q Z we reject H i.e the current
(n 1)s 2
- the B-school
2( R )
2( R )
(2(n R1),) 2
or
1
2
of
x1 x2 denote the standard errors of the sampling distributions
X X
n1 n2
the means.
( X1 X 2 ) ( 1 2 )H
is the mean of thedifference
between sample means and
x x standard error.
is the corresponding
1
- the B-school
1
- the B-school
X1 X 2
H A : 1 2
- the B-school
12 22
0.26 0.71
0.026 0.163
n1
n2
32
38
( x1 x2 ) ( 1 2 )H0
X1 X 2
1.13 0
6.92
0.163
0.05
Critical value of Z Z 1.64
Q Z we reject H0 and conclude that there has
been a decline.
n1p1 n2 p2
n1 n2
p1 p2
and
as the
- the B-school
pq
is the estimated standard error of the
pq
x1 x2
- the B-school
166
0.415,
400
H A : p1 p2
n2 380, p2
205
0.5395
380
- the B-school
(Proportion of
n1p1 n2 p2 400 0.415 380 0.5395
p
0.0358
400 380
n1 n2
0.01
Critical value of Z Z 2.32
( p1 p2 ) ( p1 p2 )H0
p1 p2
Q Z we reject H0