Teaching · For Teachers · Comparing two groups

Two yes-or-no questions,
one table, one answer.

Count students by two yes-or-no questions, such as turned in the homework and passed the quiz. Type the four counts. The page fills in the row percentages, works out the counts you would expect if the two questions had nothing to do with each other, and tests whether the gap between them is bigger than chance usually makes.

$9.99a month · everything on Caveat

Cancel anytime. How plans and refunds work

Included with Caveat Plus ($9.99 a month or $99.90 a year), Caveat Family (up to 5 people, $14.99 a month) and Caveat Teams (25 people, $199 a month). Anything you bought before stays yours.

The cross-tabulation table builder

The worked example is 80 students: 41 turned in homework and passed, 9 turned it in and did not pass, 14 did not turn it in and passed, 16 did neither. Nothing you type leaves this browser.

Loading the calculator. If nothing appears, turn on JavaScript.

What you get

Teaching · For TeachersIncluded with Caveat Plus

What you finish with
A cross-tabulation of two yes-or-no questions: the row percentages, the counts expected by chance, a chi-square value with its p-value, the phi coefficient, the risk ratio, a warning when expected counts are too small, and a table showing the same pattern in a larger group.
Who it is for
Teachers and school teams who compare two groups of students, such as who turned in work and who passed, and want to know whether the gap is more than chance.
Format
Browser calculator for a phone, tablet or computer, by touch or keyboard. Prints a summary; downloads a spreadsheet (.csv); export and import a file.
Access
Included with Caveat Plus ($9.99 a month) and Caveat Teams. It opens once you are signed in, on every device. Anything you bought before stays yours. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The For Teachers space in Caveat Teaching.
Support
Questions, a correction or a request: team@caveatacademic.com.

How to use it

  1. Name the table.
  2. Count the students in each of the four cells.
  3. Read the row percentages and the gap between them.
  4. Read chi-square, the chance of a gap this big and the warning about small counts.
  5. Try the same pattern in a bigger group in the table.

Build the table

How the figures are worked out

Row percentages, expected counts and chi-square with one degree of freedom.

The worked example: from four counts to a testPassed rates82% v 47%turned in or notExpected34.4first cell by chanceChi-square10.9one degreeChance0.001if no linkThe worked example: from four counts to a testPassed rates82% v 47%turned in or notExpected34.4first cell by chanceChi-square10.9one degreeChance0.001if no link
The cross-difference of the counts, set against the totals, gives chi-square.

Chi-square asks whether the groups differ by more than luck

The test compares the counts you found with the counts you would expect if the two questions were unrelated. A large difference gives a large chi-square and a small p-value. It says nothing about which way the cause runs: students who finish homework may also be students who sleep more or have a quiet place to work.

Small cells need a different test

The chi-square approximation works well when every expected count is at least 5. With fewer students in a cell, the p-value can be off, and an exact test such as Fisher's is the usual choice. The page warns you when that applies.

Sources

  1. Agresti, A. (2013). Categorical Data Analysis (3rd ed.). Wiley: the chi-square test of independence and the phi coefficient for a two-by-two table.
  2. NIST/SEMATECH. e-Handbook of Statistical Methods, Chi-square test. itl.nist.gov/div898/handbook.
  3. Cochran, W. G. (1954). Some methods for strengthening the common chi-square tests. Biometrics, 10(4), 417-451: the expected-count guideline.
  4. Your own gradebook counts.

Arithmetic on the four counts you typed; it does not show that one thing causes the other. The worked example is made up. Your entries stay in this browser. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.