Quiz Space

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

Question 15: Suppose you want to build a decision tree to help diagno…

Question 15

+4 marksNumerical answer

Suppose you want to build a decision tree to help diagnose a certain disease based on patient data. You have a dataset of 1000 patients labeled as either “positive” or “negative”. Here, positive represents patients with the disease and negative represents no disease. One of the feature used to diagnose is headache.
Below is the breakdown of the patients reporting headache:
Headache present: 300 positive, 50 negative
Headache not present: 100 positive, 550 negative

Use the following values if required:

  • log⁡2(0.4)=−1.32\log_2(0.4) = -1.32
  • log⁡2(0.6)=−0.74\log_2(0.6) = -0.74
  • log⁡2(0.86)=−0.22\log_2(0.86) = -0.22
  • log⁡2(0.14)=−2.84\log_2(0.14) = -2.84
  • log⁡2(0.15)=−2.74\log_2(0.15) = -2.74
  • log⁡2(0.85)=−0.23\log_2(0.85) = -0.23

Note: Use log⁡2\log_2 for the entropy calculations.

Based on the above data, answer the given subquestions.

What is the information gain for choosing the feature “headache” for splitting at the root node? Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.36 (accepted within ±0.02)

Question 15 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 4 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. Q9Perform a 3-NN regressor for the following dataset: | x_1 | x_2 | y | |---|---|---| | 1 | 2 | 3.5 | | 2 | 1 | 2.8 | | 3…
  10. Q10Which among the following represents the correct decision boundary for the decision tree? Note: Here + represents the l…
  11. Q11What will be the prediction for the new datapoint (2, 2)?
  12. Q12Consider a 2-class Naive Bayes classifier with first feature f_1 as binary and the second feature f_2 as Gaussian. Foll…
  13. Q13Consider a 2-class Naive Bayes classifier with first feature f_1 as binary and the second feature f_2 as Gaussian. Foll…
  14. Q14Suppose you want to build a decision tree to help diagnose a certain disease based on patient data. You have a dataset …