Sequential Event Prediction with Association Rules

Cynthia Rudin, Benjamin Letham, Ansaf Salleb-Aouissi, Eugene Kogan, David MadiganCOLT 2011

Abstract

Association rules are a cornerstone of exploratory data mining, particularly in market basket analysis. However, their application to supervised learning and sequential event prediction has historically lacked a rigorous theoretical foundation. This paper formalizes the "online grocery store problem" and provides the first theoretical framework for using association rules in a supervised context. We analyze two primary algorithmic approaches: the traditional "Max Confidence, Min Support" method and a novel "Adjusted Confidence" algorithm based on Bayesian shrinkage. By leveraging the concept of pointwise hypothesis stability, we prove that these algorithms possess strong generalization guarantees, with error rates scaling at $O(1/\sqrt{m})$. Empirical results across seven diverse datasets demonstrate that the Adjusted Confidence algorithm effectively preserves high-accuracy "nuggets" of information that traditional methods often discard, leading to superior predictive performance.

Introduction

In data mining, association rules are traditionally used for discovery—identifying patterns like "customers who bought lettuce also bought tomatoes." While intuitive, these rules have often been viewed as heuristics rather than statistical predictors. The challenge in moving from exploration to prediction lies in the local nature of association rules; unlike global models (such as neural networks or linear regressions) that assume a functional form across the entire feature space, association rules model conditional probabilities $P(b|a)$ directly from specific subsets of data.

This paper bridges the gap between association rule mining and supervised learning. By formalizing the sequential event prediction problem, the authors provide mathematical proof that association rules are statistically sound predictors with provable generalization bounds.

Methodology

Algorithmic Approaches

The authors evaluate two distinct strategies for selecting predictive rules from training data:

  1. Max Confidence, Min Support (Hard Threshold): This approach mirrors traditional mining. A rule is considered only if its support (frequency of occurrence) exceeds a threshold $\theta$. Among the qualifying rules, the one with the highest empirical confidence (accuracy) is chosen for prediction.
  2. Adjusted Confidence (Soft Threshold): This novel contribution introduces a Bayesian-inspired shrinkage estimator to score rules: $$f_{S,K}(a, b) = \frac{\#(a \cup b)}{\#a + K}$$ In this formula, $K$ serves as a "pseudo-count" or smoothing parameter. For rules with low support, $K$ penalizes the score, preventing the model from over-relying on rare events. As the support ($\#a$) increases, the influence of $K$ diminishes, allowing the score to converge to the empirical confidence. This mechanism allows the model to retain rare but highly accurate "nuggets" that a hard threshold would otherwise eliminate.

Theoretical Framework

The authors derive generalization bounds using the principle of pointwise hypothesis stability. An algorithm is stable if its output does not change significantly when a single training example is removed. The paper proves that the "support" of a rule acts as the mechanical engine of this stability. Specifically, they show that the generalization error for these algorithms matches the $O(1/\sqrt{m})$ rate found in classical supervised learning, where $m$ is the sample size.

Experimental Results

Datasets

The algorithms were tested on seven datasets, including botanical data (Mushroom, Plants), social/evaluative data (Nursery, Car Evaluation), game states (Chess), and synthetic benchmarks (MONK’s problems, IBM Quest generator).

Key Findings

  • Superiority of Adjusted Confidence: The Adjusted Confidence algorithm (with a small $K$) achieved the highest accuracy on six of the seven datasets. Its ability to break ties between rules with 100% confidence—by favoring those with more supporting evidence—proved critical for performance.
  • The Support-Generalization Tradeoff: The theory suggests two paths to reliable prediction: a large total sample size ($m$) or a high minimum support threshold ($\theta$). This explains why association rules can be effective even in datasets with a relatively small number of total sequences.
  • Stability and Bias: Experiments confirmed that increasing $K$ or $\theta$ reduces model variance. While this introduces a small amount of bias, it leads to more stable and reliable predictions on unseen data.

Discussion and Conclusion

This work transforms association rule mining from an exploratory tool into a theoretically grounded method for supervised learning. The introduction of Adjusted Confidence solves the "brittleness" of traditional support thresholds, ensuring that rare but predictive rules are utilized rather than discarded.

Future research may extend this framework to non-stationary environments where customer behavior changes over time, or explore more complex rules involving multi-item antecedents. Additionally, the authors suggest that the parameter $K$ could be tuned using empirical Bayes methods, potentially merging association rule prediction with collaborative filtering techniques.

Summary updated

BibTeX
@article{rudin2011sequential,
  author = {Cynthia Rudin and Benjamin Letham and Ansaf Salleb-Aouissi and Eugene Kogan and David Madigan},
  title = {{Sequential Event Prediction with Association Rules}},
  journal = {COLT},
  year = {2011},
}
Figure