Why is confidence alone insufficient to prove a genuine association between items?

Quick Overview

Asks why a high-confidence association rule does not by itself show that two items are genuinely related. Tests understanding of association rule metrics in market basket analysis, how to judge a rule against a baseline, and when a mined pattern supports a real effect.

Why is confidence alone insufficient to prove a genuine association between items?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

In association rule mining (market basket analysis), a rule $A \Rightarrow B$ is usually reported with its support and its confidence $P(B \mid A)$. Why is confidence alone insufficient to prove a genuine association between items? ```hint Think about independence Work out what the confidence of $A \Rightarrow B$ would be if A and B were completely independent. ``` ```hint Rules from few baskets A mining run scores thousands of candidate rules, many backed by only a few transactions. Ask what that does to any single score. ``` ### What a Strong Answer Covers - Why confidence can be high for a rule where A has no effect on B, shown with a small numeric example - At least one measure that compares the rule against a baseline, with how to read its values - How transactions containing neither item affect some measures, and which measures are immune to them - Statistical significance for low-support rules and the multiple-comparisons problem - The gap between an association found in the data and a causal effect ### Follow-up Questions - A rule has lift 3 but is supported by only 12 transactions. How would you decide whether to trust it? - Why do lift and the chi-square statistic change when you add many baskets that contain neither item, and when does that matter? - How would you test whether placing bread next to milk actually raises milk sales? - When you mine millions of candidate rules, how do you keep the number of false discoveries under control?

Overview: Asks why a high-confidence association rule does not by itself show that two items are genuinely related. Tests understanding of association rule metrics in market basket analysis, how to judge a rule against a baseline, and when a mined pattern supports a real effect.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

In association rule mining (market basket analysis), a rule A⇒BA \Rightarrow B is usually reported with its support and its confidence P(B∣A)P(B \mid A). Why is confidence alone insufficient to prove a genuine association between items?

What a Strong Answer Covers Guidance

  • Why confidence can be high for a rule where A has no effect on B, shown with a small numeric example
  • At least one measure that compares the rule against a baseline, with how to read its values
  • How transactions containing neither item affect some measures, and which measures are immune to them
  • Statistical significance for low-support rules and the multiple-comparisons problem
  • The gap between an association found in the data and a causal effect

Follow-up Questions Guidance

  • A rule has lift 3 but is supported by only 12 transactions. How would you decide whether to trust it?
  • Why do lift and the chi-square statistic change when you add many baskets that contain neither item, and when does that matter?
  • How would you test whether placing bread next to milk actually raises milk sales?
  • When you mine millions of candidate rules, how do you keep the number of false discoveries under control?