Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedUse 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).

image text in transcribed

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 pair

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions