STAT1003 – Statistical Techniques
Dr. Emi Tanaka
Australian National University
These slides are best viewed on a modern browser like Google Chrome on a desktop or laptop. Some interactive components may require some time to fully load.

The chi-squared test statistic is defined as:
\[X^2 = \sum_{i=1}^k \frac{(O_i - E_i)^2}{E_i} = \sum_{i=1}^k \frac{O_i^2}{E_i} - n.\]
P-value is calculated as: \(P(\chi^2_{k-1} > X^2)\).
| Category | A | B | AB | O |
|---|---|---|---|---|
| \(O_i\) | 85 | 40 | 15 | 60 |
| \(E_i\) | 80 | 50 | 20 | 50 |

STAT1003 – Statistical Techniques