Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Association Rule
Search
Olly Chen
April 01, 2015
Programming
24
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Association Rule
Basic concept of association rule and show case
Olly Chen
April 01, 2015
More Decks by Olly Chen
See All by Olly Chen
Mini Project-Waiting for Rain Stop
iamshihshan
0
27
Other Decks in Programming
See All in Programming
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
300
気持ちぃ〜角丸 Squircle
ryu1013
0
310
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
560
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
890
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
The Rails Doctrine Decade
koic
2
590
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
WCS-LA-2024
lcolladotor
0
890
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Exploring anti-patterns in Rails
aemeredith
4
540
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Transcript
關聯性分析 Association Rule Olly Chen/ Kristen Chan http://www.4medapproved.com/hitsecurity/wp- content/uploads/2013/02/ChainQuestionMarkLink1.jpg
大綱 • 淺談關聯分析- 啤酒與尿布 • 關聯分析基本概念及指標 • 關聯分析圖表解釋 • 利用
R 進行關聯分析 ▫ 範例一 : 保險業尋找高收入之目標客群 ▫ 範例二 : 電影租借
淺談關聯分析- 啤酒與尿布 http://chuansong.me/n/367589
• 年輕的父親下班後經常要到超市去買嬰兒尿布 http://www.taaa.org.tw/cview.asp?cid=20136 25165407
• 原因是:美國的太太們常叮囑她們的丈夫下班後為小 孩買尿布,而丈夫們在買尿布後又隨手帶回了他們喜 歡的啤酒 • 由於同時購買的機率很高, 因此店員將啤酒與尿布擺放 在一起,最終造成兩種商品 業績大幅上升!! •
購物籃分析>> 尋找關聯規則 http://cn.depositphotos.com/30680189/stock -photo-young-happy-mother-is-a.html
關聯分析基本概念及指標 http://blog.princetontutoring.com/wp- content/uploads/2014/01/calculator.png
關聯分析基本概念及指標 • Left-hand site (lhs) • Right-hand site (rhs) •
lhs => rhs • {A} => {B} ▫ {啤酒} => {尿布} ▫ {麵包 奶油} => {牛奶} ▫ {牛奶 麵包 奶油} => {啤酒} 五個發票商品列表 購買序號 牛奶 麵包 奶油 啤酒 尿布 1 1 1 0 1 1 2 0 0 1 0 0 3 1 1 0 1 1 4 1 1 1 0 0 5 0 1 0 1 1
lhs => rhs {A} => {B} • 支持度(Support) : 觀察值中AB商品同時出現比例
▫ Support{麵包 => 牛奶} = 3/5 ▫ Support{啤酒 尿布 => 麵包} = 3/5 • 信賴度(Confidence) : A存在下B的比例 ▫ Confidence{麵包 => 牛奶} =3/4 ▫ Confidence{牛奶 麵包 => 奶油}=1/3 五個發票商品列表 購買序號 牛奶 麵包 奶油 啤酒 尿布 1 1 1 0 1 1 2 0 0 1 0 0 3 1 1 0 1 1 4 1 1 1 0 0 5 0 1 0 1 1 ) ( ) ( ) | ( ) ( A P B A P A B P B A Confidence ) ( ) ( B A P B A Support
lhs => rhs {A} => {B} • 提升度(Lift) : (B在A
中的占比)/(B在觀察值中的占比) ▫ Lift{麵包 => 牛奶} =(3/4)/(3/5)=15/12 ▫ Lift{牛奶 麵包 => 奶油}=(1/3)/(2/5)=5/6 Lift > 1 : 正相關 Lift < 1 : 負相關 Lift = 1 : 無相關 ) ( ) ( ) ( ) ( ) ( ) ( B P A P B A P B P B A Confidence B A Lift 五個發票商品列表 購買序號 牛奶 麵包 奶油 啤酒 尿布 1 1 1 0 1 1 2 0 0 1 0 0 3 1 1 0 1 1 4 1 1 1 0 0 5 0 1 0 1 1
關聯分析圖表解釋
點圖 • 每一行代表一個發票的概念 • 提供每一發票個別特性出現的分布狀態
Rule 詳細描述 • lhs, rhs, support confidence, lift
散佈圖 • X 軸 : Support • Y 軸 :
Confidence • 點座標顏色 : Lift
平行座標圖 • 每條 Rule 產出一條 線,此圖容易觀察 Rule 的共同特性
• 球體大小: Support 大小 • 球體顏色 : Lift 大小 其他視覺化圖
利用 R 進行關聯分析 範例一 : 保險業尋找高收入之目標客群 範例二 : 電影租借資料