ch4_association_rule

Ch4_association_rule - Association Rule Mining Motivation Association Rule Mining Association Rule Mining Given a set of transactions find rules

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Association Rule Mining
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
背景简介(Motivation) z 超市购物:商场经理可能想了解顾客的购物习惯。例如: 客多半会在一次购物时买哪些商品? 。分析的结果可用于市 场规划、广告策划和分类设计。 z 文本分类:个性化新闻推荐系统希望对新闻进行分类,推进 用户感兴趣类别的新闻内容给用户。系统可以通过挖掘哪些 关键词与某个类别经常联系在一起,找出文档的分类标准。 z 音乐推荐:网站想提高音乐下载量。如:下载某种类型音乐 的用户通常具有什么样的特点 z 解决这些问题的一种有效途径就是 “Association Rule Mining” ( 关联规则挖掘 )
Background image of page 2
Association Rule Mining z Given a set of transactions, find rules that will predict the occurrence of an item based on the occurrences of other items in the transaction Market-Basket transactions TID Items 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke Example of Association Rules {Diaper} {Beer}, {Milk, Bread} {Eggs,Coke}, {Beer, Bread} {Milk}, Implication means co-occurrence, not causality!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Definition: Frequent Itemset z Itemset A collection of one or more items ± Example: {Milk, Bread, Diaper} k-itemset ± An itemset that contains k items z Support count ( σ ) Frequency of occurrence of an itemset E.g. σ ({Milk, Bread,Diaper}) = 2 z Support Fraction of transactions that contain an itemset E.g. s({Milk, Bread, Diaper}) = 2/5 z Frequent Itemset An itemset whose support is greater than or equal to a minsup threshold TID Items 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke
Background image of page 4
Definition: Association Rule Example: Beer } Diaper , Milk { 4 . 0 5 2 | T | ) Beer Diaper, , Milk ( = = = σ s 67 . 0 3 2 ) Diaper , Milk ( ) Beer Diaper, Milk, ( = = = c z Association Rule An implication expression of the form X Y, where X and Y are itemsets Example: {Milk, Diaper} {Beer} z Rule Evaluation Metrics Support (s) ± Fraction of transactions that contain both X and Y Confidence (c) ± Measures how often items in Y appear in transactions that contain X TID Items 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Association Rule Mining Task z Given a set of transactions T, the goal of association rule mining is to find all rules having support minsup threshold confidence minconf threshold z Brute-force approach: List all possible association rules Compute the support and confidence for each rule Prune rules that fail the minsup and minconf thresholds Computationally prohibitive !
Background image of page 6
Mining Association Rules Example of Rules: {Milk,Diaper} {Beer} (s=0.4, c=0.67) {Milk,Beer} {Diaper} (s=0.4, c=1.0) {Diaper,Beer} {Milk} (s=0.4, c=0.67) {Beer} {Milk,Diaper} (s=0.4, c=0.67) {Diaper} {Milk,Beer} (s=0.4, c=0.5) {Milk} {Diaper,Beer} (s=0.4, c=0.5) TID Items 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/16/2011 for the course CS 5141 taught by Professor Chenenhong during the Spring '10 term at USTC.

Page1 / 115

Ch4_association_rule - Association Rule Mining Motivation Association Rule Mining Association Rule Mining Given a set of transactions find rules

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online