Skip to content
StackDecode
AI & ML Atlas
Machine LearningconceptAnimated walkthrough

Association Rule Learning

Finds items that often occur together, like "bread → butter".

The idea

Given many transactions, find rules A → B. Support is how often A and B appear together, confidence how often B appears when A does, and lift how much more often than chance. Algorithms such as Apriori, FP-Growth and Eclat differ in how they search for frequent itemsets.

confidence(A→B) = support(A∪B) / support(A)

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Find itemsets whose support passes a minimum.
  2. 2Generate rules from each frequent itemset.
  3. 3Keep rules with enough confidence.
  4. 4Rank by lift to find the surprising ones.

confidence(A→B) = support(A∪B) / support(A)

1/4

Step by step

  1. 1Find itemsets whose support passes a minimum.
  2. 2Generate rules from each frequent itemset.
  3. 3Keep rules with enough confidence.
  4. 4Rank by lift to find the surprising ones.

Where it is used

Basket analysis, cross-selling, web usage mining.

Watch out for

Produces many obvious or spurious rules; thresholds need care.

Related