What is Apriori Algorithm
A method of finding frequently occurring relationships and rules in data sets, especially shopping carts and transactions.
Definition
An a priori algorithm helps to find association rules: which products, events or features often appear together. Its classic example is the analysis of shopping baskets. The algorithm first looks for frequently occurring sets of elements, and then builds rules of the form “if you bought A, you often buy B.”
Example
The store sees that customers who grab coffee often buy creamer, and uses this to make recommendations or display products.
Why it matters
The term is important for analytics, recommendations, marketing and primary data research without complex neural networks.
How it works
The algorithm uses the principle: if a set of elements is rare, then all its extended sets cannot be frequent either. This reduces the number of checks.
Where it is used
- basket analysis
- product recommendations
- finding connections in data
Limitations
The method can be heavy on large data and produce many obvious rules. We need the right thresholds of support and credibility.
