Documente Academic
Documente Profesional
Documente Cultură
2
i 1 j 1 Eij
• Where:
• R = total number of rows in the table
• C = total number of columns in the table
• Eij = the expected frequency in row i, column j
• Oij = the observed frequency in row i, column j
– Assumption for test: Large N (>100)
– Critical value Dof Chi Square: (R-1)(C-1).
Chi-square Test of Independence
• Example: Gender and Political Views
– Let’s pretend that N of 68 is sufficient
Women Men
O11: 27 O12 : 10
Democrat
E11: 23.4 E12 : 13.6
O21 : 16 O22 : 15
Republican
E21 : 19.6 E22 : 11.4
Chi-square Test of Independence
• Compute (Eij – Oij )2 /Eij for each cell
Women Men
Absolute
Strength of Association
value of Q
0 to .24 “virtually no relationship”
Dem 27 / 68 10 / 68
Rep 16 / 68 15 / 68
Women Men
N1 N 2
σ̂ ( P1 P2 ) Pboth (1 Pboth )
N1 N 2
• Where:
N1 P1 N 2 P2
Pboth
N1 N 2
Difference in Proportions: Example
• Q: Do you approve of Pres. Bush? (Yes/No)
• Sample: N = 86 women, 80 men
• Women: N = 86, PW = .70
• Men: N = 80, PW = .78
• Total N is “Large”: 166 people
– So, we can use a Z-test
• Use a = .05, two-tailed Z = 1.96
Difference in Proportions: Example
• Use formula to calculate Z-value
P1 P2 .70 .78 .08
Z
σ̂ ( P1 P2 ) σ̂ ( P1 P2 ) σ̂ ( P1 P2 )
• And, estimate the Standard Error as:
N1 N 2
σ̂ ( P1 P2 ) Pboth (1 Pboth )
N1 N 2
Difference in Proportions: Example
• First: Calculate Pboth:
N1 P1 N 2 P2
Pboth
N1 N 2
86(.70) 80(.78)
Pboth
86 80
60.2 62.4
Pboth .739
166
Difference in Proportions: Example
• Plug in Pboth=.739:
N1 N 2
σ̂ ( P1 P2 ) .739(1 .739)
N1 N 2
86 80
σ̂ ( P1 P2 ) .454
(86)(80)
166
σ̂ ( P1 P2 ) .674 .104
6880
Difference in Proportions: Example
• Finally, plug in S.E. and calculate Z:
P1 P2 .70 .78 .08
Z
σ̂ ( P1 P2 ) σ̂ ( P1 P2 ) σ̂ ( P1 P2 )
P1 P2 .08
Z .769
σ̂ ( P1 P2 ) .104
Difference in Proportions: Example
• Results:
• Critical Z = 1.96
• Observed Z = .739
• Conclusion: We can’t reject null hypothesis
– Women and Men do not clearly differ in approval of
Bush