Question: what is the formula to calculate chi square?
Answer: To calculate chi square, take the square of the difference between the observed (o) and expected (e) values and divide it by the expected value. Depending on the number of categories of data, we may end up with two or more values. Remember that chi looks like the letter x, so that's the letter we use in the formula.