Open the editor

Maths · University

Chi-Squared Test Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

The chi-squared test checks whether observed counts fit what a hypothesis predicts. Students roll a die many times, compare the counts with the expected ones, see where χ² falls on its distribution and test whether a die is fair.

The slides, one by one

1 The chi-squared test

Do the counts fit the theory?

Is this die fair, or just lucky?

2 Compare what you saw with what you expected

\chi^2 = \sum \dfrac{(O - E)^2}{E}

60 rolls: expect 10 of each face

3 A large χ² is hard to explain by luck

5 degrees of freedom: reject above 11.07

Live graph: y = x¹.5·exp(-x/2)/7.52

Move the point along the χ² curve

4 Testing a die

A die is rolled 60 times: 8, 12, 9, 11, 6 and 14 for faces 1 to 6. Test at 5% whether it is fair.

→ Expected 10 each; add (O − E)²/E; df = 6 − 1 = 5

E = 60 / 6 = 10
\sum (O - E)^2 = 4 + 4 + 1 + 1 + 16 + 16 = 42
\chi^2 = 42 / 10 = 4.2
4.2 < 11.07\ (\text{df} = 5)

No evidence at 5% that the die is unfair

5 Quick check

A 2 × 3 contingency table has how many degrees of freedom?

  • 2
  • 6
  • 5
  • 3
Show the answer

2

df = (rows − 1) × (columns − 1) = 1 × 2 = 2.

6 What to remember

\chi^2 = \sum (O - E)^2 / E

Goodness of fit: df = categories − 1

Tables: df = (r − 1)(c − 1)

\textsf{Reject }H_0\textsf{ if }\chi^2\textsf{ > critical value}

Challenge: Why should each expected count be at least 5?

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

How do you calculate the chi-squared statistic?

For each category take (observed − expected)² ÷ expected and add them up. Compare the total with the critical value for your degrees of freedom: a die rolled 60 times has 5 degrees of freedom and a 5% critical value of 11.07.

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.