MID_SEM_QP_2024_MARCH_final
MID_SEM_QP_2024_MARCH_final
MID-TERM Examination
SUBJECT: Fundamentals of Machine Learning [DSE 2222]
Q. Question Marks
No
1 Which of the following statements is not true about K-Nearest 0.5
Neighbour?
a)It belongs to the supervised learning domain
b)It has an application in data mining and intrusion detection
c)It is Non-parametric
d) It is not an instance-based learning algorithm
2 Which of the following statements is not a feature of KNN? 0.5
a) Very easy to implement for multi-class problem
b) One Hyper Parameter
c) Variety of distance criteria to be chosen from
d) Fast algorithm for large dataset
4 Which one of the following terms is not used in the Bayes’ Theorem? 0.5
a) Prior
b) Unlikelihood
c) Posterior
d) Evidence
5 The generalized form of a Bayesian network that represents and solves 0.5
decision problems under uncertain knowledge is known as an?
A. Directed Acyclic Graph
B. Table of conditional probabilities
C. Influence diagram
D. None of the above
6 If we have variables x1, x2, x3,....., xn, then the probabilities of a different 0.5
combination of x1, x2, x3.. xn, are known as?
A. Table of conditional probabilities
B. Causal Component
C. Actual numbers
D. Joint probability distribution
7 Using logistic regression model to predict whether an email is spam or 0.5
not, the learned parameters are b0=−2 and b1=0.5. Given a new email
with a spam score x=0.8 and a threshold of 0.3, what is the predicted class
of the email?
a) Spam
b) Not spam
c) Insufficient information to determine
d) Promotional email
8 A Polynomial Regression algorithm is also called Polynomial Linear 0.5
Regression because it does not depend on the variables, instead, it
depends on the -----------.
a) Predicate
b) Degree of polynomial
c) Coefficients
d) Residual error
9 Ridge regression adds the -------of the coefficient as a penalty term to the 0.5
loss function(L).
a) Absolute value of magnitude
b) Squared magnitude
c) Exponential of magnitude
d) Mean of magnitude
10 Number of trees the algorithm builds before averaging the predictions is 0.5
represented with ------hyperparameter.
a) n_estimators
b) n_trees
c) max_depth
d) n_features
Class X1 X2
1 4 1
1 4 -1
1 6 0
-1 1 0
-1 0 1
-1 0 -1
13 3
Compare and contrast logistic and polynomial regression algorithms,
highlighting their unique characteristics, strengths, and weaknesses.
17 What role does Bayes' Theorem play in updating beliefs or predictions with 3
new evidence, and how does it offer a structured framework for making
decisions when faced with uncertainty?
18 Imagine you are tasked with implementing sentiment analysis using a Naive 2
Bayes classifier. Describe how does Laplace smoothing address the issue
of zero probabilities for words not seen in the training data for a particular
sentiment category? Provide a detailed explanation with a hypothetical
example.