a. Compute the support for items{e}, {b, d} and {b, d, e} by treating each transaction ID as a market basket • {e}: support ? 8/10 = 80% • {b,d}: support ? 2/10 = 20% • {b,d,e}: support ? 2/5 = 20% b. Use the results in part (a) to compute the confidence for the association rules { b, d}? {e} and {e}?{b, d}. Is confidence a symmetric measure? {b,d} ? {e}: confidence ? 2/2 = 100% ? {e} ?{b,d}: confidence ? 2/8 = 25% Confidence is not a symmetric measurement. c. Repeat part (a) by treating each customer ID as a market basket. Each item should be treated as a binary variable (1 if an item appears in at least one transaction bought by the customer, and 0 otherwise.) {e}: support ? 4/5 = 80%. ? {b,d}: support ? 5/5 = 100%
Attachments:
3625531_1_ass2.docx
Leave a Reply