internalsGet Pro

Module 08 · Lesson 6 of 9Pro

Association rules: what gets bought together

Level
Intermediate
Topic
Unsupervised learning
Reading time
17 min

When you finish this page you can

  1. Compute support, confidence and lift for a pair of products from order counts, and explain why confidence alone favours popular products.
  2. Explain how pruning by support keeps the counting small across 50,000 products, and where the number of combinations still explodes.
  3. Choose a minimum count, lift and confidence for an “often bought with” strip and for a bundle offer.
  4. Judge when rules are enough and when a learned recommender should take over.
  1. Probability: putting numbers on uncertainty13 min
  2. pandas for preparing ML data14 min
  3. Clustering: finding groups without labels14 min

The phone page that suggests milk

is our example online store. Joseph leads its growth team. He wants an “Often bought with” strip on every product page, and a few bundle offers for the festival sale. The prediction this lesson works with: given one product, which others does a shopper tend to buy in the same order?

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan