ML Study Hub

Home / MLT / Week 4 / Real questions

MLT week 4 - real exam questions

33 questions pulled from past papers whose wording matches this week's topics, newest first, duplicates removed. Pick your answers, then press Check answers. Figures and answer keys are the originals.

Elapsed 00:00
MLT End Term · 13 Sep 2026 · open the full paper
Practice 1MSQ4 marksselect all that apply
Consider binary classification on input features . Define the decision boundary of a trained classifier as the set of points at which its predicted label changes. For which of the following method(s) can this decision boundary be non-linear in ?
  1. Perceptron.
  2. Logistic regression, predicting the positive class when .
  3. -nearest-neighbour with Euclidean distance.
  4. A decision tree using axis-aligned splits.
  5. Gaussian Naïve Bayes in which the class-conditional feature variances differ between the two classes.
  6. A support vector machine with a linear kernel.
  7. A support vector machine with an RBF (Gaussian) kernel.
MLT End Term · 13 Sep 2026 · open the full paper
Practice 2MCQ1 mark
Given a dataset with discrete attributes, each taking exactly 5 possible values (where ), for a three-class classification task, the number of parameters to be estimated for learning a naïve Bayes classifier is:
MLT End Term · 13 Sep 2026 · open the full paper
Practice 3MCQ3 marks
Suppose we model data as with a single unknown parameter and known variance (each ). You perform maximum-likelihood estimation of . The MLE of must satisfy which of the following equations? Note that is a feature and is a label.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 4MCQ4 marks
Suppose an email is represented by a binary feature vector A generative classifier first chooses the class label according to the prior distribution . It then generates the feature vector conditioned on the chosen class. The classifier assumes that, given the class label, the features are conditionally independent. Which of the following expressions correctly represents
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 5MCQ4 marks
Under the probabilistic view of linear regression, assume where the observations are independent. Suppose the true noise variance is instead of , while the dataset and the observed labels remain unchanged. What happens to the maximum likelihood estimator question figure
  1. It is unchanged.
  2. It is scaled by .
  3. It is scaled by .
  4. It cannot be determined without knowing .
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 6SA4 marks
A generative classifier models the joint distribution of the feature vector and the class label . For a particular email represented by the feature vector , suppose and Compute the posterior probability
MLT Quiz 1 · 19 Jul 2026 · open the full paper
Practice 7MSQ4 marksselect all that apply
Consider a GMM with components.During the E-step for a single data point , you are given only the following two quantities for the first component: where is the prior mixing weight and is the posterior responsibility. All other component parameters and densities are unknown. Based strictly on these two values and the mathematical definition of the E-step responsibility, question figure which of the following quantities can be uniquely determined as exact numerical values?
  1. The marginal probability density of the data point, .
  2. The ratio of the conditional density to the marginal density for component : .question figure
  3. The ratio of the joint probability of component to the sum of joint probabilities of all other components: .question figure
  4. The sum of posterior responsibilities for all components other than component :question figure
MLT Quiz 1 · 19 Jul 2026 · open the full paper
Practice 8SA4 marks
Inscript Consider a two-component Gaussian Mixture Model (GMM) with mixing weights and .For a particular observation , the component conditional densities satisfy During the E-step of the EM algorithm, the posterior responsibility of component is computed as .Determine the value of , correct to two decimal places.
MLT End Term · 10 May 2026 · open the full paper
Practice 9SA4 marks
A coin is flipped 100 times, and it lands on heads 60 times. You use a Beta(10, 40) prior to estimate the true probability of heads. Given these observations, calculate the posterior mean of the probability of heads. Enter the answer correct to three decimal places. • Pdf of Beta distribution is question figure where is the Beta function. • The mean of the Beta distribution is: .
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 10MSQ3 marksselect all that apply
A researcher is modeling a dataset using linear regression of the form . They are considering two different probabilistic assumptions for the independent and identically distributed (i.i.d.) noise term : • Assumption A: The noise follows a Gaussian distribution, . • Assumption B: The noise follows a Laplace distribution, . The training dataset is known to contain several extreme outliers resulting from sensor malfunctions. Which of the following statements correctly describes the behavior of the Maximum Likelihood Estimation (MLE) for the parameter vector ?
  1. Under Assumption A, the MLE is equivalent to minimizing Mean Squared Error (MSE), which is highly sensitive to outliers because the penalty grows quadratically.
  2. Under Assumption B, the MLE is equivalent to L1 regularization, which is more robust to outliers because the penalty for large residuals grows linearly.
  3. Both Assumption A and Assumption B lead to the same optimal parameter vector regardless of the presence of outliers.
  4. All the given options are correct
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 11SA3 marks
Comprehension passage for this question
You are provided with a training set of 5 observations, each consisting of four binary features and a binary target label . question figure . Based on the above data, answer the given subquestions.
Using the Naive Bayes assumption and the data provided, calculate the joint probability for a new test instance . Enter your answer correct to two decimal places.
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 12MCQ2 marks
Comprehension passage for this question
You are provided with a training set of 5 observations, each consisting of four binary features and a binary target label . question figure . Based on the above data, answer the given subquestions.
For the Naive Bayes model described in the main data with binary features and a binary class label, how many independent parameters are required to fully specify the model? Answer for the original dataset with 5 training examples.
  1. 5
  2. 8
  3. 9
  4. 10
MLT Quiz 1 · 15 Mar 2026 · open the full paper
Practice 13SA3 marks
Comprehension passage for this question
Let question figure be i.i.d. observations from the mixture distribution question figure where question figure The observed data are question figure Assume that the initial estimate of the mixing parameter is question figure
Consider the E-step of the EM algorithm. Introduce latent variables question figure such that question figure if question figure is generated from question figure . Compute the posterior responsibility question figure question figure
MLT Quiz 1 · 15 Mar 2026 · open the full paper
Practice 14MCQ3 marks
Comprehension passage for this question
Let question figure be i.i.d. observations from the mixture distribution question figure where question figure The observed data are question figure Assume that the initial estimate of the mixing parameter is question figure
Using a Maximum A Posteriori (MAP) decision rule, a data point question figure is assigned to mixture 2 if the posterior responsibility question figure . Based on the values calculated in the E-step, which data point(s) are classified as belonging to Component 2?
  1. question figure
  2. question figure
  3. question figure
  4. All four pointsquestion figure
MLT End Term · 21 Dec 2025 · open the full paper
Practice 15MCQ2 marks
Suppose we have a prior for the parameter . Then, the value of the maximum likelihood estimate (MLE) is equal to the value of the maximum a posteriori (MAP) estimate.
  1. True
  2. False
MLT Quiz 1 · 26 Oct 2025 · open the full paper
Practice 16MSQ4 marksselect all that apply
question figure
  1. Posterior mean for Beta(1, 1) is 0.039.
  2. Posterior mean for Beta(1, 1) is 0.03.
  3. Posterior mean for Beta(0.5, 0.5) is 0.025.
  4. Posterior mean for Beta(0.5, 0.5) is 0.034.
MLT Quiz 1 · 13 Jul 2025 · open the full paper
Practice 17MCQ3 marks
You are presented with a dataset that has latent variables that influences your data. You are asked to use Expectation-Maximization algorithm to best capture the data. How would you define the steps in the EM (Expectation and Maximization) algorithm?
  1. E-step: Estimate the latent variables in the dataset, M-step: Maximize thelikelihood over the model parameters.
  2. E-step: Estimate the number of latent variables in the dataset, M-step:Maximize the likelihood over the model parameters.
  3. E-step: Estimate the likelihood over the model parameters, M-step: Maximizethe number of latent variables in the dataset.
  4. E-step: Estimate the likelihood over the model parameters, M-step: Maximizethe number of parameters in the model.
MLT Quiz 1 · 13 Jul 2025 · open the full paper
Practice 18MSQ3 marksselect all that apply
Which of the following statements is/are true?
  1. EM algorithm converges to a global optimum.
  2. Lloyd’s algorithm converges to a local optimum.
  3. Poor initialization does not affect the clusters produced by EM algorithm.
  4. Poor initialization leads to a slower convergence of Lloyd’s algorithm.
  5. Lloyd’s algorithm is sensitive to the number of clusters (k).
MLT Quiz 2 · 16 Mar 2025 · open the full paper
Practice 19MCQ2 marks
question figure
  1. To prevent numerical errors when calculating the variance of Gaussianfeatures.
  2. To ensure that unseen categorical feature values receive small but nonzeroprobabilities.
  3. To strengthen the model’s predictions by increasing the weight of certainfeatures.
  4. To balance the likelihood values of all features before computing posteriorprobabilities.
MLT Quiz 1 · 23 Feb 2025 · open the full paper
Practice 20SA3 marks
Suppose you toss a coin four times and observe no heads. You then give the coin to your friend, who tosses it until the first head occurs. Your friend tosses the coin a total of five times. Let p denote the probability that the coin comes up heads. Find the maximum likelihood estimate of p.
MLT Quiz 1 · 23 Feb 2025 · open the full paper
Practice 21MCQ2 marks
Comprehension passage for this question
Suppose that 100 items are sampled from a manufacturing process and 10 are found to be defective. Let p denote the proportion of defective items. Assume that the prior distribution for p is Beta(1, 1). Based on the above data, answer the given subquestions.
Select the correct options from the following:
  1. Posterior distribution for p is Beta(91, 11).
  2. Posterior distribution for p is Beta(11, 91).
  3. Posterior distribution for p is Bernoulli(0.1).
  4. Posterior distribution for p is Bernoulli(0.9).
MLT Quiz 1 · 23 Feb 2025 · open the full paper
Practice 22SA2 marks
Comprehension passage for this question
Suppose that 100 items are sampled from a manufacturing process and 10 are found to be defective. Let p denote the proportion of defective items. Assume that the prior distribution for p is Beta(1, 1). Based on the above data, answer the given subquestions.
Find the posterior mean. Enter the answer correct to two decimal places.
MLT End Term · 22 Dec 2024 · open the full paper
Practice 23SA3 marks
Consider a logistic regression model trained to detect spam emails. Emails containing harmful phishing links are labeled as spam (1), while regular emails are labeled as not spam (0). A good spam detector should correctly identify almost all emails with phishing links. Even a single phishing email incorrectly classified as not spam could expose users to significant risks. However, the detector may classify some regular emails as spam. This trade-off is acceptable to ensure safety. To ensure user safety, if the threshold is set to a low value to prioritize the detection of phishing emails, type 1. If the threshold is set to a high value to minimize false positives (misclassifying regular emails as spam), type 0.
MLT Quiz 2 · 01 Dec 2024 · open the full paper
Practice 24SA4 marks
Suppose you want to use a Naive Bayes classifier to predict whether a student will pass or fail an exam based on two features: the number of hours they studied and whether they attended review sessions. Assume that the features are conditionally independent given the exam outcome and that the variances of the study hours distributions are equal for both pass and fail categories. How many parameters are required to classify a new student using this Naive Bayes classifier?
MLT Quiz 1 · 27 Oct 2024 · open the full paper
Practice 25SA4 marks
Consider a dataset with 100 total data points. Each data point is classified as either type A or type B. We model this using a Bernoulli distribution, where p is the probability of a data point being type A. If the maximum likelihood estimate (MLE) of p based on the dataset is 0.4, how many data points of type B are there in this dataset?
MLT Quiz 1 · 07 Jul 2024 · open the full paper
Practice 26MCQ2 marks
Comprehension passage for this question
In the context of Bayesian estimation, consider a Beta prior for the parameter p of a Bernoulli distribution: question figure In the context of Bayesian estimation, consider a Beta prior for the parameter p of a Bernoulli distribution: The dataset has 8 ones and 5 zeros. Based on the above data, answer the given subquestions.
What is the posterior?
  1. Beta(12, 8)
  2. Beta(11, 7)
  3. Br(0.5)
  4. Beta(8, 5)
MLT Quiz 1 · 07 Jul 2024 · open the full paper
Practice 27SA2.5 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
Consider a dataset that has 25 data-points. The data-point xi and its frequency is given in the following table: question figure Consider a dataset that has 25 data-points. The data-point xi and its frequency is given in the following table: In case the table is not clear: the value 0 appears once in the dataset, the value 1 appears four times in the dataset, and so on. Find the maximum likelihood estimate for the parameter λ of the Poisson distribution given this dataset.
MLT Quiz 2 · 03 Dec 2023 · open the full paper
Practice 28SA3 marks
Comprehension passage for this question
question figure
What will be the predicted label according to the Naive Bayes decision rule?
MLT Quiz 1 · 29 Oct 2023 · open the full paper
Practice 29SA4 marks
Consider a dataset that has 200 data-points, each of which is either a zero or one. The Bernoulli distribution is used to model this data. If the MLE estimate for the parameter p of the Bernoulli distribution is 0.3, how many zeros does the dataset have?
MLT Quiz 2 · 06 Aug 2023 · open the full paper
Practice 30SA2 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
If p = P ( y = 1 ) is estimated to be 0.4, what will be the prediction for the point x = 3 using the Bayes classifier? Enter 1 or -1.
MLT Quiz 2 · 06 Aug 2023 · open the full paper
Practice 31SA2 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
If p = P (y = 1) is estimated to be 0.5 using MLE on a given training dataset, what will be the training error of the Bayes classifier for this problem?
MLT End Term · 07 Aug 2022 · open the full paper
Practice 32SA3 marks
A Gaussian Naive Bayes model is trained for a multi-class classification problem that has 12 features and 5 classes. Find the total number of parameters that have to be estimated for this model. Consider each parameter to be a scalar value. In other words, if we decide to store all the parameters in a Python list, with each element of the list being a float value corresponding to a single parameter, what is the size of this list? Ignore the priors in the calculation. Only focus on the parameters of the class conditional densities.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 33SA3 marks
A Gaussian Naive Bayes model is trained for a multi-class classification problem that has 10 features and 3 classes. Find the total number of parameters that have to be estimated for this model. Consider each parameter to be a scalar value. In other words, if we decide to store all the parameters in a Python list, with each element of the list being a float value corresponding to a single parameter, what is the size of this list? Ignore the priors in the calculation. Only focus on the parameters of the class conditional densities.