Great tutorial on how to conduct simple market basket analysis on your laptop either with association rules through the
arulespackage or with frequent pattern
mining (FPGrowth) in Spark via
Market Basket Analysis or association rules mining can be a very useful technique to gain insights in transactional data sets, and it can be useful for product recommendation. The classical example is data in a supermarket. For each customer we know what the individual products (items) are that he has bought. With association rules mining we can identify items that are frequently bought together. Other use cases for MBA could be web click data, log files, and even questionnaires.
In R there is a package arules to calculate association rules, it makes use of the so-called Apriori algorithm. For data sets that are not too big, calculating rules with arules in R (on a laptop) is not a problem. But when you have very huge data sets, you need to do something else, you can:
- use more computing power (or cluster of computing nodes).
- use another algorithm, for example…
View original post 727 more words