With squared loss, run two rounds of gradient boosting on and , using a stump that splits between and in each round and a learning rate . What is the training MSE before boosting (the constant model), after round 1, and after round 2?
Supervised learning, Gradient boosting
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can run gradient boosting by hand: initial constant, residuals, stump fit, shrunk update.
Key idea
For squared loss, the negative gradient is the residual . Each round fits a stump to the residuals and adds times its output to .
Steps
- Initial model: . Residuals: . MSE .
- Round 1: the stump predicts the mean residual on each side: on the left and on the right. With the model becomes for and for .
- New residuals: . MSE .
- Round 2: the stump predicts the mean residual: on the left and on the right. Adding of this gives and .
- Residuals now: . MSE .
- Each round shrinks the mean residual on each side by the factor (from to here), so the error falls steadily. The learning rate trades fewer rounds against overfitting risk.
Common mistakes
- Fitting the stump to rather than to the residuals.
- Forgetting the learning rate and adding the full stump output.
- Using the same in round 2 instead of the updated model.
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: The SVM objective is minimised by stochastic subgradient descent (Pegasos) with step . With and , what is the result of running three steps on the single points , and , in that order, and what is the update rule?
Next in Supervised learning: How do you show that the AdaBoost classifier weight is the value that minimises the exponential loss, given a weak classifier with weighted error ?