EMC Proven Professional – Data Science and Big Data Analytics — Question 7
Consider a database with 4 transactions:
Transaction 1: {cheese, bread, milk}
Transaction 2: {soda, bread, milk}
Transaction 3: {cheese, bread}
Transaction 4: {cheese, soda, juice}
You decide to run the association rules algorithm where minimum support is 50%. Which rule has a confidence at least 50%?
Answer options
- A. {cheese} => {bread}
- B. {juice} => {cheese}
- C. {milk} => {soda}
- D. {soda} => {milk}
Correct answer: A
Explanation
The rule {cheese} => {bread} has a confidence of 75% because out of the 4 transactions, 3 contain cheese, and all 3 of those also contain bread. The other options do not meet the minimum confidence requirement based on their respective occurrences in the transactions.