Professional Documents
Culture Documents
1
Definition
Contingency Table (or two-way frequency table)
a table in which frequencies
correspond to two variables.
(One variable is used to categorize rows,
and a second variable is used to
categorize columns.)
2
Definition
Contingency Table (or two-way frequency table)
a table in which frequencies
correspond to two variables.
(One variable is used to categorize rows,
and a second variable is used to
categorize columns.)
Contingency tables have at least two
rows and at least two columns.
3
Definition
Test of Independence
tests the null hypothesis that the row
variable and column variable in a
contingency table are not related.
4
Assumptions
1. The sample data are randomly selected.
X =Σ
2 (O - E)2
E
Critical Values
1. Found in Table A-4 using
degrees of freedom = (r - 1)(c - 1)
r is the number of rows and c is the number of columns
6
(row total) (column total)
E= (grand total)
7
Tests of Independence
H0: The row variable is independent of the
column variable
8
Expected Frequency for
Contingency Tables
9
Expected Frequency for
Contingency Tables
10
Expected Frequency for
Contingency Tables
n • p
(probability of a cell)
11
Expected Frequency for
Contingency Tables
n • p
(probability of a cell)
12
Expected Frequency for
Contingency Tables
n • p
(probability of a cell)
13
Is the type of crime independent of whether the
criminal is a stranger?
Homicide Robbery Assault
12 379 727
Stranger
14
Is the type of crime independent of whether the
criminal is a stranger?
Homicide Robbery Assault Row Total
12 379 727 1118
Stranger
15
Is the type of crime independent of whether the
criminal is a stranger?
Homicide Robbery Assault Row Total
12 379 727 1118
Stranger
16
Is the type of crime independent of whether the
criminal is a stranger?
Homicide Robbery Assault Row Total
12 379 727 1118
Stranger
(29.93)
Acquaintance 39 106 642 787
or Relative
(1118)(51)
E= 1905
= 29.93
17
Is the type of crime independent of whether the
criminal is a stranger?
Homicide Robbery Assault Row Total
12 379 727 1118
Stranger
(29.93) (284.64) (803.43)
Acquaintance 39 106 642 787
or Relative (21.07) (200.36) (565.57)
(1118)(51) (1118)(485)
E= = 29.93 E= 1905
= 284.64
1905
etc.
18
Is the type of crime independent of whether the
criminal is a stranger?
X =Σ
2 (O - E )2
E
(O -E )2 (12 -29.93)2
Upper left cell: = = 10.741
E 29.93
19
Is the type of crime independent of whether the
criminal is a stranger?
X =Σ
2 (O - E )2
E
(O -E )2 (12 -29.93)2
Upper left cell: = = 10.741
E 29.93
20
Is the type of crime independent of whether the
criminal is a stranger?
X =Σ
2 (O - E )2
E
22
Test Statistic X2 = 119.319
with α = 0.05 and (r -1) (c -1) = (2 -1) (3 -1) = 2 degrees of freedom
α = 0.05
0 X2 = 5.991
Sample data: X2 =119.319
23
Test Statistic X2 = 119.319
with α = 0.05 and (r -1) (c -1) = (2 -1) (3 -1) = 2 degrees of freedom
α = 0.05
0
Reject independence
X2 = 5.991
Sample data: X2 =119.319
24
Test Statistic X2 = 119.319
with α = 0.05 and (r -1) (c -1) = (2 -1) (3 -1) = 2 degrees of freedom
α = 0.05
0
Reject independence
X2 = 5.991
Sample data: X2 =119.319
25
Test Statistic X2 = 119.319
with α = 0.05 and (r -1) (c -1) = (2 -1) (3 -1) = 2 degrees of freedom
α = 0.05
0
Reject independence
X2 = 5.991
Sample data: X2 =119.319
Figure 10-8
27
Definition
Test of Homogeneity
test the claim that different populations
have the same proportions of some
characteristics
28
How to distinguish between a
test of homogeneity and a
test for independence: