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 2026

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.c1e448f

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

NotesComputer Science HLTopic 4.3Association rules
Back to Computer Science HL Topics
4.3.54 min read

Association rules (Computer Science HL)

IB Computer Science · Unit 4

Your first topic is free to keep

Know exactly what to write for full marks

Practice with exam questions and get AI feedback that shows you the perfect answer — what examiners want to see.

Start Free

Contents

  1. 1What goes with what
  2. 2The three measures
  3. 3Reading a rule honestly
  4. 4Exam-style question
The big idea: Association rule learning finds things that occur together — unsupervised, with no labels and nothing being predicted.

Written as {bread, butter} → {jam}: baskets containing the first tend to contain the second.

Where it is used

  • Market basket analysis — what is bought together, and so what to place together
  • Recommendations — people who took this also took that
  • Medical — symptoms and conditions that co-occur
  • Web — pages visited in the same session

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
MeasureQuestion it answersFormula in words
SupportHow common is this combination?Baskets with both ÷ all baskets
ConfidenceWhen A is bought, how often is B?Baskets with both ÷ baskets with A
LiftIs this more than chance?Confidence ÷ how often B occurs anyway
Lift is the one that matters: Lift > 1 — they occur together more than chance would give. A real association.

Lift = 1 — independent. The rule tells you nothing.

Lift < 1 — they occur together less than chance. Buying one makes the other less likely.
High confidence can still be worthless: "Customers who buy fish also buy bags" might have 80% confidence — but if 90% of all customers buy bags, the lift is 0.89 and fish buyers are actually less likely than average.

Confidence alone rewards whatever is popular. Always check lift.

Never wonder what to study next

Get a personalized daily plan based on your exam date, progress, and weak areas. We'll tell you exactly what to review each day.

Try Free Study PlanYour first topic is free to keep • No credit card required

It is not causation

  • The rule says they co-occur, nothing more
  • Nappies and beer is the famous example — neither causes the other
  • A third factor usually explains it

Direction matters

  • A → B is not the same rule as B → A
  • Support is the same; confidence differs
  • Everyone who buys caviar buys bread; almost nobody who buys bread buys caviar

Volume is the problem

  • A few thousand products give millions of possible rules
  • Most are coincidences in the data
  • Minimum support and lift thresholds exist to cut that down
Say which measure you used: An answer that computes confidence and stops is half an answer. Compute it, then ask whether lift beats 1 — that is what separates a finding from a restatement of what was already popular.

Interpreting a rule: crime analysis

1

The data

200 records of city areas per month: 50 had vandalism, 80 had theft, 40 had both.

2

Support of {vandalism, theft}

40 ÷ 200 = 0.20: both happen in a fifth of records.

3

Confidence of {vandalism} → {theft}

40 ÷ 50 = 0.80: where there is vandalism, theft follows 80% of the time.

4

Lift

0.80 ÷ (80 ÷ 200) = 2.0: twice as likely as chance, so police can plan patrols for theft where vandalism rises (predictive policing and resource allocation).

Lift above 1: plan for both together, without claiming one causes the other.

How this is tested — you must compute the measures from a small table and interpret lift honestly. It comes up two ways:

Paper 1 Section A

  • Describe association rule learning, 3-4 marks
  • Calculate support or confidence
  • State what a rule means

Paper 1 Section B — case study

  • Judge whether a rule is useful
  • Explain why confidence alone misleads
The classic trap: Reading a rule as cause. "Buying nappies causes beer purchases" is not what {nappies} → {beer} says — it says only that they appear in the same baskets more often than chance.
IB-style questionDetermine[5 marks]

Of 1,000 baskets, 200 contain coffee, 400 contain milk, and 150 contain both. Determine the support, confidence and lift of {coffee} → {milk}, and state whether the rule is useful.

Model answer plan

See the answer broken into clear points, with guidance on how each point earns marks.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Association rules. Write your answer and get instant AI feedback — just like a real IB examiner.

The rule {sun cream} → {sunglasses} has a lift of 1.8 in a chemist's sales data. what this tells the chemist. [2 marks]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

4.1.1Types of machine learning4.1.2Hardware for machine learning4.2.1Data cleaning4.2.2Feature selection
View all Computer Science HL topics
Improve your exam techniqueCommand terms, paper structure, and mark-scheme tips for Computer Science HL
Previous4.3.4ClusteringNextReinforcement learning4.3.6

3 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 Computer Science HL Topics