Professional Documents
Culture Documents
JOHN S. LOUCKS
St. Edwards University
Chapter 12
Tests of Goodness of Fit and
Independence
e
)
22 ii ii
eii
ii11
kk
5. Reject H0 if 2 2
(where is the significance level and there
are k - 1 degrees of freedom).
Test
The number of homes sold of each model
for 100
sales over the past two years is shown
below.
Model Colonial
Frame
# Sold
30
15
Ranch
20
Split-Level A35
Hypotheses
H0: pC = pR = pS = pA = .25
H : The population proportions are not
25
)
(
20
25
)
(
35
25
)
(
15
25
)
2
Test Statistic
25
25
25
25
=1+1+4+4
= 10
8
Do Not Reject H0
Reject H0
7.81
10
11
2
i
( f ij eij ) 2
eij
5. Reject H0 if
(where is the
2 2
significance level and with n rows and m
columns there are
(n - 1)(m - 1) degrees of freedom).
12
Ranch
6
Split-Level
19
13
16
.
5
)
(
6
11
)
(
3
6
.
75
)
2
...
16. 5
11
6. 75
= .1364 + 2.2727 + . . . + 2.0833 =
9.1486
Rejection Rule
.205 7. 81
With = .05 and (2 - 1)(4 - 1) = 3 d.f.,
Reject H0 if 2 > 7.81
Conclusion
We reject H0, the assumption that the price
of the
home is independent of the style of
the home
that is purchased.
15
e
)
2 i i
ei
i 1
k
5. Reject H0 if
2 2
(where is the significance level
are k - 2 degrees of freedom).
and there
17
18
# Arrivals 0
10 11 12
Frequency 0
6 3
1
4 10 14 20 12 12 9
19
20
6 x e 6
f ( x)
x!
Hence,
21
f (x )
xf (x )
f (x )
xf (x )
22
fi
ei
fi
0 or 1 or 25 6.20 -1.20
3 10 8.92 1.08
4 14 13.39 .61
5 20 16.20 3.80
6 12 16.06 -4.06
7 12 13.89 -1.89
8 9 10.41 -1.41
9 8 6.94 1.06
10 or more10 7.99 2.01
23
2
2
2
(
1
.
20
)
(
1
.
08
)
(
2
.
01
)
2
...
3. 42
6. 20
8. 92
7. 99
Rejection Rule
With = .05 and k - p - 1 = 9 - 1 - 1 = 7 d.f.
(where k = number of categories and p =
number of population .2parameters
05 14. 07
estimated),
Reject H0 if 2 > 14.07
Conclusion
We cannot reject H0. Theres no reason to
doubtthe assumption of a Poisson distribution.
24
e
)
2 i i
ei
i 1
k
5. Reject H0 if 2 2
(where is the significance level
and there are k - 3 degrees of freedom).
26
27
43
44
45
52
52
56
58
63
65
66
68
70
72
73
73
74
84
85
86
91
92
94
98 102
28
29
30
Areas
= 1.00/6
= .1667
fi
ei
fi - ei
Less than 53.02 6 5 1
53.02 to 63.03 3 5 -2
63.03 to 71.00 6 5 1
71.00 to 78.97 5 5 0
78.97 to 88.98 4 5 -1
More than 88.98 6 5 1
Total 30 30
32
2
)
(
1
)
(
0
)
(
1
)
(
1
)
2
1. 60
5
5
5
5
5
5
Rejection Rule
With = .05 and k - p - 1 = 6 - 2 - 1 = 3
d.f., 2 7. 81
.05
Reject H0 if 2 > 7.81
Conclusion
We cannot reject H0. There is little evidence
to
support rejecting the assumption the
population is normally distributed with = 71
33
and = 18.54.
End of Chapter 12
34