Chi-Square Test - Equations

The chi-square statistic is calculated as:



where are the observed, and are the expected counts.