Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
In the context of supervised learning, what is the primary goal of Classification?
Not quite. Try another option.
Answer: To map input variables to discrete output categories or classes.
Classification involves identifying which of a set of categories (sub-populations) a new observation belongs to, on the basis of a training set of data containing observations (or instances) whose category membership is known. This distinguishes it from regression, which predicts continuous values.
Question 2 of 50
What does a Decision Boundary represent in a classification problem?
Not quite. Try another option.
Answer: A hypersurface that partitions the underlying vector space into two or more sets, one for each class.
A decision boundary is the hypersurface (line in 2D, plane in 3D, etc.) that separates different classes in the feature space. On one side of the boundary, data points are classified as one class, and on the other side, a different class.
Question 3 of 50
Consider a linear classifier in a 2-dimensional feature space defined by . What geometric shape is the decision boundary?
Not quite. Try another option.
Answer: A straight line
In 2D space, a linear equation of the form represents a straight line. In 3D it is a plane, and in higher dimensions, it is a hyperplane.
Question 4 of 50
For a Linear Classifier, the decision rule is often given by . What is the role of the bias term ?
Not quite. Try another option.
Answer: It translates the decision boundary away from the origin.
The weight vector determines the orientation of the decision boundary, while the bias term allows the decision boundary to be offset (translated) from the origin. Without , the boundary would always pass through the origin.
Question 5 of 50
In the One-vs-All (One-vs-Rest) strategy for multi-class classification with classes, how many binary classifiers are trained?
Not quite. Try another option.
Answer:
In One-vs-All, we train separate binary classifiers. The -th classifier distinguishes class from all other classes combined.
Question 6 of 50
In the One-vs-One strategy for multi-class classification with classes, how many binary classifiers are trained?
Not quite. Try another option.
Answer:
One-vs-One builds a classifier for every pair of classes. The number of unique pairs in classes is given by the combination formula .
Question 7 of 50
When using the One-vs-One strategy, how is the final classification decision typically made for a new data point?
Not quite. Try another option.
Answer: By a voting scheme where the class with the most 'wins' is selected.
In OvO, each of the classifiers casts a vote for one of the two classes it distinguishes. The class that receives the maximum number of votes is predicted.
Question 8 of 50
Which of the following is a potential disadvantage of the One-vs-All strategy when classes are imbalanced?
Not quite. Try another option.
Answer: The datasets for the binary classifiers become heavily skewed (e.g., 1 vs 99 others).
In OvA, the negative class includes samples from all other classes. If there are many classes, the negative set will vary largely outnumber the positive set for a specific class classifier, leading to class imbalance problems during training.
Question 9 of 50
In Bayes Theorem, given by , what is the term called?
Not quite. Try another option.
Answer: Likelihood
is the Likelihood (or Class-Conditional Probability), representing the probability of observing feature given that the class is .
Question 10 of 50
In Bayes Theorem, , what does represent?
Not quite. Try another option.
Answer: The probability of the class before observing any data (Prior).
is the Prior probability, reflecting our initial belief about the probability of class occurring before seeing any specific features.
Question 11 of 50
What is the fundamental assumption of the Naïve Bayes classifier?
Not quite. Try another option.
Answer: Features are conditionally independent given the class label.
The 'Naïve' assumption is that the value of a particular feature is independent of the value of any other feature, given the class variable. Mathematically: .
Question 12 of 50
Which of the following equations represents the decision rule for a Naïve Bayes classifier (ignoring the evidence as it is constant for all classes)?
Not quite. Try another option.
Answer:
According to the MAP (Maximum A Posteriori) estimation and the independence assumption, we select the class that maximizes the product of the prior and the individual likelihoods .
Question 13 of 50
In a Naïve Bayes classifier, what is the Zero Frequency Problem?
Not quite. Try another option.
Answer: When a feature value appears in the test set but was never observed with a specific class in the training set, resulting in a zero likelihood.
If a categorical variable has a category in the test data that was not observed in the training data for a specific class, the probability becomes 0. Since probabilities are multiplied, this makes the entire posterior probability 0.
Question 14 of 50
What technique is commonly used to solve the Zero Frequency Problem in Naïve Bayes?
Not quite. Try another option.
Answer: Laplace Smoothing (Additive Smoothing)
Laplace smoothing adds a small count (usually 1 or ) to each variable count in the training data to ensure that no probability is ever exactly zero.
Question 15 of 50
Which variation of Naïve Bayes is most appropriate when feature values are continuous and assumed to follow a normal distribution?
Not quite. Try another option.
Answer: Gaussian Naïve Bayes
Gaussian Naïve Bayes assumes that the continuous values associated with each class are distributed according to a Gaussian (Normal) distribution.
Question 16 of 50
In Bayesian Decision Theory, the concept of Risk is defined as:
Not quite. Try another option.
Answer: The expected loss associated with a decision rule.
Risk is the expected value of the loss function. Ideally, a decision rule is chosen to minimize this total risk.
Question 17 of 50
If we use the Zero-One Loss function (loss is 0 for correct classification, 1 for incorrect), minimizing the Risk is equivalent to:
Not quite. Try another option.
Answer: Minimizing the probability of error.
With Zero-One loss, the risk corresponds exactly to the probability of misclassification. Therefore, the optimal strategy (Bayes decision rule) is to select the class with the highest posterior probability to minimize error.
Question 18 of 50
Given the formula for Gaussian Naïve Bayes likelihood: , what parameters need to be estimated from the training data?
Not quite. Try another option.
Answer: The mean and variance for each class and feature.
Gaussian Naïve Bayes parametrizes the likelihood using the mean and variance of the feature specific to class .
Question 19 of 50
Why is the Naïve Bayes classifier considered a Generative Model?
Not quite. Try another option.
Answer: Because it models the joint probability (via ) and captures how the data is generated.
Generative models learn the distribution of individual classes (the likelihood and prior) and can essentially 'generate' samples from the learned distribution. Discriminative models (like Logistic Regression) model directly.
Question 20 of 50
In the context of multi-class classification, if the decision regions are separated by linear boundaries, the classifier is known as:
Not quite. Try another option.
Answer: A Linear Classifier
A linear classifier makes decisions based on the value of a linear combination of the characteristics. This results in decision boundaries that are hyperplanes (linear).
Question 21 of 50
Which version of Naïve Bayes is best suited for binary feature vectors (e.g., word presence/absence in text classification)?
Not quite. Try another option.
Answer: Bernoulli Naïve Bayes
Bernoulli Naïve Bayes is designed for binary/boolean features. It explicitly models the absence of terms as well as their presence.
Question 22 of 50
What is MAP estimation in the context of Bayesian classification?
Not quite. Try another option.
Answer: Maximum A Posteriori
MAP stands for Maximum A Posteriori. It is the method of estimating the variable (class) that maximizes the posterior probability .
Question 23 of 50
How does Maximum Likelihood (ML) estimation differ from MAP estimation?
Not quite. Try another option.
Answer: ML assumes a uniform prior (or ignores the prior), while MAP accounts for the prior .
MAP maximizes , whereas ML maximizes only . If the prior is uniform (all classes equally likely), MAP reduces to ML.
Question 24 of 50
What is the computational complexity of predicting a class for a single instance using Naïve Bayes with features and classes?
Not quite. Try another option.
Answer:
For each of the classes, we multiply probabilities (one for each feature). Thus, the complexity is linear with respect to both the number of classes and features.
Question 25 of 50
In Bayesian Decision Theory, typically denotes:
Not quite. Try another option.
Answer: The loss incurred by taking action when the true state of nature is .
This notation represents the Loss Function matrix, quantifying the cost of making a specific decision (action) given the actual ground truth.
Question 26 of 50
Which of the following is true regarding the Decision Boundary of a Gaussian Naïve Bayes classifier if all classes share the same covariance matrix?
Not quite. Try another option.
Answer: The boundary is linear.
If the covariance matrices are identical for all classes, the quadratic terms in the discriminant functions cancel out, leaving a linear function of . Thus, it behaves like a linear classifier (similar to Linear Discriminant Analysis).
Question 27 of 50
Why do we often work with Log-Probabilities (sums of logs) instead of direct probabilities (products) in Naïve Bayes?
Not quite. Try another option.
Answer: To prevent numerical underflow when multiplying many small probabilities.
Probabilities are . Multiplying many of them results in extremely small numbers that can vanish (underflow) in floating-point arithmetic. Summing logs () avoids this and preserves the ranking order (since log is monotonic).
Question 28 of 50
Which of the following text classification scenarios is Multinomial Naïve Bayes typically used for?
Not quite. Try another option.
Answer: When features represent word counts or term frequencies.
Multinomial NB models the distribution of counts (frequencies) of events (words) generated from a multinomial distribution.
Question 29 of 50
A classifier that distinguishes between 'Spam' and 'Not Spam' is an example of:
Not quite. Try another option.
Answer: Binary Classification
There are exactly two possible output classes, making it a binary classification problem.
Question 30 of 50
In the formulation , if and , which side of the boundary does the point fall on?
Not quite. Try another option.
Answer: Positive side ()
Substitute the values: . Since , it falls on the positive side.
Question 31 of 50
In Bayesian Decision Theory, the Evidence acts as a:
Not quite. Try another option.
Answer: Normalization constant to ensure probabilities sum to 1.
The evidence scales the numerator () so that the posterior probabilities over all classes sum to 1. It does not affect the ranking of classes.
Question 32 of 50
Which of the following statements about Decision Regions is correct?
Not quite. Try another option.
Answer: The union of all decision regions must cover the entire feature space.
A classifier assigns every point in the feature space to a class (or a reject option), so the regions partition the space.
Question 33 of 50
The One-vs-One strategy generally requires more space to store models than One-vs-All ( vs ). Why might it still be preferred?
Not quite. Try another option.
Answer: Each individual classifier is trained on a smaller subset of data (only two classes), potentially making training faster.
Although there are more classifiers, each one only looks at data from two classes. For algorithms that scale super-linearly with data size (like SVMs), training many small models is often faster than training fewer large models (OvA).
Question 34 of 50
In a probabilistic classifier, if and , and the loss for misclassifying class 1 is much higher than misclassifying class 2, Bayesian Decision Theory might suggest:
Not quite. Try another option.
Answer: Choosing class 2 if the expected risk is lower, even if the probability is lower.
Bayesian Decision Theory minimizes Risk, not just error rate. If the cost (loss) of a specific error is very high, the optimal decision might be to select a less probable class to avoid that high cost.
Question 35 of 50
What is the vector in a linear classifier geometrically orthogonal to?
Not quite. Try another option.
Answer: The decision boundary (hyperplane).
The weight vector is the normal vector to the separating hyperplane defined by .
Question 36 of 50
Which term calculates ?
Not quite. Try another option.
Answer: Laplace Smoothed Multinomial Likelihood
This is the formula for calculating the probability of a word given a class in Multinomial Naïve Bayes with Laplace smoothing (Add-one smoothing).
Question 37 of 50
Why does the Naïve Bayes independence assumption often work well in practice even when features are somewhat dependent?
Not quite. Try another option.
Answer: Because classification relies on the correct sign/ranking of the posterior, not the exact probability value.
Even if the probability estimates are biased due to the independence assumption, the classifier will still classify correctly as long as the correct class remains the one with the highest (albeit inaccurate) probability score.
Question 38 of 50
If a classifier produces a probability , it is known as a:
Not quite. Try another option.
Answer: Soft (Probabilistic) Classifier
Soft classifiers output the probabilities of class membership, whereas hard classifiers output just the label.
Question 39 of 50
In the context of Bayes Theorem, if the Prior is uniform for all classes, the MAP estimate is equivalent to maximizing:
Not quite. Try another option.
Answer: The Likelihood
If is constant, maximizing is the same as maximizing .
Question 40 of 50
What is the dimension of the decision boundary for a binary classification problem with 10 input features?
Not quite. Try another option.
Answer: 9
The decision boundary is a hyperplane of dimension , where is the dimension of the feature space. Here .
Question 41 of 50
Which of the following is NOT a property of a Linear Classifier?
Not quite. Try another option.
Answer: Can learn complex XOR relationships directly without feature engineering.
Linear classifiers cannot solve the XOR problem because the XOR classes are not linearly separable.
Question 42 of 50
When applying Naïve Bayes, how is the Prior usually estimated from training data?
Not quite. Try another option.
Answer: Fraction of training samples belonging to class .
, where is the count of samples in class and is total samples.
Question 43 of 50
Which statement best describes the Bayes Error Rate?
Not quite. Try another option.
Answer: The lowest possible error rate for any classifier on a given distribution.
The Bayes Error Rate is the irreducible error inherent in the data distribution (due to noise/overlap of classes). No classifier can outperform the theoretical Bayes Optimal Classifier.
Question 44 of 50
In a 3-class problem using One-vs-Rest, if the outputs of the three classifiers for a point are , , , which class is predicted?
Not quite. Try another option.
Answer: Class 3
In One-vs-Rest, we choose the class corresponding to the classifier with the highest confidence score (signed distance). is the maximum.
Question 45 of 50
If features and are duplicates (), how does this affect Naïve Bayes?
Not quite. Try another option.
Answer: It violates the independence assumption and 'double counts' the importance of that feature.
Naïve Bayes multiplies probabilities. If a feature is duplicated, its probability is multiplied twice, effectively squaring it and giving that feature undue weight (double counting), which skews the posterior.
Question 46 of 50
What is a Reject Option in classification?
Not quite. Try another option.
Answer: Refraining from making a prediction if the posterior probability is below a certain threshold.
In ambiguity (low confidence in all classes), a classifier may choose to 'reject' the input (e.g., send it for human review) rather than making a likely incorrect guess.
Question 47 of 50
Geometrically, what does the likelihood in a Gaussian Naïve Bayes represent?
Not quite. Try another option.
Answer: The density of the data point within the cluster of class .
For a Gaussian distribution, the likelihood indicates how close the point is to the mean of the class distribution, scaled by the variance.
Question 48 of 50
Which of the following is an example of a Discriminative approach to classification?
Not quite. Try another option.
Answer: Logistic Regression
Logistic Regression models the posterior directly (Discriminative), whereas the others listed are Generative models (modeling ).
Question 49 of 50
In the context of the One-vs-One strategy, if there is a tie in the voting (e.g., class A and class B both get same number of votes), how is it typically resolved?
Not quite. Try another option.
Answer: Random selection or based on highest aggregate confidence score.
Ties are usually broken by either summing the raw decision function values (confidence) for the tied classes or simply picking one randomly/lexicographically.
Question 50 of 50
What happens to the decision boundary in a Linear Classifier if we multiply all weights and bias by a positive constant ?
Not quite. Try another option.
Answer: The boundary remains unchanged.
The equation is equivalent to (since ). The hyperplane geometry is identical, though the magnitude of the output scores changes.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT394 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT394 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.