



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth explanation of chi-square test and contingency analysis, two statistical methods used to determine if there is a significant relationship between two categorical variables. The concepts of chi-square distribution, critical values, contingency tables, expected frequencies, and the logic of the tests. It also includes examples of applying these tests to real-life scenarios, such as testing hand preference independence from gender and checking uniformity of technical support calls distribution.
Typology: Slides
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















The Chi-square Distribution
2
0 4 8 12 16 20 24 28 0 4 8 12 16 20 24 28 0 4 8 12 16 20 24 28
d.f. = 1 d.f. = 5 d.f. = 15
χ^2 χ^2 χ^2
Finding the Critical Value
4
Do not reject H 0 Reject H 0
α
χ^2 α
χ^2
Contingency Tables
Contingency Table Example
7
Gender
Hand Preference
Left Right
Female 12 108 120
Male 24 156 180
36 264 300
120 Females, 12 were left handed 180 Males, 24 were left handed
sample size = n = 300:
Logic of the Test
8
H 0 : Hand preference is independent of gender H (^) A: Hand preference is not independent of gender
Expected Cell Frequencies
10
Total sample size
(i Row total)(j Column total) e
th th
ij =
( 120 )( 36 ) e 11 = =
Observed v. Expected Frequencies
11
Gender
Hand Preference Left Right
Female
Observed = 12 Expected = 14.
Observed = 108 Expected = 105.
120
Male
Observed = 24 Expected = 21.
Observed = 156 Expected = 158.
180
36 264 300
Observed v. Expected Frequencies
13
Gender
Hand Preference Left Right
Female
Observed = 12 Expected = 14.
Observed = 108 Expected = 105.
120
Male
Observed = 24 Expected = 21.
Observed = 156 Expected = 158.
180
36 264 300
( 156 158. 4 )
( 24 21. 6 )
( 108 105. 6 )
χ^2 = (^12 −^14.^4 )^2 + −^2 + −^2 + −^2 =
Contingency Analysis
14
χ^2 .05 = 3.841^ χ^2 Reject H 0
α = 0.
Decision Rule: If χ^2 > 3.841, reject H 0 , otherwise, do not reject H (^0)
χ^2 = 0. 6848 with d.f.=(r -1)(c -1) = (1)(1) = 1
Do not reject H 0
Here, χ^2 = 0. < 3.841, so we do not reject H (^0) and conclude that gender and hand preference are independent
16
Chi-Square Goodness-of-Fit Test
Σ = 1722
17
Logic of Goodness-of-Fit Test
19
i
2
where: k = number of categories oi = observed cell frequency for category i ei = expected cell frequency for category i
H 0 : The distribution of calls is uniform over days of the week H (^) A: The distribution of calls is not uniform
The Rejection Region
20
∑
− χ = i
2 (^2) i i e
(o e )
H 0 : The distribution of calls is uniform over days of the week H (^) A: The distribution of calls is not uniform
2 α
2 χ > χ
0
α
χ^2 α
Do not reject H Reject H 0 0
χ^2