Intro ChiSqr
Intro ChiSqr
2
Tests for
Independence
and the
Homogeneity of
Proportions
1. It is not symmetric.
2. It’s shape depends on the degrees of
freedom, just like Student’s t-distribution.
3. As the number of degrees of freedom
increases, it becomes more nearly
symmetric.
4. The values of χ2 are nonnegative. That is, the
values of χ2 are greater than or equal to 0.
2 Oi Ei
Ei
approximately follows the chi-square distribution with
(r – 1)(c – 1) degrees of freedom, where r is the number of
rows and c is the number of columns in the contingency
table, provided
that (1) all expected frequencies are
greater than or equal to 1 and (2) no more than 20% of
the expected
frequencies are less than 5.
2
V
N min(r 1, c 1)
In a poll, 883 males and 893 females were asked “If you
could have only one of the following, which would you
pick: money, health, or love?” Their responses are
presented in the table below. Determine the expected
counts within each cell assuming that gender and
response are independent.
2 Oi Ei
Ei
approximately follows the chi-square distribution with
(r – 1)(c – 1) degrees of freedom, where r is the number of
rows and c is the number of columns in the contingency
table, provided
that (1) all expected frequencies are
greater than or equal to 1 and (2) no more than 20% of
the expected
frequencies are less than 5.
O E
2
2
0
i i
Ei
Note: Oi is the observed count for the ith category.
O E
2
2
0
i i
Ei
Note: Oi is the observed count for the ith category.
In a poll, 883 males and 893 females were asked “If you
could have only one of the following, which would you
pick: money, health, or love?” Their responses are
presented in the table below. Test the claim that gender
and response are independent at the α = 0.05 level of
significance.
282 63.5808
446 507.048
0
63.5808 507.048
2
273 315.7728
315.7728
36.82
12-34 Copyright © 2013, 2010 and 2007 Pearson Education, Inc.
Solution: Classical Approach
Test the claim that the proportion of individuals that feel being a
teacher is an occupation of very great prestige is the same for each
year at the α = 0.01 level of significance.
Source: The Harris Poll
12-47 Copyright © 2013, 2010 and 2007 Pearson Education, Inc.
Solution
2 418 475.554 479 475.554
0
475.554 475.554
2
485 539.108
539.108
24.74
12-51 Copyright © 2013, 2010 and 2007 Pearson Education, Inc.
Solution: Classical Approach
Step 3:
(b) c) The test statistic is
2 2
2 418 475.554 479 475.554
0
475.554 475.554
2
485 539.108
539.108
24.74
12-52 Copyright © 2013, 2010 and 2007 Pearson Education, Inc.
Solution: Classical Approach
2 418 475.554 479 475.554
0
475.554 475.554
2
485 539.108
539.108
24.74
12-55 Copyright © 2013, 2010 and 2007 Pearson Education, Inc.
Solution: P-Value Approach