Tools
Chi-Square Test (2 × 2)
Put the observed counts of a 2 × 2 table in, and get the expected counts, χ² with and without Yates' correction, and the p-values at 1 degree of freedom. It warns you when an expected count is under 5.
χ²
6.4516
p = 0.0111 · significant at α = 0.05
- Expected Frequencies
- 22.5 · 77.5 · 22.5 · 77.5
- χ² (uncorrected)
- 6.4516
- p-value
- 0.0111
- Result (α = 0.05)
- SIGNIFICANT
- χ² (Yates' correction)
- 5.6201
- p-value (Yates)
- 0.0178
- Degrees of Freedom
- 1
p < 0.05: the difference between the groups is statistically significant.
How it's worked out
χ² = Σ (O − E)² / E Yates: χ² = N(|ad − bc| − N/2)² / (R₁R₂C₁C₂)
- Row and column totalsR₁ = 100, R₂ = 100, C₁ = 45, C₂ = 155, N = 200
- Expected counts, E = row total × column total / Na: 100 × 45 / 200, b: 100 × 155 / 200, c: 100 × 45 / 200, d: 100 × 155 / 200= 22.5, 77.5, 22.5, 77.5
- χ² = Σ (O − E)² / E(30 − 22.5)² / 22.5 + (70 − 77.5)² / 77.5 + (15 − 22.5)² / 22.5 + (85 − 77.5)² / 77.5= 6.4516
- p-value at 1 degree of freedomerfc(√(6.4516 / 2))= 0.0111
- Yates' correction200 × (|2,550 − 1,050| − 100)² / (100 × 100 × 45 × 155)= 5.6201
- p-value with Yates' correctionerfc(√(5.6201 / 2))= 0.0178
The other eight tools
- BMI CalculatorWHO & Asian BMI classification
- Epidemiological RatesIncidence, Prevalence, CFR, IMR, MMR & more
- Sample Size (Proportion)Calculate required sample size for a proportion
- Diagnostic Test EvaluationCalculate Sensitivity, Specificity, PPV & NPV
- Odds Ratio & Relative RiskCalculate OR, RR & 95% CI from 2×2 table
- Statistical Test SelectorFind the right test for your data
- Clinical SignificanceCalculate ARR, RRR, NNT & NNH
- Confidence Interval for MeanCalculate 95% CI for a mean