Professional Documents
Culture Documents
Category A B C D
Observed Frequency, Oi 130 35 30 5
Probability 0.6 0.2 0.15 0.05
How to conduct the test procedure?
-Requires a random sample of size n from the
population whose probability distribution is unknown.
-These n observations are arranged in a frequency
distribution.
Goodness of Fit Tests (G.O.F)
Test Statistics*: 2
k
Oi Ei
2
~ ,k p 1
2
Test
i 1 Ei
k=number of categories
p=number of unknown parameters needed to be estimated from data
(b) Based on these 100 observations, is a Poisson distribution with a mean of 1.2 an
appropriate model? Perform a goodness-of-fit procedure with
=0.05.
(c) Based on these 100 observations, is a Poisson distribution an appropriate model?
Perform a goodness-of-fit procedure with =0.05.
e x
(a) Use: P( X x) where λ = 1.5 (given)
x!
Values Oi P(X=i) Ei
0 24 P(X=0)=? 22.31
1 30 P(X=1)=? 33.47
2 31 P(X=2)=? 25.1
3 11 P(X=3)=? 12.55
k 1
k−p−1=5−0−1=4
H0: Data follows a Poisson distribution with mean=1.5
H1: Data does not follow a Poisson distribution with mean 1.5
At α = 0.05
The test statistic is
2
k
Oi Ei
2
3.0714
Test
i Ei
Reject H0 if 2 2
Test 0.05, 4 9.488
0 24 P(X=0)=? 30.12
1 30 P(X=1)=? 36.14
2 31 P(X=2)=? 21.69
3 11 P(X=3)=? 8.67
k 1
4 4 1 P( X i ) 3.38
i 1
Total 100 1
e x
Use: P( X x) where λ = 1.2 (given)
x!
Values Oi P(X=i) Ei
Values Oi P(X=i) Ei
0 24 P(X=0) 30.12 0 24 P(X=0) 30.12
1 30 P(X=1) 36.14
1 30 P(X=1) 36.14
2 31 P(X=2)
k 1
21.69
2 31 P(X=2) 21.69 1 P( X i )
3 15 i 1
12.05
3 11 P(X=3) 8.67 100 1
k 1
4 4 1 P( X i ) 3.38
i 1
100 1
The degrees of freedom
Since category, value 4 has an expected are
frequency less than 5,
combine this category with
the previous category: k−p−1=4−0−1=3
H0: Data follows a Poisson distribution with mean=1.2
H1: Data does not follow a Poisson distribution with mean 1.2
At α = 0.05
The test statistic is
2
k
Oi Ei
2
?
Test
i Ei
Reject H0 if 2 2
Test 0.05, 3 7.815
Since ____________,
………………………….
……………………………………………….
e x
(c) Use: P( X x) where λ = (not given)
x!
λ = ?? (answer=1.41)
Values Oi P(X=i) Ei
0 24 P(X=0)=? ?
1 30 P(X=1)=? ?
2 31 P(X=2)=? ?
3 11 P(X=3)=? ?
k 1
4 4 1 P( X i ) ?
i 1
The degrees of freedom
Total 100 1 are
k−p−1=5−1−1=3
H0: Data follows a Poisson distribution
H1: Data does not follow a Poisson distribution
At α = 0.05 2
k
Oi Ei
2
?
Test
The test statistic is i Ei
Reject H0 if 2 2
Test 0.05, 3 7.815
Since ____________,
………………………….
……………………………………………….
Consider the following frequency table of observations on
the random variable X:
Values 0 1 2 3 >= 4
Frequency 4 21 10 13 2