Assignment Part 2 - 8 hours delivery

profilehexa123
8hoursPart2Assignment.docx

Assignment #2 2. Consider the data set shown in Table. Example of market basket transactions

Customer ID Transaction ID Item Bought

1 0001 {a,d,e}

1 0024 {a,b,c,e}

2 0012 {a,b,d,e}

2 0031 {a,c,d,e}

3 0015 {b,c,e}

3 0022 {b,d,e}

4 0029 {c,d}

4 0040 {a,b,e}

5 0033 {a,d,e}

5 0038 {a,b,e}

Assignment #2 Answer for the following questions.

(a) Compute the support for item sets {e}, {b, d}, and {b, d, e} by treating each transaction ID as a market basket.

(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?

(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). Use this result to compute the confidence for the association rules {b, d} → {e} and {e} → {b, d}.

(d) Use the result in part (c) to compute the confidence for the association rules {b, d} → {e} and {e} → {b, d}.