Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab We only care about: whether the customer buy a PEP or not You should use the pre-defined RHS, which is pep = NO and
Lab We only care about: whether the customer buy a PEP or not You should use the pre-defined RHS, which is pep = NO and pep = YES. Refer to slides page 15. Finish the command. # rules <- apriori (data = bankdata_tr, parameter = List (support = 0.05, confidence = 0.9) Check the top 5 Pick two rules and try to explain the reasons. For example, if the customer is married, has no child, and has a current acount, he/she won't buy a PEP even his/her income is high. The reason may be: this kind of customers don't need to earn money for their future via investment and they don't need to save money for children like education. #inspect (head (sort (rules, by="confidence"), 5))
Step 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