Homework: Exploring Market Basket Analysis (Association Rule) with R
This homework is to give you the hands-on experience with R for conducting Market Basket Analysis (Association Rule) using a real world data set. Please refer to the Chapter 14 in the reference textbook (through the link at the bottom under "Lessons") and Chapter 16 of the official textbook for details. Then open Market Basket Analysis with R, go over the example by using groceries.csv data set and the same R codes to reproduce the results step by step, study the way to explain the analysis in the example.
Now use the same R codes to repeat the Market Basket analysis as in the website but change the following support and confidence to mine some 10 rules:
I. Set the minimum support to 0.001
II. Set the minimum confidence of 0.9
III. Show the top 10 rules
Now, under the Targeting Items, answer these questions (set the minimum support to about 0.001 and minimum confidence to be 0.1)
I. What are customers likely to buy before buying yogurt?
II. What are customers likely to buy if they purchase yogurt?
III. What are customers likely to buy before buying chicken?
IV. What are customers likely to buy if they purchase chicken?
Format your homework according to the give formatting requirements:
1. The answer must be double spaced, typed, using Times New Roman font (size 12), with one-inch margins on all sides.
2. The response also includes a cover page containing the title of the homework, the course title, the student's name, and the date. The cover page is not included in the required page length.
3. Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.