Question 1
Consider a training dataset of points for a regression problem. Assume that the model is linear. Let and be the optimal weight vectors obtained from solving the following optimization problems.
Choose the most appropriate answer.
The IIT Madras BS Machine Learning Techniques (MLT) Quiz 2 paper sat on 6 Aug 2023, in the May 2023 term: 16 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Consider a training dataset of points for a regression problem. Assume that the model is linear. Let and be the optimal weight vectors obtained from solving the following optimization problems.
Choose the most appropriate answer.
Correct answer
Correct answer
Correct answers
Which of the following statements are true about the decision tree algorithm?
Decision trees are prone to overfit if the maximum depth is set too low.
Decision trees are prone to underfit if the maximum depth is set too low.
Decision trees are sensitive to small perturbations in the dataset and can result in different tree structures.
Decision trees can handle both numerical and categorical features.
Correct answers
Decision trees are prone to underfit if the maximum depth is set too low.
Decision trees are sensitive to small perturbations in the dataset and can result in different tree structures.
Decision trees can handle both numerical and categorical features.
Which of the following statements is/are true regarding solution of Ridge regression problem?
Correct answers
Consider kernel regression with the kernel function applied on the following dataset.
The optimal weight vector is given by:
where is transformation mapping corresponding to the given kernel. What will be the prediction for the data point ?
Correct answer: 100
Correct answer: 100
Consider the following data set:
Assuming a ridge penalty , what will be the value of ?
Here and are the Ridge and MLE estimates of the weight vectors, respectively. Assume that the label vector of shape is known. Enter your answer correct to two decimal places.
Correct answer: 0.675 (accepted within ±0.025)
Correct answer: 0
Consider a binary classification problem and a decision tree that is being trained to classify the points. In one of the internal nodes in this tree, 75% of the data-points belong to one of the two classes and the rest belong to the other class. You are not given the information about which class is more numerous in this node.
Based on the above data, answer the given subquestions.
Do you have enough information to find the entropy of this node?
Yes
No
Correct answer
Yes
Consider a binary classification problem and a decision tree that is being trained to classify the points. In one of the internal nodes in this tree, 75% of the data-points belong to one of the two classes and the rest belong to the other class. You are not given the information about which class is more numerous in this node.
Based on the above data, answer the given subquestions.
If the answer to the previous questions is "Yes", find the entropy of the node. Use log2 and enter your answer correct to three decimal places.
If the answer to the previous question is "No", enter -1 as your answer.
Correct answer: 0.81 (accepted within ±0.02)
Based on the above data, answer the given subquestions.
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.
Correct answer: -1
Based on the above data, answer the given subquestions.
Correct answer
Based on the above data, answer the given subquestions.
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?
Correct answer: 0.5
Consider a naive Bayes model is trained on the following data matrix of shape and corresponding label vector :
Assume that and are estimates for and , respectively. Here, is the feature. These parameters are estimated using MLE. Do not apply any smoothing on the dataset.
Based on the above data, answer the given subquestions.
Correct answer: 0.5
Consider a naive Bayes model is trained on the following data matrix of shape and corresponding label vector :
Assume that and are estimates for and , respectively. Here, is the feature. These parameters are estimated using MLE. Do not apply any smoothing on the dataset.
Based on the above data, answer the given subquestions.
Correct answer: 0