Lecture – Chi Square Goodness of Fit Test
PSYC 3510
Matthew Babb
Review and Reminders
Reminders
Review
Chi Square Test
Goals for Today
Chi Square Test
(Observed Data – Expected Data)
Expected
=
2
Σ
Types of Chi Square Tests
2. 𝝌2 Test of Independence
Types of Chi Square Tests
2. 𝝌2 Test of Independence
Chi Square Example
Null Hypothesis and Significance Testing
- In this case it’s a Chi Square Value
1. State Hypotheses
2. Set Criteria for Decision
P-value
Chi Square Distribution
P-value
1 2 3
Male
Female
*
df = k – 1
(k is the number of categories)
How many degrees of freedom?
Chi Square Distribution
P-value
1 2 3
Male
Female
*
df = k – 1
(k is the number of categories)
2. Set Criteria for Decision
df = 2
P-value
2. Set Criteria for Decision
P-value
α = 0.05
5.99
I will always give you this number! But I do want you to know how to find it
3. Compute our Statistic
(Obs. Freq. – Exp. Freq.)2
Exp. Freq.
=
Male
Female
*
(Obs. Freq. – Exp. Freq.)2
Exp. Freq.
+
+
(Obs. Freq. – Exp. Freq.)2
Exp. Freq.
3. Compute our Statistic
| Male | Female | * | Total |
Observed Frequency | 407 | 127 | 0 | 534 |
3. Compute our Statistic
=
Male
Female
*
(407 – Exp. Freq.)2
Exp. Freq.
(127 – Exp. Freq.)2
Exp. Freq.
+
+
(0 – Exp. Freq.)2
Exp. Freq.
3. Compute our Statistic
| Male | Female | * | Total |
US Population | 0.44 | 0.46 | 0.10 | 1.00 |
Expected Frequency | 0.44 x 534 = 234.96 | 0.46 x 534 = 245.64 | 0.10 x 534 = 53.40 | 534 |
3. Compute our Statistic
(407 – 234.96)2
234.96
=
Male
Female
*
(127 – 245.64)2
245.64
+
+
(0 – 53.40)2
53.40
3. Compute our Statistic
(407 – 234.96)2
234.96
=
Male
Female
*
(127 – 245.64)2
245.64
+
+
(0 – 53.40)2
53.40
57.30
53.40
125.97
=
236.67
3. Compute our Statistic
=
236.67
4. Decide to accept or reject the null
P-value
α = 0.05
=
236.67
Criteria = 5.99
5.99
If > criteria, we reject the null
If < criteria, we fail to reject the null
Do we reject or fail to reject the null?
=
236.67
Criteria = 5.99
Results
Key Concepts
(Obs– Exp)
Exp
=
2
Σ
P-value
| Cat.1 | Cat.2 |
Expected | 234.96 | 245.64 |
Observed | 407 | 127 |
If we have 2 categories, what is the criteria if α = 0.2?