Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use any text file where each line represents a browsing session of a customer. On each line, a string of 8 characters represents a product
Use any text file where each line represents a browsing session of a customer. On each line, a string of 8 characters represents a product ID during that session. Products are separated by spaces (not commas).
Product Recommendations: The action or practice of selling additional products or services to existing customers is called cross-selling. Giving product recommendation is one of the examples of cross- selling that are frequently used by online retailers. One simple method to give product recommendations is to recommend products that are frequently browsed together by the customers. Suppose we want to recommend new products to the customer based on the products they have already browsed on the online website. Write a program using the Apriori algorithm to find products which are frequently browsed together. Fix the support to s -100 (i.e. product pairs need to occur together at least 100 times to be considered frequent) and find itemsets of size 2 and 3. (a) Identify pairs of items (X, Y) such that the support of (X, Y } is at least 100. For all such pairs, compute the confidence scores of the corresponding association rules: X- Y , Y X. Sort the rules in decreasing order of confidence scores and list the top 5 rules in the writeup. Break ties, if any, by lexicographically increasing order on the left hand side of the rule. (b) Identify item triples (X, X Z) such that the support of X, X Z) is at least 100, For all such triples, compute the confidence scores of the corresponding association rules: (X, Y ) Z, (X, Z) Y , Z) X. Sort the rules in decreasing order of confidence scores and list the top 5 rules in the writeup. Order the left-hand-side pair lexicographically and break ties, if any, by lexicographical order of the first then the second item in the pair. Product Recommendations: The action or practice of selling additional products or services to existing customers is called cross-selling. Giving product recommendation is one of the examples of cross- selling that are frequently used by online retailers. One simple method to give product recommendations is to recommend products that are frequently browsed together by the customers. Suppose we want to recommend new products to the customer based on the products they have already browsed on the online website. Write a program using the Apriori algorithm to find products which are frequently browsed together. Fix the support to s -100 (i.e. product pairs need to occur together at least 100 times to be considered frequent) and find itemsets of size 2 and 3. (a) Identify pairs of items (X, Y) such that the support of (X, Y } is at least 100. For all such pairs, compute the confidence scores of the corresponding association rules: X- Y , Y X. Sort the rules in decreasing order of confidence scores and list the top 5 rules in the writeup. Break ties, if any, by lexicographically increasing order on the left hand side of the rule. (b) Identify item triples (X, X Z) such that the support of X, X Z) is at least 100, For all such triples, compute the confidence scores of the corresponding association rules: (X, Y ) Z, (X, Z) Y , Z) X. Sort the rules in decreasing order of confidence scores and list the top 5 rules in the writeup. Order the left-hand-side pair lexicographically and break ties, if any, by lexicographical order of the first then the second item in the pairStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started