Basket Analysis
Learn what basket analysis is, how it uncovers real product relationships using support, confidence, and lift, and how it informs bundling and cross-sell decisi...
Product affinity measures which products tend to be purchased together, in sequence, or by the same type of customer, revealing hidden relationships between items in a catalog. It’s used to power cross-sell, bundling, and recommendation strategies based on actual purchase patterns rather than guesswork.
Product affinity measures which products tend to be purchased together, in sequence, or by the same type of customer, revealing hidden relationships between items in a catalog. It's used to power cross-sell, bundling, and recommendation strategies based on actual purchase patterns rather than guesswork.
Product affinity describes the measurable relationship between products based on how customers actually buy them — which items appear in the same order, which item a customer buys next after a first purchase, and which products tend to be favored by the same customer segments. Unlike merchandising decisions based on intuition (“these look like they’d go together”), product affinity is derived from real transaction data, which means it frequently surfaces pairings a merchandiser wouldn’t have guessed — a phone case and a screen protector might be the obvious pairing, but affinity data might reveal that a surprising share of phone-case buyers also purchase a specific brand of coffee three weeks later. Product affinity underpins most cross-sell recommendations, “frequently bought together” widgets, bundle design, and post-purchase email flows in modern e-commerce.
Product affinity is typically measured using three related statistics borrowed from market basket analysis:
A worked example: a store sells 10,000 orders in a quarter. Product A (a yoga mat) appears in 800 of them. Product B (a mat strap) appears in 300 orders total, and 150 of those orders also contain the yoga mat.
A lift of 6.25 is a strong signal: customers who buy the yoga mat are over six times more likely than average to also buy the strap, making it an obvious cross-sell candidate on the mat’s product page and in post-purchase email.
Product affinity turns cross-selling from a guessing game into a data-backed strategy. Instead of manually deciding which products to feature in “you might also like” sections, a merchant can let actual purchase patterns drive those recommendations — which typically produces higher attach rates than intuition-based merchandising, because the pairings reflect genuine customer behavior rather than assumed logic.
Affinity data also improves bundle design. A bundle built from two high-affinity products (like the yoga mat and strap above) converts differently than one built from two products that merely share a category but rarely co-occur in real orders. And because affinity can be layered with customer value data, merchants can prioritize promoting the pairings that come from their most valuable customer segments, rather than treating every high-lift pair equally.
| Concept | What It Measures | Primary Use |
|---|---|---|
| Product Affinity | Relationship between products based on purchase behavior | Cross-sell, bundling, recommendations |
| Market Basket Analysis | Co-occurrence within a single transaction | Statistical basis for affinity |
| Customer Segmentation | Groups of customers by shared traits | Targeting which customers see which offers |
| Assortment Optimization | Which products to stock or discontinue | Catalog and inventory decisions |
| Personalized Recommendations | Individual-level product suggestions | On-site and email personalization |
As AI shopping assistants like ChatGPT Shopping and Perplexity Shopping increasingly answer questions like “what goes well with X” or generate multi-product shopping lists on a customer’s behalf, having clean, well-structured affinity data becomes more valuable — it’s effectively the same signal these assistants are trying to infer from product descriptions and reviews, except a merchant already has it from first-party order history. Feeding accurate “frequently bought together” and bundle data into product feeds gives AI shopping tools a stronger basis for recommending complementary items from your own catalog rather than substituting a competitor’s product.
AmICited’s eshop_get_product_affinity tool is purpose-built around this concept — for any given product, it surfaces the lifetime value of the customers who buy it and the specific products they tend to buy alongside or after it, giving merchants a direct, data-backed answer to “what should we cross-sell here” without building the underlying basket analysis themselves.
Confusing category similarity with real affinity. Two products in the same category don’t necessarily sell together — in fact, competing products within a category often show negative affinity, since a customer buys one or the other, not both. Affinity should be measured on actual co-purchase data, not assumed from catalog structure.
Relying on too little order history. A newly launched product with only a handful of orders can show misleadingly strong or weak affinity purely from small-sample noise. Category-level affinity is a more reliable fallback until enough SKU-level data accumulates.
Ignoring lift in favor of raw co-occurrence counts. Two bestsellers will appear together often simply because they’re both bought frequently, not because there’s a meaningful relationship. Lift corrects for this by comparing against the expected co-occurrence if the products were purchased independently.
Never updating affinity models after catalog changes. Discontinued products, new variants, and seasonal items shift the affinity landscape, and a stale model will keep recommending pairings that no longer make sense or missing new ones that have emerged.
Applying affinity uniformly across all customer segments. A pairing that’s strong among first-time buyers might not hold for repeat, high-value customers, who often have different purchase patterns. Segment-aware affinity produces more relevant recommendations than a single blended model.
Start tracking how AI chatbots mention your brand across ChatGPT, Perplexity, and other platforms. Get actionable insights to improve your AI presence.
Learn what basket analysis is, how it uncovers real product relationships using support, confidence, and lift, and how it informs bundling and cross-sell decisi...
Learn what market basket analysis is, how association rules reveal which products sell together, and how e-commerce brands use it to boost bundling and AOV.
Learn what an anchor product is, how it differs from a simple best-seller, and how identifying yours can improve cross-sell and bundle strategy.
Cookie Consent
We use cookies to enhance your browsing experience and analyze our traffic. See our privacy policy.