NeuroNomixer logoNeuroNomixer
  • Home
  • Blog
  • Visual Guides
  • Authors
  • Contact
Sign InSign Up
NeuroNomixer logo
HomeBlogAuthorsContactPrivacy Policy

© 2026 NeuroNomixer — Built with Next.js & Tailwind CSS

STATISTICSUNIT 9: ASSOCIATION & DEPENDENCE

Chi-Square Test of Independence

Discover whether two categorical variables are associated. Build contingency tables, compute expected frequencies, decompose the χ² statistic cell by cell, and quantify association strength.

Scenarios: 1/2
Expected frequencies viewed
Chi-square interpreted
Association measure explored

Sign in to track progress

Step 1: Select a Scenario & Edit the Table

SuccessFailureRow Total
Treatment60
Control60
Col Total7545120
H₀: The two variables are independent. Edit cells to see how the test statistic changes live.

Step 2: Expected Frequencies

All assumptions met

Observed

SuccessFailure
Treatment4515
Control3030

Expected E = (row × col) / n

SuccessFailure
Treatment37.522.5
Control37.522.5
Example: E₁₁ = (60 × 75) / 120 = 37.50

Step 3: Chi-Square Decomposition

CellOE(O−E)²(O−E)²/E
Treatment / Success4537.5056.251.5000
Treatment / Failure1522.5056.252.5000
Control / Success3037.5056.251.5000
Control / Failure3022.5056.252.5000
χ² =8.0000

Contribution per Cell

Treatment / Success1.50Treatment / Failure2.50Control / Success1.50Control / Failure2.50
< 1 (low)
1–5 (moderate)
> 5 (high)

Step 4: Test Result

Chi-Square Statistic

8.000

Degrees of Freedom

1(2-1)×(2-1)

p-value

0.005

Reject H₀: Variables are NOT independent (p < 0.05)
H₀: The two variables are independent (no association)
H₁: The two variables are NOT independent (association exists)

Step 5: Association Measures

Effect size quantifies practical significance beyond the p-value. Phi, Odds Ratio, and Risk Ratio are available for 2×2 tables.

Cramér's V

0.258

Moderate association

√(χ² / (n × min(r-1, c-1)))

Phi (φ)

0.258

√(χ² / n), equivalent to Pearson's r for 2×2 tables

Odds Ratio

3.000

(a × d) / (b × c)

Row 1 has higher odds of the first outcome

Risk Ratio (RR)

1.500

(a / row1Total) / (c / row2Total)

Row 1 has higher relative risk

Effect Size Reference (Cramér's V)

Weak(0 – 0.10)
Moderate(0.10 – 0.30)
Strong(0.30+)
← Correlation & CovarianceRegression to the Mean →