aımnova
DashboardMy LearningCrash CoursesStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Crash Courses
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2027

Aimnova

  • Features
  • Pricing
  • For Teachers
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aımnova

IB study, practice and feedback built around the real exam.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.d9e1c61

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesMath AITopic 4.11Contingency Tables and Chi-Squared
Back to Math AI Topics
4.11.18 min read

Contingency Tables and Chi-Squared

IB Mathematics: Applications and Interpretation · Unit 4

AI-powered feedback

Stop guessing — know where you lost marks

Get instant, examiner-style feedback on every answer. See exactly how to improve and what the markscheme expects.

Try It Free

Contents

  1. 1Contingency tables and association
  2. 2Expected frequencies
  3. 3Chi-squared statistic and decision
  4. 4Conditions and exam traps
  5. 5Hypotheses and degrees of freedom
  6. 6The decision: p-value or critical value
  7. 7The same steps for every test

Contingency tables and association

Big idea: A contingency table counts two categorical variables together.

We test whether variables are associated or independent.

Example: transport mode (bus/car/walk) vs punctuality (on-time/late).

ConceptMeaning
Observed frequencyActual count in each cell
Expected frequencyCount expected if variables are independent

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

How to find expected frequencies

Worked example

Table has row total 40, column total 30, grand total 120.

Find expected frequency for that cell.

Step by step

  1. Write formula first
  2. Substitute and simplify
  3. E=10

Final answer

Expected frequency is 10.

Mark-saving habit: Show formula before substitution to secure method credit.

Practice with exam-style questions

Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.

Try Practice FreeYour first topic is free to keep • No credit card required

Chi-squared test statistic

In the exam: the GDC gives χ² and p: Put the observed counts (never the totals) in a matrix and run the χ²-Test. It shows χ², the p-value and the degrees of freedom.

The formula below shows what χ² measures: how far the observed counts are from the expected ones. You do not need it to answer.
Decision idea: Large chi-squared means observed counts differ from expected counts more than random chance would suggest.

Worked example

One cell has O=14, E=10.

Contribution to chi-squared?

Step by step

  1. Use formula for one cell
  2. Compute numerator: 16
  3. Contribution = 1.6

Final answer

This cell contributes 1.6 to total chi-squared.

Conditions and exam traps

Before you run the test

  • Use the observed counts, not percentages and not the totals
  • Every expected frequency is more than 5 (in the exam it always is)
  • At most 4 rows or columns, so the degrees of freedom are small
  • The critical value is given in the question when you need it

Exam tips

  • State hypotheses in context.
  • Use counts, not percentages.
  • Write conclusion in words about association.

Feeling unprepared for exams?

Get a clear study plan, practice with real questions, and know exactly where you stand before exam day. No more guessing.

Get Exam Ready FreeYour first topic is free to keep • No credit card required
Two sentences, both variables: H₀: the two variables are INDEPENDENT (for example, favourite season is independent of age group).

H₁: the two variables are NOT independent.

Inside My Learning

Turn these notes into practice

Try each question, reveal a clear model answer, and learn how to build your response.

  • 1.Name both variables
  • 2.Say "independent"
  • 3.Asked for both?
Claim your free topic

See it drawn, step by step

In My Learning, handwritten diagrams build one step at a time. Play, pause and replay each explanation until it clicks. Create your free account to try it.

Claim your free topic
Degrees of freedom: df = (rows − 1) × (columns − 1), counting only the categories. The GDC also shows df after the test: use it as a check.
Small p, big χ²: reject H₀: Reject H₀ when p is SMALLER than the significance level, or when χ² is BIGGER than the critical value. Otherwise there is not enough evidence: do not reject H₀.

Animated graph

Watch the graph build step by step in study mode.

Claim your free topic

See it drawn, step by step

In My Learning, handwritten diagrams build one step at a time. Play, pause and replay each explanation until it clicks. Create your free account to try it.

Claim your free topic

Inside My Learning

Turn these notes into practice

Try each question, reveal a clear model answer, and learn how to build your response.

  • 1.Two levels, one p-value
  • 2."Which level did she use?"
  • 3."Is he correct?"
Claim your free topic

Exam-style question — meal and rating [6 marks]

A café asks 300 customers which meal they ordered and how they rated it.

MealGoodFairPoor
Breakfast453025
Lunch283537
Dinner172538

A χ² test for independence is carried out at the 5 % significance level. The critical value is 9.488.

(a) Write down the null hypothesis. [1]

(b) Write down the number of degrees of freedom. [1]

(c) Find the χ² statistic. [2]

(d) State the conclusion of the test in context. Give a reason. [2]

Step by step

  1. (a) Both variables, the word independent. H₀: the meal ordered and the rating are independent.
  2. (b) 3 rows and 3 columns of counts.
  3. (c) The 3 × 3 table into a matrix, χ²-Test on the GDC.
  4. (d) Comparison first, then the decision in context.

Final answer

(a) H₀: the meal ordered and the rating are independent. (b) 4 (c) χ² = 15.4 (d) 15.4 > 9.488 (or p = 0.00391 < 0.05), so reject H₀: there is sufficient evidence that the meal ordered and the rating are not independent.

Memorize terms 3x faster

Smart flashcards show you cards right before you forget them. Perfect for definitions and key concepts.

Try Flashcards FreeYour first topic is free to keep • No credit card required
One frame, four tests: Every test in this course has the same five steps: H₀ (nothing is going on), H₁, the significance level, one comparison, and a conclusion in context.
TestH₀ saysYou compare
χ² for independencethe two variables are independentp with the level, or χ² with the critical value
χ² goodness of fitthe data fit the stated distributionp with the level, or χ² with the critical value
t-testthe two population means are equalp with the level
Spearman's rₛthere is no monotonic relationshiprₛ with the critical value

Inside My Learning

Turn these notes into practice

Try each question, reveal a clear model answer, and learn how to build your response.

  • 1.A test with rₛ
  • 2.Bigger or smaller?
  • 3.The reason comes first
Claim your free topic

Exam-style question — sprint and long jump [3 marks]

A coach believes that athletes who are faster at the 100 m also jump further in the long jump. For eight athletes, Spearman's rank correlation coefficient between sprint speed and jump length is 0.738. He tests at the 5 % level, and the critical value is 0.643.

(a) Write down the alternative hypothesis. [1]

(b) State the conclusion of the test, giving a reason. [2]

Step by step

  1. (a) His belief is "more goes with more": one-sided and positive.
  2. (b) Compare rₛ with the critical value, then decide.

Final answer

(a) H₁: there is a positive monotonic relationship between sprint speed and jump length. (b) 0.738 > 0.643, so reject H₀: there is sufficient evidence of a positive monotonic relationship between sprint speed and jump length.

Try an IB Exam Question — Free AI Feedback

Test yourself on Contingency Tables and Chi-Squared. Write your answer and get instant AI feedback — just like a real IB examiner.

the formula relating degrees of freedom to the dimensions of a contingency table. [1 mark]

Related Math AI Topics

Continue learning with these related topics from the same unit:

4.1.1Population and Samples4.1.2Data Classification4.1.3Sampling Techniques4.1.4Data Reliability and Outliers
View all Math AI topics
Improve your exam techniqueCommand terms, paper structure, and mark-scheme tips for Math AI
Previous4.10.1Spearman Rank CorrelationNextChi-Squared Goodness of Fit4.11.2

73 exam-style questions ready for you

Students who practice on Aimnova improve their scores by 15% on average. Get instant feedback that shows exactly how to improve your answers.

Practice Now — FreeView All Math AI Topics