Market Basket Analysis (Association Rules)
Market basket analysis finds sets of items that are frequently bought together and turns them into if-then association rules scored by support, confidence and lift.
장바구니 분석은 함께 자주 구매되는 품목 조합을 찾아 지지도·신뢰도·향상도로 평가한 '이것을 사면 저것도 산다' 형태의 연관 규칙으로 바꾸는 분석입니다.
I have point-of-sale data with a transaction id and an item on each row; which products are bought together?
거래 번호와 품목이 한 행씩 있는 판매 자료가 있는데, 어떤 상품들이 함께 팔리나요?
Market basket analysis first finds every itemset whose support, the share of transactions containing it, reaches a minimum threshold, and then forms rules such as {A, B} → {C}. Each rule is judged by its confidence, the share of transactions with A and B that also contain C, and by its lift, which compares that confidence with the overall frequency of C.
When to use Market Basket Analysis (Association Rules)
- You have transaction-level data with one row per transaction and item, or a 0/1 item matrix.
- You want to find product combinations for cross-selling, store layout or bundle design.
- You want an exploratory description of co-occurrence rather than a predictive model.
When to use something else
- You want to know whether one product causes extra purchases of another; run an experiment or an uplift analysis instead.
- Each customer has only one item; use a contingency table or a correlation analysis of customer attributes instead.
Assumptions and requirements
- Each transaction is one basket; repeated items in a basket count once.
- Support, confidence and lift thresholds are chosen before looking at the rules.
- Enough transactions exist for the rare itemsets of interest to reach the support threshold.
What the analysis reports
- Number of transactions, items and frequent itemsets by size
- Rule table with support, confidence, lift, leverage, conviction and count, sorted by lift
- Top rule and its measures
- Bar chart of the rules with the highest lift
How to report it
Across [value] transactions, [value] frequent itemsets (support ≥ [value]) yielded [value] rules with confidence ≥ [value]; the strongest was {[value]} → {[value]} (support = [value], confidence = [value], lift = [value]).
Related methods
- Chi-Square Test of Independence
- Customer Segmentation
- Network Analysis
How this method is validated
이 방법의 검증 근거
- Published value. A test reproduces published reference values.
출판값. 출판된 참조값 재현 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Market Basket Analysis (Association Rules) on Quorant
- Data you need
- a table (CSV or Excel) with a unit (entity) ID and a grouping variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Reproduces published reference values
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.