A regression tree is grown on with . Which threshold does the first split choose using the sum of squared errors (SSE), and what are the leaf predictions and the SSE reduction?
Supervised learning, Regression trees
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can choose a regression-tree split by minimising the within-leaf SSE and report leaf means as predictions.
Key idea
Each leaf predicts the mean of its values. The best threshold minimises , with in each leaf.
Steps
- Total SSE before splitting: . SSE .
- Candidate thresholds lie between neighbouring values. Threshold : left has SSE and right has SSE , total . Threshold : left has SSE and right has SSE , total .
- Threshold : left has mean and SSE . Right has mean and SSE . Total .
- Thresholds and give totals and , so the best split is at .
- Leaf predictions are (left) and (right). The SSE reduction is .
- The two clusters (low for , high for ) match what we expected from the data.
Common mistakes
- Using the median or the overall mean as the leaf prediction.
- Forgetting to try every threshold and stopping at the first decrease.
- Using the variance without multiplying back by the leaf size when comparing splits.
How long your answer should be
Half a page with a small table of thresholds.
Read this
Previous in Supervised learning: In round 1 of AdaBoost on points with equal weights , a stump misclassifies 3 points. What are its error , its weight , and the new normalised weights of the misclassified and the correctly classified points?
Next in Supervised learning: In cost-complexity pruning, the cost of a tree is , where is the training error rate and the number of leaves. Node (as a leaf) has , and the subtree below it has 4 leaves with total error . Node in another branch has , and its subtree has 2 leaves with . At what is each pruned, which goes first, and how is chosen?