Lesson #9
Lesson #9
PROPRIETARY MATERIAL © 2017 The McGraw Hill Education, Inc. All rights reserved. No part of this PowerPoint slide may be displayed,
reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution
to teachers and educators permitted by McGraw Hill for their individual course preparation. If you are a student using this PowerPoint slide, you are
using it without permission.
Learning Objectives
To understand Association Rule Mining
To understand its key algorithm
Solved example of Association rule mining
Recommender Systems
Association Rule Mining
A very popular DM method in business
Also known as market basket analysis
In medicine
○ relationships between symptoms and illnesses
○ diagnosis and patient characteristics and treatments
○ genes and their functions (genomics projects)…
Algorithms
Apriori Algorithm
Solved Exercise – creation
Association Rules from grocery
transaction data
Transactions List
1 Milk Egg Bread Butter
2 Milk Butter Egg Ketchup
3 Bread Butter Ketchup
4 Milk Bread Butter
5 Bread Butter Cookies
6 Milk Bread Butter Cookies
7 Milk Cookies
8 Milk Bread Butter
9 Bread Butter Egg Cookies
10 Milk Butter Bread
11 Milk Bread Butter
12 Milk Bread Cookies Ketchup
Creating Frequent Itemsets
Begin with 1-item itemsets
Butter, Egg 3
Select only those itemsets
Butter, Ketchup 2
that meet the designated
Butter, Cookies 3 support level, say 25%
Egg, Ketchup 1
Egg, Cookies 1
Ketchup, Cookies 1
Association Rule extraction
(for a given Support and Confidence levels,
say 25% and 50%)
Itemset (Milk, Bread, Butter) occurs 6 times.
That is 6 out of a total 12 transactions in the database
For all rules coming out of this, support level will be 6/12 (or 50%)