DY0-001 practice question 6 of 15

A team is building a spam detection system. The team wants a probability-based identification method without complex, in-depth training from the historical data set. Which of the following methods would best serve this purpose?

Full set: 85 questions
Answer options
A: Logistic regression
B: Random forest
C: Naive Baves Correct answer
D: Linear regression
Correct Answer:
C. Naive Baves
Explanation

The Naive Bayes classifier is a simple, yet effective, probabilistic algorithm based on Bayes' theorem. It is particularly well-suited for text classification tasks such as spam detection. Its core strength lies in the "naive" assumption that features (e.g., words in an email) are independent of each other, which dramatically simplifies the computation. This makes the training process fast and efficient, requiring less data and computational resources compared to more complex models. It directly calculates the probability of an email being spam given its content, fulfilling all the requirements of the question.

Why Incorrect

A. Logistic regression: While a probabilistic classifier, its training process, which often involves iterative optimization like gradient descent, can be more computationally complex than Naive Bayes.
B. Random forest: This is an ensemble learning method that builds multiple decision trees. It is generally more complex and computationally intensive to train than a single Naive Bayes model.
D. Linear regression: This model is used for predicting continuous numerical values, not for categorical classification tasks like identifying an email as spam or not spam.

References

1. Ng

A. (2023). CS229 Machine Learning Course Notes. Stanford University. In the section on "Naive Bayes

" it is explicitly stated: "Naive Bayes is often used for text classification... For instance

we might want to build a spam filter for email." The notes detail its probabilistic foundation and the simplifying conditional independence assumption. (See Part V

Naive Bayes

Section 1).

2. Hastie

T.

Tibshirani

R.

& Friedman

J. (2009). The Elements of Statistical Learning: Data Mining

Inference

and Prediction. Springer. In Chapter 6.6.3

the text describes the Naive Bayes classifier

highlighting its application in document classification and the simplicity derived from the assumption of conditional independence of features. (p. 215).

3. Rish

I. (2001). An empirical study of the naive Bayes classifier. In IJCAI 2001 workshop on empirical methods in artificial intelligence (Vol. 3

No. 22

pp. 41-46). This paper discusses the efficiency and effectiveness of Naive Bayes

noting its "simplicity

elegance

and robustness" and its successful application in text classification despite its strong independence assumptions.

Scroll to Top