Market Basket Analysis Guide: Reading Support, Confidence, and Lift to Find Products Bought Together
How to measure which products are bought together using support, confidence, and lift, and why lift separates real associations from popular items.
The short answer
Support is the share of baskets with both items, confidence is the share of baskets with the first item that also have the second, and lift is confidence divided by the second item's overall share; a lift above 1 signals a real association, while a high confidence with a lift below 1 is just a popular item.
Key takeaways
- Primary measure: Lift of Item Pairs and Incremental Baskets from Cross-Sell.
- Healthy: Rules ranked by lift with minimum support, tested in an experiment, with incremental margin measured.
- Watch closely: Rules ranked by confidence alone, with promotions placed where the item pairs look strong.
- Act now: Popular items recommended with everything, because they appear in many baskets.
- Rule A to C has twice the confidence of A to B, 50% against 25%, but a lift of 0.83 against 2.5, so lift, not confidence, shows which pair is truly associated.
How to measure which products are bought together using support, confidence, and lift, and why lift separates real associations from popular items. Key terms used below: average order value, correlation, customer segmentation, incrementality. Related guides: Bundle Pricing Guide: When Selling Products Together Beats Pricing Them Separately and Cannibalization Guide: Net Incremental Margin of a New Product and the Break-Even Cannibalization Rate.
What decision this guide supports
Retailers and online stores record what customers buy together in a single basket. Market basket analysis looks for items that appear together more often than chance would predict, which can guide placement, bundles, recommendations, and promotions.
Three measures describe a rule such as buyers of item A also buy item B. Support is how common the combination is, confidence is how often B appears among baskets with A, and lift compares that confidence with how often B appears overall.
Lift matters because confidence can be misleading. If B is in most baskets anyway, almost any item will have high confidence for it, and promoting it adds nothing.
Key terms
- Support
- The share of all baskets that contain a given item or pair.
- Confidence
- The share of baskets with one item that also contain another.
- Lift
- How much more often two items appear together than expected if they were independent.
- Basket
- The set of items bought in one transaction.
How to calculate it
Support of a pair equals baskets containing both items divided by all baskets. Confidence of the rule A to B equals baskets containing both divided by baskets containing A. Lift equals confidence of the rule divided by the share of all baskets containing B, which equals support of the pair divided by the product of the two item supports. A lift of one means the items are independent.
Benchmark matrix and working thresholds
The table summarizes the main options or components and what to watch in each.
| Rule | Support | Confidence | Lift | Reading |
|---|---|---|---|---|
| A to B | 5.0% | 25% | 2.5 | Strong association |
| B to A | 5.0% | 50% | 2.5 | Same association, other direction |
| A to C | 10.0% | 50% | 0.83 | Popular item, no association |
Working thresholds
Treat these as starting heuristics to calibrate against your own data, not universal standards.
- Healthy: Rules ranked by lift with minimum support, tested in an experiment, with incremental margin measured.
- Watch closely: Rules ranked by confidence alone, with promotions placed where the item pairs look strong.
- Act now: Popular items recommended with everything, because they appear in many baskets.
Worked scenario
The figures below are an illustrative composite, not a named company or an audited case. Replace them with your own data.
Illustrative composite: a store has 1,000 baskets. Item A appears in 200 baskets, item B in 100, and 50 baskets contain both. Support of the pair is 50 divided by 1,000, or 5%. Confidence of A to B is 50 divided by 200, or 25%, and of B to A is 50 divided by 100, or 50%. Item B is in 10% of all baskets, so lift is 25% divided by 10%, or 2.5. If A and B were independent, only 1,000 times 20% times 10%, or 20 baskets, would contain both, but 50 do. Now item C is a staple in 600 of the 1,000 baskets, and 100 baskets contain both A and C. Confidence of A to C is 100 divided by 200, or 50%, which looks higher than the 25% for A to B, but C is in 60% of all baskets, so lift is 0.5 divided by 0.6, or 0.83. Buyers of A are actually slightly less likely to buy C than average. Ranking by confidence would suggest promoting C to A buyers, while ranking by lift points to B. A placement or recommendation based on the A to B rule should be tested, since association does not prove that a promotion will cause extra purchases.
What the scenario shows
Rule A to C has twice the confidence of A to B, 50% against 25%, but a lift of 0.83 against 2.5, so lift, not confidence, shows which pair is truly associated.
How to read the results
- If lift is well above 1: The items are associated, and a cross-sell test is worth running.
- If lift is near 1: The items appear together by chance, and a promotion adds little.
- If lift is below 1: The items may substitute for each other or serve different needs.
Common failure modes
- Ranking rules by confidence: Popular items appear in many baskets and look associated with everything.
- Ignoring minimum support: Rare pairs can have extreme lift from only a few baskets.
- Treating association as causation: Items may be bought together because of a common need, and a promotion may not lead to extra sales.
- Analyzing all baskets together: Patterns differ by store, season, and customer segment, and may be hidden in pooled data.
Putting it into practice
- Prepare the data: Define a basket, clean the product hierarchy, and choose the level of product detail.
- Calculate and filter: Compute support, confidence, and lift, apply a minimum support, and rank by lift.
- Test the actions: Run a controlled test of placement, bundle, or recommendation, and measure incremental baskets and margin.
Sensitivity and limits
- Minimum support: Test thresholds of 0.5%, 1%, and 2% and see how many rules remain.
- Product level: Compare rules at the item level and at the category level.
- Segment: Check whether lift differs between customer segments.
Basket analysis describes past co-purchases and cannot show why they happen or what a promotion will do. Results depend on how baskets and products are defined, and small counts make lift unstable.
Where this fits in a wider decision
Use basket analysis to generate hypotheses for placement, bundles, and recommendations, and use experiments to confirm them. Measure incremental margin, not only the number of baskets with both items.
Your checklist
- Confirm you have avoided this trap: Ranking rules by confidence.
- Confirm you have avoided this trap: Ignoring minimum support.
- Confirm you have avoided this trap: Treating association as causation.
- Confirm you have avoided this trap: Analyzing all baskets together.
Steps to follow
Prepare the data
Define a basket, clean the product hierarchy, and choose the level of product detail.
Calculate and filter
Compute support, confidence, and lift, apply a minimum support, and rank by lift.
Test the actions
Run a controlled test of placement, bundle, or recommendation, and measure incremental baskets and margin.
Common questions
What is lift in market basket analysis?
It is the confidence of a rule divided by the share of baskets containing the second item, and a value above 1 indicates a real association.
Why is confidence not enough?
Because an item in most baskets will have high confidence with almost anything, and lift corrects for that.
Related topics
- market basket analysis
- support confidence lift
- association rules example
- cross sell analysis
- products bought together
- lift in association rules
- basket analysis retail
Sources & further reading
- U.S. Census Bureau Quarterly Retail E-Commerce Sales
U.S. Census Bureau
Public retail and e-commerce data for context on purchasing patterns.
- ESOMAR Codes and Guidelines
ESOMAR
Professional standards for the use of consumer data in research.
- AAPOR Best Practices for Survey Research
American Association for Public Opinion Research
Professional guidance on sampling, nonresponse, and transparent reporting.