Data Mining & Visualization
Online B.Com · Sem 5
0% complete
0/5 lessons
Lesson 4 of 5Analytics
Association Rules: Support, Confidence and Lift
Data Mining & Visualization
About the video
Lec - 18 : Market Basket Analysis (MBA) | Data Mining
Gate Smashers
Study notes
Association rules find items that frequently occur together in transactions, written as X -> Y (if X then Y). Support, confidence and lift measure how common, how reliable and how interesting a rule is.
Association rules
- A rule has the form X -> Y: X is the antecedent (left-hand side), Y is the consequent (right-hand side).
- Typical use is market basket analysis, e.g. {bread} -> {butter}.
- A rule shows co-occurrence, not causation.
Support and confidence
- Support(X) = transactions containing X / total transactions.
- Support(X -> Y) = P(X and Y) = transactions containing both / total transactions.
- Confidence(X -> Y) = Support(X and Y) / Support(X) = P(Y | X).
- Confidence is directional: Conf(X -> Y) usually differs from Conf(Y -> X).
Lift
- Lift(X -> Y) = Confidence(X -> Y) / Support(Y) = P(X and Y) / (P(X) x P(Y)).
- Lift > 1 means positive association: X makes Y more likely.
- Lift = 1 means X and Y are independent.
- Lift < 1 means negative association: X makes Y less likely.
- Lift is symmetric: Lift(X -> Y) = Lift(Y -> X).
Mining rules
- Set a minimum support and a minimum confidence threshold.
- The Apriori algorithm finds frequent itemsets using one fact: every subset of a frequent itemset must itself be frequent.
- Rules are then generated from the frequent itemsets and ranked, often by lift.
Key terms
- Support
- The share of all transactions that contain an itemset.
- Confidence
- The conditional probability of the consequent given the antecedent.
- Lift
- Confidence divided by the consequent's support; it measures association beyond chance.
- Antecedent
- The 'if' part of a rule.
- Consequent
- The 'then' part of a rule.
- Apriori
- An algorithm that finds frequent itemsets by pruning any itemset with an infrequent subset.
Takeaways
- Support = P(X and Y); Confidence = P(Y|X); Lift = Confidence / P(Y).
- A rule is only useful if lift > 1; high confidence alone can mislead when Y is already common.
- Association does not imply causation.
Contribute
Was this lesson helpful?
We read every rating and fix the weakest lessons first.