Similarly, we calculate the expected value for each of the cells such as,
Independen
- Republican Democrat Total
t
Male 109 59 22.72 200
Female 120 65 25 220
Total 240 130 50 440
Expected Value
Now we use the formula latex] ∖ frac { left(O_i-E_i\right)^2}{E_i} [/latex]
for each cell.
Where, O=¿ Observed Value, and
E = Expected Value.
Independen
- Republican Democrat Total
t
2.33267605
Male 0.7431197 2.050847 200
6
Female 3.3333333 0.384615 1 220
Total 240 130 50 440
Finally we calculate the test statistics X 2 which is the sum of the cell values
from the above table.
2
X =0.743+2.05+2.33+3.33+ 0.384+1=9.837