In the world of data mining, identifying items that "go together"—like bread and milk—is a standard task. However, the most actionable insights often come from relationships that change depending on the level of abstraction. A research team from the University of Victoria and UIUC, including data mining pioneer Jiawei Han, explored this phenomenon in their paper, "Mining Flipping Correlations from Large Datasets with Taxonomies." They introduce the concept of "flipping correlations": patterns that contradict the general trends of their parent categories.
The Concept of Flipping Correlations
A flipping correlation occurs when items are positively correlated at one level of a taxonomy (e.g., specific products) but negatively correlated at a higher level (e.g., general categories), or vice versa. These "exceptions to the rule" represent unique market niches or cross-over appeals that a general analysis would miss.
For instance, while the genres "Romance" and "Western" might be negatively correlated overall (viewers typically prefer one or the other), specific films like The Big Country and High Noon might show a strong positive correlation.
The Computational Challenge of Taxonomies
Most datasets are organized into taxonomies—hierarchical structures like Whole Milk → Milk → Grocery. Finding flips across these hierarchies is a computational nightmare. Traditional pruning methods, such as those used in the Apriori algorithm, rely on "monotonicity" (the principle that if a set is rare, its supersets are also rare). Correlation measures, however, are non-monotonic; adding an item can increase or decrease correlation, causing the search space to explode.
The Flipper Algorithm
To make the search feasible, the authors developed Flipper. The algorithm focuses on null-invariant measures (specifically the Kulczynski measure), which remain stable even in massive datasets where most transactions contain neither item of interest.
Key technical innovations include:
- Correlation Upper Bounds: Flipper uses a mathematical property where a set's correlation is bounded by its subsets' maximum correlation, enabling pruning even without traditional monotonicity.
- Termination of Pattern Growth (TPG): The algorithm stops searching a branch if correlations at two consecutive hierarchy levels are both non-positive.
- Single-Item Based Pruning (SIBP): Flipper can disqualify entire branches based on the support of individual items before performing expensive counts.
Real-World Insights and Performance
The researchers evaluated Flipper on synthetic data and real-world datasets, including US Census data, MEDLINE citations, and retail transactions.
- Efficiency: Flipper proved to be up to 30x faster than baseline methods. While traditional methods often crashed or required over 40GB of RAM, Flipper consistently stayed under 2GB.
- Discoveries: In the Groceries dataset, they found that while "Pork" and "Delicatessen" are generally negatively correlated, "Pork" and "Salad Dressing" are positively correlated, suggesting specific cross-promotion opportunities. In Census data, they noted that while "Craft-repair" workers generally have lower incomes, those with a "Bachelor's degree" specifically flip this trend.
Conclusion
By pushing the "flip" constraint directly into the mining process, Flipper identifies surprising exceptions at scale. While current versions require manual threshold setting, future work aims to automate this process and extend the search to specific demographic sub-groups.
Summary updated