# CS代考 End-of-year Examinations, 2020 – cscodehelp代写

End-of-year Examinations, 2020
STAT318/STAT462-20S2 (C)
Family Name First Name Student Number Venue
Seat Number
_____________________ _____________________ |__|__|__|__|__|__|__|__| ____________________ ________
No electronic/communication devices are permitted. No exam materials may be removed from the exam room.
Mathematics and Statistics EXAMINATION
End-of-year Examinations, 2020
STAT318-20S2 (C) / STAT462-20S2 (C) Data Mining
Examination Duration: 120 minutes
Exam Conditions:
Closed Book exam: Students may not bring in any written or printed materials. Calculators with a ‘UC’ sticker approved.
Materials Permitted in the Exam Venue:
None.
Materials to be Supplied to Students:
1 x Standard 16-page UC answer book.
Instructions to Students:
All questions carry equal marks.
Show all working.
Use black or blue ink only.
Page 1 of 6

End-of-year Examinations, 2020
STAT318/STAT462-20S2 (C)
Questions Start on Page 3
Page 2 of 6

End-of-year Examinations, 2020 STAT318/STAT462-20S2 (C)
1. (a) Suppose that we have the following 100 market basket transactions.
Transaction
{apple} 9 {apple, carrot} 10 {apple, banana, carrot} 27 {apple, banana, carrot, orange} 21 {banana, orange} 3 {apple, banana, orange} 11 {carrot, orange} 5 {banana, carrot, orange} 14
100
For example, there are 10 transactions of the form {apple, carrot}
i. Compute the support of {orange}, {banana, carrot}, and {banana, carrot, orange}.
ii. Compute the confidence of the association rules: {banana, carrot} → {orange}; and
{orange} → {banana, carrot}.