Question 40
UnclassifiedThe Apriori algorithm is used for which of the following tasks?
Correct answer: B
Explanation
Apriori is an association-rule mining algorithm that finds item combinations appearing together often in transaction databases. It works by identifying "frequent itemsets" and then generating "association rules" from those itemsets, so it is used for mining frequent itemsets and association rules from transactional data.
Why each option is right or wrong
A. Image classification using labeled training data
B. Mining frequent itemsets and association rules from transactional data
Apriori is the classic market-basket analysis algorithm defined by the anti-monotone support property: if an itemset is frequent, all of its non-empty subsets must also be frequent, which lets it prune the search space while scanning transactional databases. It is used to discover itemsets meeting a minimum support threshold and then derive association rules that satisfy a minimum confidence threshold, rather than for classification or clustering.
C. Anomaly detection in time series data
D. Hyperparameter tuning of machine learning models