Last updated on August 5th, 2025
In statistics, the chi-square test is used to determine if there is a significant association between categorical variables. It assesses how the observed values compare to the expected values in a dataset. In this topic, we will learn the formula for the chi-square test.
The chi-square test is used to compare observed and expected frequencies. Let’s learn the formula to calculate the chi-square statistic.
The chi-square statistic is calculated using the formula:
Chi-Square = Σ((O-E)²/E) where O is the observed frequency, and E is the expected frequency for each category.
In math and real-life applications, we use the chi-square formula to analyze the relationship between categorical variables.
Here are some important uses of the chi-square formula:
Students often find the chi-square formula tricky and confusing.
Here are some tips and tricks to master the chi-square formula:
In real life, the chi-square test plays a major role in understanding relationships between categorical variables.
Here are some applications of the chi-square formula:
Students make errors when calculating the chi-square statistic. Here are some mistakes and the ways to avoid them, to master the chi-square test.
A survey of 100 people found that 40 preferred product A, 30 preferred product B, and 30 preferred product C. If the expectation was an equal preference, calculate the chi-square statistic.
The chi-square statistic is 10
Expected frequency for each product = 100/3 = 33.33
Chi-Square = ((40-33.33)²/33.33) + ((30-33.33)²/33.33) + ((30-33.33)²/33.33) = 10
In a study, 60 out of 150 students preferred online learning, while the rest preferred in-person. If the expectation was that half would prefer each, find the chi-square statistic.
The chi-square statistic is 10
Expected frequency for each preference = 150/2 = 75
Chi-Square = ((60-75)²/75) + ((90-75)²/75) = 10
A dice is rolled 120 times, and the numbers 1 to 6 appear with frequencies 20, 18, 22, 20, 20, and 20. Calculate the chi-square statistic assuming a fair die.
The chi-square statistic is 2
Expected frequency for each number = 120/6 = 20
Chi-Square = ((20-20)²/20) + ((18-20)²/20) + ((22-20)²/20) + ((20-20)²/20) + ((20-20)²/20) + ((20-20)²/20) = 2
In a genetics experiment, 100 plants exhibit the following traits: 60 tall and 40 short. If the expected ratio is 3:1, calculate the chi-square statistic.
The chi-square statistic is 4.44
Expected frequency for tall = 100*(3/4) = 75
Expected frequency for short = 100*(1/4) = 25
Chi-Square = ((60-75)²/75) + ((40-25)²/25) = 4.44
A coin is flipped 200 times, landing on heads 95 times. Calculate the chi-square statistic assuming a fair coin.
The chi-square statistic is 0.5
Expected frequency for heads = 200/2 = 100
Expected frequency for tails = 200/2 = 100
Chi-Square = ((95-100)²/100) + ((105-100)²/100) = 0.5
Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.
: He loves to play the quiz with kids through algebra to make kids love it.