In September 1994, IBM researchers Rakesh Agrawal and Ramakrishnan Srikant presented Apriori and AprioriTid at the VLDB conference. They addressed a database task: given a collection of transactions, find item combinations that appear often enough and use them to construct association rules. A transaction could be a retail basket, but the algorithm only needs a collection of sets. The number of possible combinations grows quickly as the catalog gets larger, so trying each one directly can waste most of the work. [1][2]
Apriori started by counting individual items. It then used frequent sets of one size to propose sets one item larger. If any subset of a candidate was already known to be infrequent, the algorithm could discard the candidate before another transaction scan. A transaction that contains the larger set necessarily contains every subset. The larger set can never have a higher count than one of its subsets. [1]
The published method could find all itemsets meeting a selected minimum support, without counting every possible set. In this setting, support is the proportion or count of transactions containing a set. After finding frequent sets, the authors generated directional rules under a confidence threshold. For a rule about two sets, confidence is the share of transactions containing the first set that also contain the second. These measures describe the observed records. They do not show that buying one item causes the purchase of the other. [1][2]
The paper compared Apriori, AprioriTid and a hybrid on generated workloads, reporting advantages over earlier methods under its test conditions. The comparison supports an algorithmic improvement on those workloads. It does not establish a fixed speed advantage on any retail dataset or a quantified improvement in store revenue. [1]
Pruning works because the rule is a necessary condition, not a prediction. For a hypothetical example, suppose five baskets are required and only four contain tea and biscuits together. A group containing tea, biscuits and jam cannot appear in five baskets. There is no reason to check that group, even if tea and jam separately meet the threshold. Conversely, if all pairs meet the threshold, the triple still has to be counted. Passing the subset test is necessary, but does not prove the candidate is frequent. [1]
Counting and rule selection also have different jobs. An item purchased in most baskets can produce rules with high confidence even when its association with the first item is weak. Comparing conditional frequency with the ordinary frequency of the second item helps identify that case. This is a separate interpretation step after frequent-set discovery. [1][2]
Analysis & application
For a practical pilot, define what one transaction means before running the algorithm. Decide whether to remove canceled orders, whether to combine variants of the same product, and which time window is representative. Estimate candidate volume at several support thresholds and record how many scans and how much memory each run needs. Then verify promising rules on another time period, because promotions and assortment changes can alter which items appear together. [1][2][3]
If a rule suggests a merchandising decision, make the action explicit and test it separately. A basket pattern can propose a placement or recommendation. A controlled comparison is needed to measure the effect of acting on it. [2]
Later researchers Jiawei Han, Jian Pei and Yiwen Yin developed FP-growth. Their 2000 paper identified the cost of generating and testing many candidates, especially for dense patterns and low minimum support. They used a compressed tree and pattern growth instead. Their experiments reported substantial speed gains over Apriori under the tested conditions. That follow-on work clarifies where Apriori’s original idea is strongest and where the volume of surviving candidates still makes a different method attractive. [3]
FOLLOW THE EVIDENCE
The sources
- Fast Algorithms for Mining Association Rules Rakesh Agrawal and Ramakrishnan Srikant, VLDB Proceedings · vldb.org
- What is the Apriori algorithm? Joshua Noble, IBM Think · ibm.com ·
- Mining Frequent Patterns without Candidate Generation Jiawei Han, Jian Pei and Yiwen Yin, ACM SIGMOD · cs.nmsu.edu