Neural Networks Overview
- 16Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary advantage of using decision trees over neural networks according to the lecture?
What is the primary advantage of using decision trees over neural networks according to the lecture?
16 questions
- 1
What is the primary advantage of using decision trees over neural networks according to the lecture?
- A
They are easier to interpret and explain to non-experts.
- B
They can automatically learn feature representations.
- C
They require less training data to perform well.
- D
They achieve higher predictive accuracy on all datasets.
Correct answer
AThey are easier to interpret and explain to non-experts.
Explanation
The lecture emphasizes interpretability as a key strength of decision trees, contrasting with the complexity of neural nets.
- A
- 2
In the pneumonia risk example, why did the interpretable model show that asthma patients had lower risk of death?
- A
Because asthma patients have stronger immune systems.
- B
Because the neural network misclassified them.
- C
Because the data had a labeling error.
- D
Because they were admitted to the ICU and received aggressive care.
Correct answer
DBecause they were admitted to the ICU and received aggressive care.
Explanation
The interpretable model revealed that asthma patients were sent to the ICU, reducing their risk – an example of Simpson's paradox.
- A
- 3
A decision tree is defined as a binary tree where internal nodes specify a split and leaf nodes specify a:
- A
Label or prediction value.
- B
Probability distribution.
- C
Gradient update direction.
- D
Dimension index and split value.
Correct answer
ALabel or prediction value.
Explanation
Internal nodes have a split dimension j and split value s; leaf nodes contain a label (for classification) or a real value (for regression).
- A
- 4
What distinguishes a classification tree from a regression tree?
- A
Classification trees have leaf labels as averages; regression trees have leaf labels as modes.
- B
Classification trees use binary splits; regression trees use multi-way splits.
- C
Classification trees predict discrete classes; regression trees predict continuous values.
- D
Classification trees require at least two features; regression trees work with one feature.
Correct answer
CClassification trees predict discrete classes; regression trees predict continuous values.
Explanation
The only difference is the nature of the labels: discrete for classification, continuous for regression.
- A
- 5
What kind of partition does a decision tree create on the feature space?
- A
A set of non-convex regions with curved boundaries.
- B
An axis-aligned partition (rectangular regions).
- C
A set of linear decision boundaries similar to logistic regression.
- D
A Voronoi tessellation based on training points.
Correct answer
BAn axis-aligned partition (rectangular regions).
Explanation
Because splits are on a single feature at a threshold, the resulting regions are axis-aligned rectangles.
- A
- 6
In a regression tree, how is the prediction at a leaf node typically determined?
- A
By using a linear regression model on the leaf’s data.
- B
By returning the most frequent label in that leaf.
- C
By taking the median of the training labels in that leaf.
- D
By taking the average of the training labels in that leaf.
Correct answer
DBy taking the average of the training labels in that leaf.
Explanation
To minimize squared error, the optimal constant prediction is the mean of the labels in that region.
- A
- 7
Why is the set of parameters in a decision tree not of fixed dimension?
- A
Because the split values are real numbers.
- B
Because the tree depth and number of nodes are determined during training.
- C
Because the features are not all of the same type.
- D
Because the leaf values are continuous and unbounded.
Correct answer
BBecause the tree depth and number of nodes are determined during training.
Explanation
Unlike linear models with a fixed number of coefficients, a decision tree can grow in size (more nodes), leading to a variable parameter count.
- A
- 8
In the greedy tree-building algorithm, how are candidate split values chosen for a continuous feature?
- A
By using the feature’s mean and median as candidates.
- B
By randomly sampling 1000 values from the feature’s distribution.
- C
By only considering values that lie between consecutive data points along that feature.
- D
By evaluating every real number in the feature’s range.
Correct answer
CBy only considering values that lie between consecutive data points along that feature.
Explanation
Only splits that change which training points fall on which side affect the training loss, so we consider split values between data points.
- A
- 9
What is the role of the hyperparameter k in the BuildTree algorithm?
- A
It sets the maximum tree depth.
- B
It controls the number of features considered at each split.
- C
It determines the learning rate for gradient descent.
- D
It sets the minimum number of points required in a leaf to stop splitting.
Correct answer
DIt sets the minimum number of points required in a leaf to stop splitting.
Explanation
The algorithm stops splitting when the number of points in a node falls to k or less.
- A
- 10
Why might stopping tree growth as soon as the training loss does not improve be problematic?
- A
It may prevent the tree from capturing interactions that require multiple splits.
- B
It increases the computational cost unnecessarily.
- C
It always leads to overfitting.
- D
It only works for regression trees, not classification trees.
Correct answer
AIt may prevent the tree from capturing interactions that require multiple splits.
Explanation
The XOR-like pattern example shows that a single split may not reduce loss, but two splits can yield a perfect model. Premature stopping misses such cases.
- A
- 11
What is the cost-complexity pruning objective for a tree T?
- A
∑iL(y(i),T(x(i)))+α⋅∣leaves(T)∣
- B
∑iL(y(i),T(x(i)))+α⋅∑j∣sj∣
- C
∑iL(y(i),T(x(i)))+α⋅number of internal nodes
- D
∑iL(y(i),T(x(i)))+α⋅depth(T)
Correct answer
A∑iL(y(i),T(x(i)))+α⋅∣leaves(T)∣
Explanation
The penalty is on the number of leaves, encouraging simpler trees.
- A
- 12
When pruning a tree, what happens as the regularization parameter α increases from 0?
- A
The tree is replaced by a single leaf immediately.
- B
Subtrees that do not improve training loss enough are collapsed into leaves.
- C
The tree becomes deeper and more complex.
- D
The training loss becomes zero.
Correct answer
BSubtrees that do not improve training loss enough are collapsed into leaves.
Explanation
Increasing α makes it costly to keep leaves; subtrees that do not reduce loss enough are pruned, producing a sequence of smaller trees.
- A
- 13
What does bagging stand for?
- A
Batched averaging of predictors.
- B
Binary adaptive gradient sampling.
- C
Bootstrap aggregating.
- D
Backward aggregating of gradients.
Correct answer
CBootstrap aggregating.
Explanation
Bagging = Bootstrap Aggregating: create multiple training sets by bootstrap sampling, train a predictor on each, then aggregate.
- A
- 14
In bagging, how are the individual predictors combined for regression?
- A
By voting on the class label.
- B
By averaging their predictions.
- C
By selecting the predictor with the lowest training error.
- D
By taking the median of their predictions.
Correct answer
BBy averaging their predictions.
Explanation
For regression, bagging averages the outputs of all predictors.
- A
- 15
What additional randomness does a random forest introduce compared to bagged decision trees?
- A
It randomly perturbs the split values after training.
- B
At each split, it considers only a random subset of features.
- C
It randomly shuffles the labels of the training data.
- D
It uses a random subset of training points for each tree.
Correct answer
BAt each split, it considers only a random subset of features.
Explanation
Random forests select m features at random from the full set before choosing the best split, reducing correlation between trees.
- A
- 16
What is a key trade-off between using a single decision tree and a random forest?
- A
Decision trees are more interpretable but random forests usually have better predictive accuracy.
- B
Decision trees are faster to train but slower to predict.
- C
Decision trees require fewer features than random forests.
- D
Random forests are easier to visualize than decision trees.
Correct answer
ADecision trees are more interpretable but random forests usually have better predictive accuracy.
Explanation
The lecture highlights that decision trees are interpretable but less flexible; random forests improve accuracy at the cost of interpretability.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.