{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# HW-10 - apriori in Weka List 3 rules that you find...

This preview shows pages 1–4. Sign up to view the full content.

1. In the “Stadium Heartburn Data”, a) derive an association rule with two items in the antecedent with the consequent ice_cream? Compute the support and confidence. b) What are 5 possible rules for the item set {beer, hotdogs, nachos}? Compute their support and confidence. (Assume min_confidence=0) Solution: 1. beer hotdogs ice_cream 2. beer nachos soda 3. hotdogs ice_cream nachos 4. beer hotdogs ice_cream nachos 5. hotdogs ice_cream 6. beer hotdogs nachos 7. nachos soda 8. beer hotdogs ice_cream nachos 9. ice_cream nachos soda 10. beer hotdogs ice_cream a) Beer, Hotdogs => ice_cream

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

View Full Document
Support = 4/10 = 40% Confidence = 4/5 = 80% b) 5 possible rules for the item set {beer, hotdogs, nachos} : 1. Beer, hotdogs => nachos s=3/10 c=3/5 [30%, 60%] 2. Beer, nachos => hotdogs s=3/10 c= 3/4 [30%, 75%] 3. Nachos, hotdog => beer s=3/10 c=3/4 [30%, 75%] 4. Beer => hotdog, nachos s=3/10 c=3/6 [30%, 50%] 5. Hotdog => beer, nachos s=3/10 c=3/7 [30%, 43%] 2. Choose 4 or 5 categorical attributes from your class project data set and run

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: apriori in Weka. List 3 rules that you find interesting? Solution: Attributes chosen: HNTLIK01, HUNT00, JOB, MARITAL, HUNT01 txn’s with beer, hotdog txn’s with ice_cream #1 #4 #8 #10 #6 #3 #5 #9 #2 #7 APRIORI Output: Parameter Setting: lowerBoundMinSupport = 0.01 numRules = 100 Total rules generated = 95. Apriori ======= Minimum support: 0.05 Minimum metric <confidence>: 0.9 Number of cycles performed: 19 Generated sets of large itemsets: Size of set of large itemsets L(1): 14 Size of set of large itemsets L(2): 44 Size of set of large itemsets L(3): 50 Size of set of large itemsets L(4): 21 Size of set of large itemsets L(5): 3 I find the following three rules more interesting: HNTLIK01=Very_unlikely HUNT00=No MARITAL=Married 5425 ==> HUNT01=No 5425 conf:(1) HNTLIK01=Very_unlikely HUNT00=No JOB=Yes MARITAL=Married 3449 ==> HUNT01=No 3449 conf:(1) HNTLIK01=Not_Answered HUNT00=Yes MARITAL=Married 907 ==> HUNT01=Yes 904 conf:(1)...
View Full Document

{[ snackBarMessage ]}

### Page1 / 4

HW-10 - apriori in Weka List 3 rules that you find...

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

View Full Document
Ask a homework question - tutors are online