Suppose a supermarket wishes to determine if customers buy eggs and cheese on one visit, and then eggs, cheese, and milk on the next visit.
SPAM could scan the supermarket’s record of the items each customer bought during each trip they made, and determine the percentage of customers who bought this sequence of items.