Get startedGet started for free

Multiple antecedents and consequents

Market basket analysis revolves around the use of association rules, which are if-then statements about the relationship between two sets of items. The rule {coffee} \(\rightarrow\) {milk}, for instance, is read as "if coffee then milk," where coffee is the antecedent and milk is the consequent. Many rules have multiple antecedents and consequents. We will examine such rules in this exercise.

This exercise is part of the course

Market Basket Analysis in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise