Definition

An association rule X -> Y describes co-occurrence: transactions containing X may also contain Y. It does not describe logical implication or causation.

Intuition

Support asks how common the combination is overall. Confidence asks how often Y appears among transactions containing X.

Study formulas and worked example

For N transactions:

support(X -> Y) = count(X and Y) / N
confidence(X -> Y) = count(X and Y) / count(X)

Confidence is undefined if no transaction contains X.

In the five displayed baskets on PDF page 35, three contain diapers and two contain both diapers and beer. Therefore support is 2/5 = 40%, and confidence is 2/3 ≈ 66.7%.

The slide’s 2% support / 30% confidence describe its larger illustrative dataset. The displayed table ends with an ellipsis; those figures cannot be derived from only the five rows.

Important rules

  • Support uses all transactions as its denominator.
  • Confidence is directional: reversing the rule can change it.
  • High confidence alone does not show a useful relationship; the consequent may already be common.

Common mistakes

  • Dividing both measures by the same count.
  • Reading the arrow as a causal effect.
  • Applying the larger example’s percentages to the five-row exercise.

Source

Elena Baralis, The Big Data Challenge, PDF pages 35-36. Context: Lecture 01 - The Big Data Challenge. Formula names, calculation, and cautions are added study explanation.

Exam practice and transfer

Worked scenario

A university analytics team is investigating association rules - support and confidence. It must state the analytical question, identify the relevant observations and explain what evidence would make the result useful rather than merely plausible. Use the concept’s definition to justify each design choice.

Concrete example

In five baskets, if Milk and Diapers appear together in three, their support is 3/5. If Milk appears in four baskets, Milk -> Diapers has confidence 3/4. Reversing the rule changes confidence because the antecedent count changes.

Retrieval questions

  • Explain Association Rules - Support and Confidence in your own words, then identify the problem it prevents in a real data project.
  • Give a small example that would violate the concept, and explain how the violation would distort an analysis or query.
  • Compare this concept with the nearest related idea in the note and state when each should be used.

These prompts are added study practice. They require explanation and transfer rather than copying a definition.