# Chi-squared test expected values

## How do I find the expected values for a Chi-Squared distribution?

Information about the Chi-Squared test can be found here. We have two hypotheses:

\(H_0\) = the variables are independent, there is no relationship between the two categorical variables.

\(H_A\) = Knowing the value of one variable helps to predict the value of the other variable.

Under the null hypothesis, the distribution of one variable is independent to the distribution of the other. This means that the expected count for one cell, can be found using the column total times the row total divided by the total number of observations.