aimnova.
DashboardMy LearningPaper MasteryStudy 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
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

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

  • What goes with what
  • The three measures
  • Reading a rule honestly
  • Exam-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.

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 mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

IB Exam Questions on Association rules

Practice with IB-style questions filtered to Topic 4.3.5. Get instant AI feedback on every answer.

Practice Topic 4.3.5 QuestionsBrowse All Computer Science HL Topics

How Association rules Appears in IB Exams

Examiners use specific command terms when asking about this topic. Here's what to expect:

Define

Give the precise meaning of key terms related to Association rules.

AO1
Describe

Give a detailed account of processes or features in Association rules.

AO2
Explain

Give reasons WHY — cause and effect within Association rules.

AO3
Evaluate

Weigh strengths AND limitations of approaches in Association rules.

AO3
Discuss

Present arguments FOR and AGAINST with a balanced conclusion.

AO3

See the full IB Command Terms guide →

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

4.1.1Types of machine learning
4.1.2Hardware for machine learning
4.2.1Data cleaning
4.2.2Feature selection
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
4.3.4Clustering
Next
Reinforcement learning4.3.6

Don’t just read about Association rules — practice it

Apply what you learned with real exam-style questions. AI feedback shows exactly how to improve your answers.

Practice NowView All Computer Science HL Topics