Académique Documents
Professionnel Documents
Culture Documents
Tests of Hypotheses
8.1
8.2
3)
4)
5)
8.2
Truth
Ho is true
Ho is false
Correct decision
Type II error ()
Type I error ()
Correct decision
8.2
Hypotheses
H0: equal
Ha: less than, not
equal, or greater than
One-tailed or two-tailed
is a decision based
on assumed
alternative
Example:
H0:
m = m0
m m0
or
Ha: m m0
or
Ha: m m0
Ha:
8.2
Reject Region
8.2
Note
8.3
y 72
74.1 72
=
= 1.12
s 13.3
n
50
8.4
Note
8.5
10
8.5
11
8.5
8.5
6.
7.
y m0
9.256 8.5
=
= 4.03
z s n 1.203
41
8.
8.5
Decision
Figure 8.6
Rejection region for
Example 8.8
14
8.6
15
8.6
Determine: p-value =
P (z > z0 ) if upper-tailed
P (z < z0 ) if lower-tailed
2 P (z > |z0|) if two-tailed
If p-value exceeds , there is insufficient
evidence to reject Ho
If p-value is less than the maximum value ,
reject Ho
16
8.6
Example 8.10
Determine p-value = P (z > z0 ) for uppertailed test.
P (z > 1.12) = .5 - .3686 = 0.1314
17
8.6
8.6
y1 m 0
T=
s n
= (2.143 - 1)/(1.7/20) = 2.95
7. Compare to t rejection region. Make decision.
Decision is to reject or not reject H0?
19
8.6
8.6
(t > t0 ) if upper-tailed
P (t < t0 ) if lower-tailed
2 P (t > |t0|) if two-tailed
21
8.7
22
8.7
Two-Tailed Test
H0: 1 - 2 = D0
Ha: 1 - 2 D0
23
8.7
Test Statistic: Z
y1 y2 D0
Z=
y y
1
Rejection region:
One-Tailed Test z > z
(or z < -z )
Two-Tailed Test z > z/2
Assumptions
Large samples
Independent samples
y1 y2 D0
s12 s22
n1 n2
24
8.7
Example 8.13
y1 y2 D0
Calculate Z:
Z=
s12 s22
n1 n2
Decision? Accept Ho
25
8.7
One-Tailed Test
H0: 1 - 2 = D0
Ha: 1 - 2 > D0 (or Ha: 1 - 2 < D0)
Two-Tailed Test
H0: 1 - 2 = D0
Ha: 1 - 2 D0
26
8.7
Test Statistic:
Rejection region
One-Tailed
Test
t > t, n1 + n2 - 2
(or t < -t )
Two-Tailed
Test
t > t/2, n1 + n2 - 2
T=
y1 y2 D0
1 1
s
n1 n2
2
p
Assumptions:
1. normal populations
2. independent samples
3. equal variance
27
8.7
2
p
n1 1s
=
n2 1s
n1 n2 2
2
1
2
1
2
2
where we assume =
2
2
28
8.7
No Common Variance
29
8.8
Relatively straightforward:
Convert
30
8.8
MATCHED Pairs
Convert all of your data to difference
between two values of matched pair.
Carry out all of your analysis on this new
column of data.
Calculate its average value
Calculate its standard deviation
31
8.8
One-Tailed Test
H0: d = D0
Ha: d > D0 (or Ha: d < D0)
Two-Tailed Test
H0: d = D0
Ha: d D0
32
8.8
Rejection region
One-Tailed Test z > z (or z < -z )
Two-Tailed Test z > z/2
33
8.8
Rejection region
One-Tailed Test t > t, n-1 (or t < -t )
Two-Tailed Test t > t/2, n-1
34
8.8
Example 8.15
H0: d = D0
Ha: d > D0
T = d D0 sd
n = 3.01
8.9
One-Tailed Test
H0: p = p0
Ha: p > p0
(or Ha: p < p0)
Two-Tailed Test
H0: p = p0
Ha: p p0
36
8.9
Population Proportion
Test Statistic:
p p0
z=
p0 q0
n
Rejection region
One-Tailed Test z > z (or z < -z )
Two-Tailed Test z > z/2
Assumption:
np 4, nq 4
37
8.9
Example 8.16
Hypothesis
p p0
z=
H0: p = .95
p0 q0
Ha: p < .95
n
Test Statistic:
= (.9 - .95)/[(.95*.05)/60] = -1.78
Rejection region z < -z = -1.645
Decision?
Reject
Ho
38
8.10
One-Tailed Test
H0: p1 - p2 = D0
Ha: p1 - p2 > D0 (or Ha: p1 - p2 < D0)
Two-Tailed Test
H0: p1 - p2 = D0
Ha: p1 - p2 D0
39
8.10
Test Statistic:
p1 p 2 D0
z=
p p
where
p p
1
p1q1 p 2 q 2
n1
n2
8.10
Rejection region
One-Tailed Test: z > z (or z < -z )
Two-Tailed Test: z > z/2
n1 p1 4, n1q1 4
n2 p 2 4, n2 q2 4
41
8.10
If D0 = 0
When D0 = 0 p1 = p2 = p
standard
Test Statistic:
p1 p 2 D0
z=
p p
1
where
p p
1
1 1
p q
n1 n2
8.10
Example 8.17
Hypothesis
H0: p1 - p2 = 0
Ha: p1 - p2 < 0
Test Statistic:
p1 p 2 0
z=
p p
1
where
p p
1
1 1
p q
n1 n2
43
8.10
p p
1
.351 .649
1
1
= 0.0163
2000 1500
0.0163
0.0163
8.10
45
8.11
46
8.11
H0 : = 0
Ha : 0
Ha : 0
0
2
0 1
H0 : 2 = 0
Ha : 0
or
0
2
2
1 2
Where:
20 = (n-1)s2/ 02
2
2
8.11
Example 8.18
H0: 02 = .01 Ha: 2 < .01
20 = (n-1)s2/ 02
Smaller value of s2 we observe stronger
the evidence in favor of alternate
hypothesis
So, reject H0 for small values of test
statistic
49
8.12
Hypothesis
One-Tailed H0: 12 / 22 = 1
Ha: 12 / 22 > 1 (or Ha: 12 / 22 < 1)
Two-Tailed H0: 12 / 22 = 1
H0: 12 / 22 1
50
8.12
Test Statistic
F-Distribution
One-sided F = s12/s22
(or F = s22/s12)
One-sided F > F
Two-sided F > F /2
51
8.12