Quiz Space

Machine Learning Techniques · Quiz 2 · 3 Aug 2025 · May 2025 term

Question 9: Perform a 3-NN regressor for the following dataset: | x_1…

Question 9

+3 marksNumerical answer

Perform a 3-NN regressor for the following dataset:

x1x_1x2x_2yy
123.5
212.8
335.1
424.7
536.2
615.9

where, x=[x1x2]Tx = \begin{bmatrix} x_1 & x_2 \end{bmatrix}^T is a feature vector and yy is the label. What will be the predicted value for the test data point [32]T\begin{bmatrix} 3 & 2 \end{bmatrix}^T? Enter the answer correct to one decimal place.

Show answer

Correct answer: 4.2

Question 9 of 15 in the IIT Madras BS Machine Learning Techniques (MLT) Quiz 2 paper sat on 3 Aug 2025, in the May 2025 term (IIT M DEGREE AN EXAM QDB2 03 Aug 2025). It carries 3 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2In the Bayesian modeling for linear regression, we assume the following: y \mid x \sim \text{Normal}(w^Tx, \sigma^2 I) …
  3. Q3You are evaluating the performance of a linear regression model using different hyperparameter settings (learning rate …
  4. Q4Consider the linear regression model: y = w^Tx + \epsilon where \epsilon \sim \mathcal{N}(0, \sigma^2). Note: \hat{w}_{…
  5. Q5Figure question
  6. Q6Figure question
  7. Q7Figure question
  8. Q8Which among the following are true?
  9. Q10Which among the following represents the correct decision boundary for the decision tree? Note: Here + represents the l…
  10. Q11What will be the prediction for the new datapoint (2, 2)?
  11. Q12Consider a 2-class Naive Bayes classifier with first feature f_1 as binary and the second feature f_2 as Gaussian. Foll…
  12. Q13Consider a 2-class Naive Bayes classifier with first feature f_1 as binary and the second feature f_2 as Gaussian. Foll…
  13. Q14Suppose you want to build a decision tree to help diagnose a certain disease based on patient data. You have a dataset …
  14. Q15Suppose you want to build a decision tree to help diagnose a certain disease based on patient data. You have a dataset …