Simply put, Market Basket Analysis is conducted to help find associations in a data set. It can yield results that show which items are frequently bought together and at the same time learn the purchasing behavior of customers.
When conducting a Market Basket, analysts usually look for two things first:
- Support - a count of the number of times where a combination of items (or
)itemsets occured - Confidence - the probability that a rule will occur (ex.
confidence or conditional probability that people that bought shampoo and conditioner will also buy a bar of soap)the
One can also measure the relationship of the items in each rule when exploring the results:
- Lift - a score that shows the strength of correlation or relationship. Zero means
a positive score means that the items on the left hand side (antecedent) predict the items on the right hand side (consequence) of the ruleno correlation while
What is Apriori?
Principle:- If an
is frequent, then all of its subsets must also be frequent and vice versaitemset - Support of an
never exceeds the support of its subsetsitemset
What it does:
- Calculates the support for single
one at a timeitemsets that are less than the declared minimum support (Itemsets ) are discardedminsup - After that, it then expands to evaluating two-items
and so on and so forthitemsets
It's pretty simple and commonly used but it's also known to be very slow for very large item sets. This is because Apriori uses a breadth-first search meaning it goes through the data multiple times (i.e. Single item itemsets first, and then run through the data again for the two-item ones, and then the three-item ones, etc.). Singularities.com ran a test to prove this:
What data are going to use?
The Groceries data set contains
Results
Whole milk is the most frequently bought |
Rules in graph format. The redder the circle, the higher the lift. |
Online Casino in NJ - Atlantic City - Ambienshoppie
ReplyDeleteThe online casino is an open-to-play casino where players can enjoy casino games for free and without any wagering requirements. The online casino is 온라인 카지노 처벌