• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

Machine Learning For Email Spam Filtering (C951 Task 3)

Document preview thumbnail
Preview 3 out of 25 pages

MACHINE LEARNING FOR EMAIL SPAM FILTERING (C951 TASK 3)

Content preview

MACHINE LEARNING FOR EMAIL
SPAM FILTERING (C951 TASK 3)



1. When designing a Naive Bayes classifier for spam detection, why is Laplace smoothing

(additive smoothing) essential?

A. To prevent the model from overfitting on rare words.


B. To reduce the computational complexity of the logarithm operations.


C. To handle the zero-frequency problem where an unseen word results in a zero posterior

probability.


D. To automatically filter out stopwords during the training process.


Answer: C


Conceptual Explanation: Laplace smoothing adds a small value to every count, ensuring

that probabilities are never zero, which would otherwise nullify the entire product in Naive

Bayes if a single feature is missing.


2. Which metric is generally considered most critical when minimizing the risk of ‘False

Positives’ in a production spam filter?

A. Recall


B. Precision

,C. F1-Score


D. Accuracy


Answer: B


Conceptual Explanation: Precision measures the ratio of correctly predicted positive

observations to the total predicted positives. In spam filtering, a high precision means

fewer legitimate emails (False Positives) are incorrectly flagged as spam.


3. How does TF-IDF (Term Frequency-Inverse Document Frequency) improve upon simple

Count Vectorization in spam filtering?

A. By increasing the weight of common words like ‘the’ and ‘and’.


B. By reducing the dimensionality of the feature space through principal component

analysis.


C. By penalizing words that appear frequently across all emails, highlighting unique spam-

indicative keywords.


D. By treating word order and context as primary features.


Answer: C


Conceptual Explanation: TF-IDF reduces the weight of terms that appear very frequently

across the entire corpus (IDF) while boosting terms that are frequent within specific

documents (TF).

, 4. In the context of the C951 proposal, what is ‘Concept Drift’ in email spam filtering?

A. The deterioration of model performance over time as spammer tactics evolve.


B. The process of moving the model from a development environment to a cloud

production environment.


C. The mathematical movement of data points across a Support Vector Machine

hyperplane.


D. The variation in computational resources required to process large email attachments.


Answer: A


Conceptual Explanation: Concept Drift occurs when the statistical properties of the target

variable (spam vs. ham) change over time, requiring model retraining.


5. Why might a Support Vector Machine (SVM) using a Radial Basis Function (RBF) kernel

outperform a Linear kernel for spam detection?

A. Linear kernels are incapable of handling high-dimensional text data.


B. RBF kernels are computationally faster for millions of features.


C. Linear kernels require all input data to be pre-normalized to a range of [0,1].


D. RBF can capture non-linear relationships and complex decision boundaries between

spam and ham.


Answer: D

Document information

Uploaded on
August 19, 2026
Number of pages
25
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Thebright
3.6
(45)
Sold
254
Followers
6
Items
15814
Last sold
4 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions