- Introduced by
- Agrawal, R. & Srikant, R. (Apriori base); ensemble extension by multiple researchers
- Year
- 1994 (Apriori base); ensemble extensions 2000s–2010s
- Type
- Ensemble / Frequent Pattern Mining
- Family
- Machine learning
What does it do?
Ensemble Apriori is a name used for variants of the Apriori frequent-pattern miner that run Apriori on several subsets of a transactional dataset, or under different support thresholds, and then combine the discovered itemsets into one globally verified rule set.
The name covers more than one formulation, and no single originating ensemble paper is generally identified with it. The stated aims are wider coverage of candidate patterns and scalability to larger transaction databases.
The intuition behind the method
Apriori's output depends on the minimum support threshold. A high threshold can miss rare but meaningful co-occurrences, while a low threshold can generate a very large number of candidate itemsets. The ensemble variant splits the transaction database into subsets, mines each subset independently, possibly with different thresholds, and then checks the pooled candidates against the full database before any rules are generated. The analogy to ensembles of decision trees is only loose: here the members are partitions of the data, and the combination step is a global verification of support rather than a vote.
History
The Apriori algorithm was introduced by Agrawal and Srikant at VLDB in 1994 and became a foundational method for association rule mining. The ensemble name has since been applied to several formulations, and no single originating paper is generally identified with the ensemble form. Because the name covers more than one procedure, check the exact method against the implementation you use.
When to use it
Consider Ensemble Apriori when the transaction data are binary or categorical and a single Apriori run over the whole dataset is too costly, particularly when that run would need a low support threshold to surface less frequent patterns. It is also relevant when you want to compare how discovered itemsets change across different support levels or data subsets. Do not use it when the dataset is small enough for a standard Apriori or FP-Growth run, since the merge and verification steps add work and redundancy without a clear benefit. If you need one compact, non-redundant rule set, a single-pass method is simpler to interpret. If the target is ordered or time-dependent patterns, use sequence mining methods instead.
Limitations and considerations
- The global verification step requires a scan of the full database, so the method does not avoid this cost entirely.
- Patterns that are frequent only within one subset and fall below the global threshold are discarded by design, so the final set reflects global support rather than local patterns.
- Local thresholds set above the global minimum support scaled to the subset's size can cause a globally frequent itemset to be missed in every subset. Set local thresholds at or below that scaled value, and check them against the global target.
- Merging local results can produce overlapping or redundant rules, which typically need post-processing or deduplication.
- The method adds hyperparameters (number of subsets, per-subset thresholds) compared with standard Apriori.
- It does not handle continuous or ordinal features natively; these must be discretised into binary or categorical items first.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Each subset is mined independently of the others, so the local runs can in principle be executed in parallel.
- Because each subset can use its own threshold, the candidate pool can include itemsets that a single high-threshold run on the full data would not generate. Only those meeting the global minimum support are kept in the final output.
- The final rules are checked against the full database, so reported support and confidence are global values and not subset estimates.
- The output keeps the if-then rule form and the support and confidence measures of standard Apriori, so existing interpretation practices still apply.
Applications
- Market-basket analysis to discover product co-purchase patterns in retail transaction logs.
- Clinical co-occurrence mining to identify frequent symptom or diagnosis combinations in patient records.
- Web usage mining to find frequently co-visited page sets or navigation patterns.
- Pre-processing for recommender systems, where item-association rules are used as candidate recommendations.
- Screening financial transaction data for unusual co-occurrence patterns that may warrant review.
How it works
How it works
The transaction dataset is divided into several non-overlapping subsets, for example by random, stratified, or horizontal partitioning. Each subset may be assigned its own minimum-support threshold, which lets the search explore different support levels without running one full low-threshold Apriori pass over the whole dataset. To avoid losing globally frequent itemsets, the local threshold for a subset should be no higher than the global minimum support applied to that subset's size. This works because, when the subsets do not overlap, the global count of an itemset is the sum of its counts across the subsets. If that total reaches the global minimum, the itemset must reach the scaled minimum in at least one subset. Local thresholds set above this value can cause a globally frequent itemset to be missed in every subset.
The standard Apriori algorithm runs independently on each subset. It starts from frequent 1-itemsets and uses anti-monotonicity (every subset of a frequent itemset must also be frequent) to prune candidates, extending itemsets level by level until no further frequent itemsets are found. Each subset yields its own set of locally frequent itemsets.
The locally frequent itemsets from all subsets are pooled into a global candidate collection, so an itemset found in at least one subset is kept as a candidate. This pooling is the main structural difference from a single Apriori run, because it lets patterns discovered under different subsets or thresholds enter the search.
Each candidate is checked against the full transaction database to compute its global support, using the support formula given above. Candidates whose global support is below the overall minimum threshold are discarded, so only itemsets that hold across the whole dataset survive, even though they were first found on a subset.
Formula
\text{support}(X) = \frac{|\{t \in T : X \subseteq t\}|}{|T|} \geq \sigma_{\min}Association rules are generated from the surviving globally frequent itemsets. For each itemset, non-empty proper subsets are tested as antecedents, and a rule is kept only if it meets the minimum confidence, using the confidence formula given above. The final rules are therefore confirmed against the full dataset at the itemset level, although rules from different subsets may still overlap or be redundant.
Formula
\text{confidence}(X \Rightarrow Y) = \frac{\text{support}(X \cup Y)}{\text{support}(X)} \geq c_{\min}Common pitfalls
- Setting per-subset thresholds so low that local candidate generation becomes expensive, which can cancel out the efficiency gain of partitioning.
- Reporting itemsets or rules found only on a subset as if they were globally valid, without the global verification step.
- Treating the merged rule set as non-redundant without pruning or deduplicating rules that share items or support.
- Using the ensemble variant on small datasets where a single standard Apriori run would be simpler and sufficient.
- Judging the final rules by support and confidence alone; lift and leverage are needed to tell genuine co-occurrence from frequent but unremarkable items.
Frequently asked questions
How does Ensemble Apriori differ from standard Apriori?
Standard Apriori runs once on the whole dataset with one threshold. The ensemble variant runs Apriori on several subsets, possibly with different thresholds, pools the locally frequent itemsets, and then verifies them against the full dataset before generating rules. This can widen the candidate pool and help with scale, at the cost of an extra merge and verification step.
What is the anti-monotonicity property and why does it matter?
Anti-monotonicity means that if an itemset is infrequent, all of its supersets must also be infrequent. Apriori uses this to prune the search: once a small itemset fails the support threshold, no larger itemset containing it needs to be checked.
How should I choose the number of partitions?
Choose partitions large enough that the local support estimates are reasonably stable, and be aware that more partitions increase the cost of merging and global verification. Set each local threshold no higher than the global minimum support applied to that subset's size, so that globally frequent itemsets are not lost. There is no fixed rule for the minimum subset size, so tune this on your own data and check the stability of the resulting rules, for example on a held-out set of transactions.
When should I prefer FP-Growth over Ensemble Apriori?
FP-Growth avoids explicit candidate generation by compressing the database into a tree structure, and is often faster on dense data when the database fits in memory. Prefer FP-Growth when you need a single coherent rule set and the data can be processed in one pass. Consider Ensemble Apriori when the data must be split for scale, or when you specifically want to compare results across subsets or thresholds.
How do I evaluate the quality of the mined rules?
Support and confidence are necessary but not sufficient. Also compute lift: values well above 1 indicate co-occurrence beyond what independence would predict, while values near 1 indicate little association beyond chance. Leverage or conviction can be added for further comparison. Prioritise rules with meaningful support, high lift, and a plausible domain interpretation.
Related methods
Sources
Agrawal, R. & Srikant, R. (1994). Fast algorithms for mining association rules. Proceedings of the 20th International Conference on Very Large Data Bases (VLDB), 1215, 487–499.
Open publication referenceApriori algorithm. Wikipedia.
Open publication reference