Worksheets · Statistics

Chi-square test for independence and homogeneity worksheet

A chi-square test for a two-way table compares the observed counts with the counts expected if H₀ were true: each expected count is (row total)(column total)/(table total), χ² adds (O − E)²/E over every cell, and the P-value is the area above χ² with (rows − 1)(columns − 1) degrees of freedom. One random sample classified by two variables calls for a test of independence; separate samples or treatment groups compared on one variable call for a test of homogeneity. Easy sheets find expected counts, contributions, df and P-values and choose the test; medium sheets state hypotheses, check the conditions, work from a table and write conclusions; hard sheets carry out the whole test, work back from what is given, reason about χ², and find mistakes.

Select your difficulty

Pick more than one for a sheet that mixes them.

The preview can look cramped on a phone. The PDF and printed sheet come out normal.

Free worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

Sigma Prep · sigmaprep.io/worksheets

Name

Chi-Square Tests for Two-Way Tables

Date Period

Follow the heading above each group.

  1. Name the chi-square test that fits each study, and state its hypotheses in context

    Separate random samples were taken from new cars sold in the U.S. last year: leased new cars and new cars bought outright or financed. Each car was classified by color. Name the chi-square test that fits, and state its hypotheses.
  2. A random sample of 230 hikers in Washington State was classified by whether they hike in a group and by trip length. Name the chi-square test that fits, and state its hypotheses.
  3. A researcher randomly assigned 140 plots of a large lawn to one of two seed mixes: seed mix A or seed mix B. After a month, each plot’s grass cover was rated: Thin, Medium or Thick. Name the chi-square test that fits, and state its hypotheses.
  1. Check the Random, 10% and Large Counts conditions (every expected count at least 5)

    A researcher randomly assigned 170 volunteers with high blood pressure to one of three plans: a diet plan, an exercise plan or both plans. After eight weeks, each volunteer’s blood pressure was classified: Down, Same or Up. The table shows the counts. Check the conditions for a chi-square test for homogeneity.
    DownSameUpTotal Diet18322070 Exercise13241350 Both14171950 Total457352170
  2. Separate random samples were taken from guests of a national hotel chain: guests in the rewards program and guests not in the rewards program. Each guest was classified by way of booking. The table shows the counts. Check the conditions for a chi-square test for homogeneity.
    OnlinePhoneAgentTotal Rewards1251128 No rewards145524 Total26101652
  3. A random sample of 184 hikers in Washington State was classified by whether they hike in a group and by trip length. The table shows the counts. Check the conditions for a chi-square test for independence.
    DayWeekendLongerTotal Group323538105 Solo26262779 Total586165184
  1. Work from each table. Expected counts and χ2\chi^2 to two decimal places, P to four places

    Separate random samples were taken from adults in Boston: adults who sleep under 6 hours, adults who sleep 6 to 8 hours and adults who sleep over 8 hours. Each adult was classified by cups of coffee a day. The first table shows the observed counts and the second the expected counts. Which cell contributes the most to χ²? Was its count higher or lower than expected?
    Observed counts:
    0 cups1 cup2+ cups< 6 h743838 6–8 h914425> 8 h201822
    Expected counts:
    0 cups1 cup2+ cups< 6 h75.0040.5434.46 6–8 h80.0043.2436.76> 8 h30.0016.2213.78
  2. Separate random samples were taken from adults in Minnesota: adults in the north of the state, adults in the center of the state and adults in the south of the state. Each adult was classified by favorite winter activity. In the Central row, Indoors column, the observed count is 19 and the expected count is 21.48. The table shows each cell’s contribution to χ², with that one missing. Find it, then χ², the degrees of freedom and the P-value.
    SkiingSkatingIndoors North5.040.076.31 Central3.051.11? South0.210.882.31
  3. Separate random samples were taken from library card holders in Denver: card holders with children at home and card holders without children at home. Each card holder was classified by age group. The table shows the counts. Find the expected counts, χ², the degrees of freedom and the P-value.
    18–3435–5455+ Kids664044 No kids231938
  1. Write each conclusion in context, or interpret the P-value

    Separate random samples were taken from trees in a large national forest: pine trees, oak trees and maple trees. Each tree was classified by health. A chi-square test for homogeneity gives χ2=5.82 and P=0.2130. Interpret the P-value in context.
  2. A random sample of 460 voters in Pennsylvania was classified by party and by type of community. A chi-square test for independence gives χ2=15.48, df=4 and P=0.0038. Write a conclusion in context at α=0.05.
  3. Separate random samples were taken from baseball fans in the U.S.: fans who buy team gear and fans who do not buy team gear. Each fan was classified by age group. A chi-square test for homogeneity gives χ2=6.73, df=2 and P=0.0346. Write a conclusion in context at α=0.01.

Free worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

Sigma Prep · sigmaprep.io/worksheets

Name

Chi-Square Tests for Two-Way TablesAnswer keyVersion 1

Date Period

Follow the heading above each group.

  1. Name the chi-square test that fits each study, and state its hypotheses in context

    Separate random samples were taken from new cars sold in the U.S. last year: leased new cars and new cars bought outright or financed. Each car was classified by color. Name the chi-square test that fits, and state its hypotheses.A chi-square test for homogeneity (two separate samples, one variable). H0: The distribution of color is the same for leased new cars and new cars bought outright or financed.   Ha: The distribution of color is not the same for both groups.
  2. A random sample of 230 hikers in Washington State was classified by whether they hike in a group and by trip length. Name the chi-square test that fits, and state its hypotheses.A chi-square test for independence (one sample, two variables). H0: There is no association between whether they hike in a group and trip length among hikers in Washington State.   Ha: There is an association between whether they hike in a group and trip length among hikers in Washington State.
  3. A researcher randomly assigned 140 plots of a large lawn to one of two seed mixes: seed mix A or seed mix B. After a month, each plot’s grass cover was rated: Thin, Medium or Thick. Name the chi-square test that fits, and state its hypotheses.A chi-square test for homogeneity (two treatment groups, one variable). H0: The distribution of grass cover is the same for the two seed mix groups.   Ha: The distribution of grass cover is not the same for both groups.
  1. Check the Random, 10% and Large Counts conditions (every expected count at least 5)

    A researcher randomly assigned 170 volunteers with high blood pressure to one of three plans: a diet plan, an exercise plan or both plans. After eight weeks, each volunteer’s blood pressure was classified: Down, Same or Up. The table shows the counts. Check the conditions for a chi-square test for homogeneity.
    DownSameUpTotal Diet18322070 Exercise13241350 Both14171950 Total457352170
    Random: met, the plans were randomly assigned. 10%: not needed, because there was no sampling from a population. Large Counts: the smallest expected count is 13.24, at least 5, so met. The conditions are met.
  2. Separate random samples were taken from guests of a national hotel chain: guests in the rewards program and guests not in the rewards program. Each guest was classified by way of booking. The table shows the counts. Check the conditions for a chi-square test for homogeneity.
    OnlinePhoneAgentTotal Rewards1251128 No rewards145524 Total26101652
    Random: met, separate random samples. 10%: met, it is reasonable that each sample is less than 10% of its group of guests of a national hotel chain. Large Counts: the smallest expected count is 4.62, less than 5, so not met. So the chi-square test should not be used on this table.
  3. A random sample of 184 hikers in Washington State was classified by whether they hike in a group and by trip length. The table shows the counts. Check the conditions for a chi-square test for independence.
    DayWeekendLongerTotal Group323538105 Solo26262779 Total586165184
    Random: met, a random sample. 10%: met, it is reasonable that there are more than 10(184)=1,840 hikers in Washington State. Large Counts: the smallest expected count is 24.90, at least 5, so met. All three are met.
  1. Work from each table. Expected counts and χ2\chi^2 to two decimal places, P to four places

    Separate random samples were taken from adults in Boston: adults who sleep under 6 hours, adults who sleep 6 to 8 hours and adults who sleep over 8 hours. Each adult was classified by cups of coffee a day. The first table shows the observed counts and the second the expected counts. Which cell contributes the most to χ²? Was its count higher or lower than expected?
    Observed counts:
    0 cups1 cup2+ cups< 6 h743838 6–8 h914425> 8 h201822
    Expected counts:
    0 cups1 cup2+ cups< 6 h75.0040.5434.46 6–8 h80.0043.2436.76> 8 h30.0016.2213.78
    > 8 h, 2+ cups:
    (22−13.78)213.78≈4.90, the largest contribution. The observed count, 22, is higher than expected: more of the adults who sleep over 8 hours than expected are in the 2+ cups column.
  2. Separate random samples were taken from adults in Minnesota: adults in the north of the state, adults in the center of the state and adults in the south of the state. Each adult was classified by favorite winter activity. In the Central row, Indoors column, the observed count is 19 and the expected count is 21.48. The table shows each cell’s contribution to χ², with that one missing. Find it, then χ², the degrees of freedom and the P-value.
    SkiingSkatingIndoors North5.040.076.31 Central3.051.11? South0.210.882.31
    (19−21.48)221.48≈0.29; χ2≈19.27; df=(3−1)(3−1)=4; P=χ²cdf (19.27,1000,4)≈0.0007
  3. Separate random samples were taken from library card holders in Denver: card holders with children at home and card holders without children at home. Each card holder was classified by age group. The table shows the counts. Find the expected counts, χ², the degrees of freedom and the P-value.
    18–3435–5455+ Kids664044 No kids231938
    Expected counts: Kids, 18–34: 58.04; Kids, 35–54: 38.48; Kids, 55+: 53.48; No kids, 18–34: 30.96; No kids, 35–54: 20.52; No kids, 55+: 28.52. χ2≈8.14; df=(2−1)(3−1)=2; P=χ²cdf (8.14,1000,2)≈0.0171
  1. Write each conclusion in context, or interpret the P-value

    Separate random samples were taken from trees in a large national forest: pine trees, oak trees and maple trees. Each tree was classified by health. A chi-square test for homogeneity gives χ2=5.82 and P=0.2130. Interpret the P-value in context.Assuming the distribution of health is the same for pine trees, oak trees and maple trees, there is a 0.2130 probability of getting a χ² statistic of 5.82 or larger by chance in random sampling.
  2. A random sample of 460 voters in Pennsylvania was classified by party and by type of community. A chi-square test for independence gives χ2=15.48, df=4 and P=0.0038. Write a conclusion in context at α=0.05.Because P=0.0038<α=0.05, reject H0. There is convincing evidence of an association between party and type of community among voters in Pennsylvania.
  3. Separate random samples were taken from baseball fans in the U.S.: fans who buy team gear and fans who do not buy team gear. Each fan was classified by age group. A chi-square test for homogeneity gives χ2=6.73, df=2 and P=0.0346. Write a conclusion in context at α=0.01.Because P=0.0346>α=0.01, fail to reject H0. There is not convincing evidence that the distribution of age group differs between fans who buy team gear and fans who do not buy team gear.

Free worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep

How to do these

A random sample of 300 adults has 120 aged 18 to 34, and 95 of the 300 get their news mostly online. Find the expected count of adults aged 18 to 34 who get their news mostly online, if age and news source are independent.

  1. Expected count = (row total)(column total)/(table total).
  2. (120)(95)/300.

The answer is 38.00.

Where students go wrong

Using df = (number of cells) − 1, or counting the Total row and column. For a table of counts with r rows and c columns, df = (r − 1)(c − 1).

Also called chi-square test for independence, chi-square test for homogeneity, chi-square two-way table, expected counts or chi-square test of association.

What you can put on this worksheet

Chi-square tests: expected counts (easy); hypotheses in context (medium); the whole test (hard)
Separate random samples were taken from smartphone owners in the U.S.: owners who have cracked a screen and owners who have never cracked a screen. Each owner was classified by phone age. The table shows the counts. Find the expected count for every cell if H0 is true.
< 1 yr1–3 yr> 3 yrTotal Cracked622731120 Never24202670 Total864757190
→ Cracked, < 1 yr: 54.32; Cracked, 1–3 yr: 29.68; Cracked, > 3 yr: 36.00; Never, < 1 yr: 31.68; Never, 1–3 yr: 17.32; Never, > 3 yr: 21.00
Chi-square tests: df and contributions (easy); the conditions (medium); working back (hard)
In a chi-square test, one cell has an observed count of 43 and an expected count of 49.65. Find its contribution (O−E)2E to χ², to two decimal places. → (43−49.65)249.65≈0.89
Chi-square tests: P-values with χ²cdf (easy); χ² from a table (medium); reasoning about χ² (hard)
A chi-square test for independence on a table with 2 rows and 4 columns of counts gives χ2=14.58. Find the degrees of freedom and the P-value. → df=(2−1)(4−1)=3; P=χ²cdf (14.58,1000,3)≈0.0022
Chi-square tests: homogeneity or independence (easy); conclusions (medium); find the mistake (hard)
Separate random samples were taken from members of a large gym chain: morning members, midday members and evening members. Each member was classified by membership level. Which chi-square test fits: homogeneity or independence? → Homogeneity: there are three separate samples, one from each group, compared on one variable (membership level).

Questions about these worksheets

Yes. Every chi-square test for independence and homogeneity sheet is free to print and free to download as a PDF. There is no account to make, no email to hand over and no limit on how many you take.

Yes. The answer key prints on a second page, and you can choose whether it shows each question beside its answer or just the answers in a list.

Yes. Print straight from the page, or download the PDF and print that. The sheet is laid out for paper rather than squeezed off a screen, so there is room to work under each question, and the answer key comes out on its own page.

Statistics is usually taken around 11th or 12th grade, though schools vary and plenty of students meet it earlier or later. Pick the difficulty rather than the grade: the easy level suits a first lesson on it, the hard level suits review before a test.

Yes, as many as you like. The questions are built fresh each time rather than picked from a fixed set of files, so pressing Generate gives a new sheet. That is what you want for a second class, a retake, or two students sitting next to each other.

That is the closest comparison, and Kuta Software is good software. It is also paid software you install on a computer. These worksheets run in a browser tab for free, with no account and nothing to install. Like Kuta, the chi-square test for independence and homogeneity questions are generated when you ask for them rather than pulled from a fixed set of files, so two classes never get the same sheet, and the answer key comes with it.

Yes. There are three levels, and you can tick more than one for a sheet that mixes them, in which case the questions come out easiest first. The harder levels are not just larger numbers: they ask for something the easy ones do not.

You pick from 4: chi-square tests: expected counts (easy); hypotheses in context (medium); the whole test (hard), chi-square tests: df and contributions (easy); the conditions (medium); working back (hard), chi-square tests: p-values with χ²cdf (easy); χ² from a table (medium); reasoning about χ² (hard) and chi-square tests: homogeneity or independence (easy); conclusions (medium); find the mistake (hard). Tick as many as you want and set how many of each, or let it spread them evenly.

Using df = (number of cells) − 1, or counting the Total row and column. For a table of counts with r rows and c columns, df = (r − 1)(c − 1).