O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Finding the association rules

As shown earlier, the association rules are run using the apriori() function. The apriori() function has several filtering parameters that are used to control the number of rules that are produced. In our example, we will specify the minimum support and confidence threshold that a rule needs to pass in order to be considered.

The number that you pass to apriori depends upon how you want to look at the rules. It can be an initial screening, or it can be a deeper dive, after you have performed several passes. But generally, if we want many rules we can decrease the support and confidence parameters. If we want to focus on items that appear frequently, we raise the support threshold. If we want to concentrate on ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required