Observed Frequencies (O): Actual counts from the sample data
Expected Frequencies (E): Counts predicted by the null hypothesis
Degrees of Freedom: df = k - 1 (where k = number of categories)
Chi-Square Distribution: Right-skewed distribution used for categorical data tests
Goodness-of-Fit: Test of how well observed data fits expected distribution
- State hypotheses: H₀: Distribution matches expected, H₁: Distribution differs
- Check conditions: All expected frequencies ≥ 5
- Calculate test statistic: χ² = Σ[(O-E)²/E]
- Find p-value: Using chi-square distribution with df = k-1
- Make decision: Compare p-value to α
Categories: 6 faces of die
Total Rolls: n = 60
Observed: O₁=8, O₂=12, O₃=10, O₄=11, O₅=9, O₆=10
Testing if each face appears with equal probability (1/6)
H₀: Die is fair (p₁ = p₂ = p₃ = p₄ = p₅ = p₆ = 1/6)
H₁: Die is not fair (at least one pᵢ ≠ 1/6)
Under H₀, each face should appear 60 × (1/6) = 10 times
So E₁ = E₂ = E₃ = E₄ = E₅ = E₆ = 10
All expected frequencies = 10 ≥ 5 ✓
Conditions are satisfied
χ² = Σ[(O-E)²/E]
χ² = [(8-10)²/10] + [(12-10)²/10] + [(10-10)²/10] + [(11-10)²/10] + [(9-10)²/10] + [(10-10)²/10]
χ² = [4/10] + [4/10] + [0/10] + [1/10] + [1/10] + [0/10]
χ² = 0.4 + 0.4 + 0 + 0.1 + 0.1 + 0 = 1.0
df = k - 1 = 6 - 1 = 5
For χ² = 1.0 and df = 5: p-value ≈ 0.960
Since p-value (0.960) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude that the die is unfair.
χ² = 1.0, df = 5, p-value ≈ 0.960
Fail to reject H₀: Die appears to be fair
• Expected Calculation: E = n × p where p is the hypothesized probability
• Condition Check: All E ≥ 5 for chi-square validity
• Decision Rule: Reject H₀ if p-value ≤ α
Categories: 4 geographic regions
Total Customers: n = 200
Claimed Proportions: p₁=0.40, p₂=0.30, p₃=0.20, p₄=0.10
H₀: Customer distribution matches claimed proportions
H₁: Customer distribution differs from claimed proportions
E₁ = 200 × 0.40 = 80 (Northeast)
E₂ = 200 × 0.30 = 60 (South)
E₃ = 200 × 0.20 = 40 (West)
E₄ = 200 × 0.10 = 20 (Midwest)
All expected frequencies ≥ 5: 80, 60, 40, 20 ✓
Conditions satisfied
χ² = [(70-80)²/80] + [(65-60)²/60] + [(45-40)²/40] + [(20-20)²/20]
χ² = [100/80] + [25/60] + [25/40] + [0/20]
χ² = 1.25 + 0.417 + 0.625 + 0 = 2.292
df = k - 1 = 4 - 1 = 3
For χ² = 2.292 and df = 3: p-value ≈ 0.514
Since p-value (0.514) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude that customer distribution differs from claimed proportions.
χ² = 2.292, df = 3, p-value ≈ 0.514
Fail to reject H₀: Customer distribution matches claimed proportions
• Proportional Expected: E = n × p for each category
• Degrees of Freedom: df = number of categories - 1
• Right-tailed Test: Chi-square tests are always right-tailed
Categories: 3 political parties
Total Voters: n = 400
Claimed Proportions: p₁=0.45, p₂=0.40, p₃=0.15
H₀: Voter distribution matches claimed proportions
H₁: Voter distribution differs from claimed proportions
E₁ = 400 × 0.45 = 180 (Democrat)
E₂ = 400 × 0.40 = 160 (Republican)
E₃ = 400 × 0.15 = 60 (Independent)
All expected frequencies ≥ 5: 180, 160, 60 ✓
Conditions satisfied
χ² = [(180-180)²/180] + [(150-160)²/160] + [(70-60)²/60]
χ² = [0/180] + [100/160] + [100/60]
χ² = 0 + 0.625 + 1.667 = 2.292
df = k - 1 = 3 - 1 = 2
For χ² = 2.292 and df = 2: p-value ≈ 0.318
Since p-value (0.318) > α (0.01), fail to reject H₀
At α = 0.01, there is insufficient evidence to conclude that voter distribution differs from claimed proportions.
χ² = 2.292, df = 2, p-value ≈ 0.318
Fail to reject H₀: Voter distribution matches claimed proportions
• Conservative Alpha: α = 0.01 requires stronger evidence
• Large Sample: Adequate expected frequencies guaranteed
• Political Context: Important for polling and electoral analysis
Categories: 5 departments
Total Sales: n = 500
Observed: O₁=120, O₂=85, O₃=105, O₄=95, O₅=95
H₀: Sales are equally distributed among departments
H₁: Sales are not equally distributed among departments
Under H₀: Each department should have 500/5 = 100 sales
E₁ = E₂ = E₃ = E₄ = E₅ = 100
All expected frequencies = 100 ≥ 5 ✓
Conditions satisfied
χ² = [(120-100)²/100] + [(85-100)²/100] + [(105-100)²/100] + [(95-100)²/100] + [(95-100)²/100]
χ² = [400/100] + [225/100] + [25/100] + [25/100] + [25/100]
χ² = 4 + 2.25 + 0.25 + 0.25 + 0.25 = 7.0
df = k - 1 = 5 - 1 = 4
For χ² = 7.0 and df = 4: p-value ≈ 0.136
Since p-value (0.136) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude that sales are unequally distributed among departments.
χ² = 7.0, df = 4, p-value ≈ 0.136
Fail to reject H₀: Sales appear equally distributed among departments
• Equal Distribution: Each category has expected frequency of n/k
• Departure Detection: Department 1 has highest sales, Department 2 lowest
• Business Application: Useful for inventory and staffing decisions
Categories: 5 grade levels
Total Students: n = 200
Claimed Proportions: pA=0.20, pB=0.30, pC=0.30, pD=0.15, pF=0.05
H₀: Grade distribution matches claimed proportions
H₁: Grade distribution differs from claimed proportions
E_A = 200 × 0.20 = 40
E_B = 200 × 0.30 = 60
E_C = 200 × 0.30 = 60
E_D = 200 × 0.15 = 30
E_F = 200 × 0.05 = 10
All expected frequencies ≥ 5: 40, 60, 60, 30, 10 ✓
Conditions satisfied
χ² = [(35-40)²/40] + [(65-60)²/60] + [(60-60)²/60] + [(30-30)²/30] + [(10-10)²/10]
χ² = [25/40] + [25/60] + [0/60] + [0/30] + [0/10]
χ² = 0.625 + 0.417 + 0 + 0 + 0 = 1.042
df = k - 1 = 5 - 1 = 4
For χ² = 1.042 and df = 4: p-value ≈ 0.905
Since p-value (0.905) > α (0.05), fail to reject H₀
There is insufficient evidence to conclude that the grade distribution differs from the claimed proportions.
χ² = 1.042, df = 4, p-value ≈ 0.905
Fail to reject H₀: Grade distribution matches claimed proportions
• Grade Curve: Common in academic settings
• Close Match: Observed values very close to expected
• High P-value: Strong evidence supporting the null hypothesis