How do you calculate chi square?
Chi square is used to investigate whether the distributions of categorical variables vary from one another. In other words it is the difference of the expected and observed data.
Formula:
Chi Square Statistic = { ( OV - EV)2 / (EV) }
Where,
OV = Observed Value
EV = Expected Value
Step 1: Let us consider an example,
Observed Value = 40
Expected Value = 25
Step 2: Substitute the values in the formula,
Chi Square Statistic = { ( OV - EV)2 / (EV) }
= (40-25)2 / 25
= 225 / 25
Chi Square = 9