Chi-square Test Of Independence Example Problems With Answers Pdf

7 min read

The chi-square test of independence is a statistical method used to determine whether two categorical variables are related or independent. It is widely applied in fields such as education, health sciences, marketing, and social research. Still, for students and researchers seeking chi-square test of independence example problems with answers PDF, this article provides a comprehensive walkthrough of the test, step-by-step calculations, and fully worked examples that mirror the kind of practice material found in downloadable PDF resources. By the end, you will understand how to set up hypotheses, compute expected frequencies, calculate the chi-square statistic, and interpret results—skills that are essential for mastering this foundational statistical technique Easy to understand, harder to ignore..

What Is the Chi-Square Test of Independence?

The chi-square test of independence compares the observed frequencies in a contingency table with the frequencies you would expect if the two variables were completely unrelated. It answers a simple question: Is there a statistically significant association between variable A and variable B? As an example, you might ask whether gender is associated with preference for online versus in-person learning, or whether age group is related to social media platform choice It's one of those things that adds up. Took long enough..

The test uses categorical data—counts of individuals falling into categories—rather than continuous measurements. The null hypothesis ((H_0)) states that the two variables are independent. The alternative hypothesis ((H_a)) states that they are associated. A low p-value (typically less than 0.05) leads you to reject the null hypothesis and conclude that a relationship exists.

When to Use the Chi-Square Test of Independence

You should consider this test when:

  • You have two categorical variables, each with two or more categories.
  • Observations are independent of one another (each subject contributes to only one cell).
  • The data are frequencies or counts, not percentages or means.
  • Expected frequencies in each cell are sufficiently large—generally at least 5 in at least 80% of cells, and no expected frequency below 1.

If these conditions are met, the chi-square test of independence is appropriate. Many educational PDFs include checklists and decision trees to help you verify these assumptions before calculating Less friction, more output..

Step-by-Step Procedure

Follow these steps for any chi-square test of independence problem:

  1. State the hypotheses. Define (H_0) (independence) and (H_a) (association).
  2. Create a contingency table of observed frequencies.
  3. Compute expected frequencies for each cell using the formula: [ E_{ij} = \frac{(\text{row total}_i) \times (\text{column total}_j)}{\text{grand total}} ]
  4. Calculate the chi-square statistic: [ \chi^2 = \sum \frac{(O_{ij} - E_{ij})^2}{E_{ij}} ]
  5. Determine degrees of freedom: (df = (r - 1)(c - 1)), where (r) is the number of rows and (c) is the number of columns.
  6. Find the critical value from the chi-square distribution table at your chosen significance level (often (\alpha = 0.05)).
  7. Compare the calculated (\chi^2) to the critical value, or compare the p-value to (\alpha).
  8. State your conclusion in plain language.

The following examples illustrate this process from start to finish.

Example Problem 1: Gender and Learning Preference

Scenario: A university surveys 200 students about whether they prefer online or in-person learning. The results are cross-tabulated by gender.

Gender Online In-Person Row Total
Male 40 60 100
Female 50 50 100
Column Total 90 110 200

Step 1: Hypotheses.

  • (H_0): Gender and learning preference are independent.
  • (H_a): Gender and learning preference are associated.

Step 2: Expected frequencies.

  • Male/Online: ((100 \times 90) / 200 = 45)
  • Male/In-Person: ((100 \times 110) / 200 = 55)
  • Female/Online: ((100 \times 90) / 200 = 45)
  • Female/In-Person: ((100 \times 110) / 200 = 55)

Step 3: Chi-square calculation. [ \chi^2 = \frac{(40-45)^2}{45} + \frac{(60-55)^2}{55} + \frac{(50-45)^2}{45} + \frac{(50-55)^2}{55} ] [ = \frac{25}{45} + \frac{25}{55} + \frac{25}{45} + \frac{25}{55} \approx 0.556 + 0.455 + 0.556 + 0.455 = 2.022 ]

Step 4: Degrees of freedom. (df = (2-1)(2-1) = 1) That's the part that actually makes a difference. Which is the point..

Step 5: Critical value. At (\alpha = 0.05), the critical value for (df = 1) is 3.841 Easy to understand, harder to ignore..

Step 6: Conclusion. Since (2.022 < 3.841), we fail to reject (H_0). There is not enough evidence to conclude that gender and learning preference are associated. The p-value is approximately 0.155.

This example is typical of the problems found in chi-square test of independence example problems with answers PDF resources, where the answer key shows both the calculation and the interpretation.

Example Problem 2: Age Group and Social Media Platform

Scenario: A marketing team wants to know whether age group is related to preferred social media platform. They survey 300 people.

Age Group Platform A Platform B Platform C Row Total
18–30 60 40 20 120
31–45 30 50 40 120
46+ 10 30 20 60
Column Total **100

120 | 60 | 300 |

Step 1: Hypotheses.

  • (H_0): Age group and preferred social media platform are independent.
  • (H_a): Age group and preferred social media platform are associated.

Step 2: Expected frequencies. Using (E = \frac{(\text{Row Total}) \times (\text{Column Total})}{\text{Grand Total}}):

Age Group Platform A (Exp) Platform B (Exp) Platform C (Exp)
18–30 (\frac{120 \times 100}{300} = 40) (\frac{120 \times 120}{300} = 48) (\frac{120 \times 60}{300} = 24)
31–45 (\frac{120 \times 100}{300} = 40) (\frac{120 \times 120}{300} = 48) (\frac{120 \times 60}{300} = 24)
46+ (\frac{60 \times 100}{300} = 20) (\frac{60 \times 120}{300} = 24) (\frac{60 \times 60}{300} = 12)

Check: All expected frequencies are (\ge 5), satisfying the test assumption.

Step 3: Chi-square calculation. [ \chi^2 = \sum \frac{(O - E)^2}{E} ]

Cell (O, E) ((O-E)^2/E)
18–30, A (60, 40) ((20)^2/40 = 10.Because of that, 000)
18–30, B (40, 48) ((-8)^2/48 = 1. Day to day, 500)
31–45, B (50, 48) ((2)^2/48 = 0. But 333)
18–30, C (20, 24) ((-4)^2/24 = 0. 000)
46+, B (30, 24) ((6)^2/24 = 1.083)
31–45, C (40, 24) ((16)^2/24 = 10.667)
31–45, A (30, 40) ((-10)^2/40 = 2.On top of that, 667)
46+, A (10, 20) ((-10)^2/20 = 5. 500)
46+, C (20, 12) ((8)^2/12 = 5.

[ \chi^2 = 10.So 000 + 1. 333 + 0.In practice, 667 + 2. 500 + 0.083 + 10.667 + 5.That's why 000 + 1. 500 + 5.333 = \mathbf{37.

Step 4: Degrees of freedom. (df = (r-1)(c-1) = (3-1)(3-1) = 4).

Step 5: Critical value. At (\alpha = 0.05) and (df = 4), the critical value is 9.488.

Step 6: Conclusion. Since (37.083 > 9.488), we reject (H_0). There is statistically significant evidence ((\chi^2 = 37.08, df = 4, p < 0.001)) to conclude that age group and preferred social media platform are associated. The marketing team should tailor their strategy differently for each age demographic.


Interpreting Effect Size: Cramér’s V

A significant p-value tells you that a relationship exists, but not how strong it is. For tables larger than (2 \times 2), Cramér’s V is the standard effect size measure:

[ V = \sqrt{\frac{\chi^2}{N \times \min(r-1, c-1)}} ]

For Example 2: [ V = \sqrt{\frac{37.083}{300 \times \min(2, 2)}} = \sqrt{\frac{37.08

Hot and New

Just Dropped

You Might Like

Good Company for This Post

Thank you for reading about Chi-square Test Of Independence Example Problems With Answers Pdf. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home