What it does

Apriori finds items that often appear together.

Association Rule: If X, then Y • Market Basket: Studying what people buy

How it works

  • Count how often each item appears.
  • Count which pairs appear together.
  • Keep the pairs that happen often enough.

Uses & Applications

  • Amazon can recommend batteries when people buy a toy that needs batteries.
  • A grocery store can place bread and butter near each other.
  • A library can suggest books often borrowed together.
In short

It finds basket patterns, like items people buy together.

Try it yourself

Find foods people buy together

Look through six pretend shopping baskets for items that often appear together.

Your turn

Change one setting at a time. Reset example puts everything back.

Count an association rule

Step 1
Why this happens

Look closer at the numbers
Numbers used in this example