Nptel Week 8
Nptel Week 8
ASSIGNMENT WEEK 8:
1. Which of the following is a common method for splitting nodes in a decision tree? (1
Mark)
A. Gini impurity
B. Cross-validation
C. Gradient descent
D. Principal component analysis
Answer: A
Answer: A
3. Which of the following is a popular algorithm for constructing decision trees? (1 Mark)
A. ID3
B. k-Nearest Neighbors
C. Support Vector Machines
D. Naive Bayes
Answer: A
4. What is the main difference between classification and regression trees in a CART
algorithm? (1 Mark)
A. Classification trees predict categorical variables, while regression trees predict
continuous variables
B. Classification trees use Gini impurity as the splitting criterion, while regression trees
use information gain
C. Classification trees can handle missing data, while regression trees cannot
D. Classification trees are computationally expensive, while regression trees are
computationally inexpensive
Answer: A
Ans: B. Only b
7. Which of the following is a common stopping criterion for growing a decision tree? (1
Mark)
8. For decision trees, what purpose does "one-hot encoding" serve? (1 Mark)
A. Handling missing data
B. Transform categorical data into numerical format that algorithms can process
C. Normalizing continuous variables
D. Reducing the dimensionality of the feature space
Answer: B
9. What's the primary drawback of utilizing a substantial maximum depth for a decision
tree? (1 Mark)
A. It leads to overfitting
B. It cannot capture the noise in the training data
C. It simplifies the computational complexity of the tree
D. It results in the tree underfitting the data
Answer: A
Answer: D
11. Which of the following is NOT commonly associated with the use of decision trees? (1
Mark)
A. Fraud detection
B. Stock price prediction
D. Image classification
Answer: D
12. How can decision trees be made more robust to noise in the data? (1 Mark)
Answer: C
Answer: D
14. If the true positive value is 10 and the false positive value is 15, what is the precision score
for the classification model? (1 Mark)
A. 0.6
B. 0.4
C. 0.5
Answer: B
Answer: A