2.3.10 · D1Tree-Based & Instance Methods

Foundations — Boosting concept and intuition

1,789 words8 min readBack to topic

This page assumes you have seen nothing. We build every symbol in the parent boosting note from the ground up.


0. The picture we are always in

Everything in boosting is about one job: given an input , guess an output .

  • = the thing you know (a house's size, a patient's blood test). Think of it as a dot on a horizontal axis.
  • = the thing you want to predict (the house price, "sick or healthy"). Think of it as height, on the vertical axis.
  • A model is a machine: feed it , it spits out a guess . On the picture, is a curve — for every horizontal position it tells you a height.

1. Subscripts and the sequence

Boosting does not make the curve in one shot. It makes a rough curve, then a less rough one, then better still. To talk about "the curve after improvements" we need a counter.

Read as "F sub m-minus-one": if we're on round , then , the curve built from the first two improvements.


2. The index — pointing at one data point

The curve must please many data points at once. We need a way to say "the 5th point" without writing it out.


3. Residual — the "mistake" made precise

Boosting's slogan is "fix the mistakes." What is a mistake as a number?

The double subscript just means "the residual of point , measured at round ." Two counters, two subscripts.


4. Weak learner and the stump

Each improvement is done by a small, humble model.


5. The sum , weight , and the additive model

Now we combine the humble models. The Greek capital sigma is just shorthand for "add these all up."

Putting it together, the parent's headline formula:


6. Loss — scoring the badness

To say a curve is "better," we need a badness score.


7. The gradient and pseudo-residuals

The negative slope points downhill, so:


8. Learning rate — the tiny step


The prerequisite map

Function F of x - a curve

Sequence F0 F1 Fm

Data points xi yi with index i

Residual - truth minus guess

Weak learner hm - a stump

Additive sum with weights alpha

Loss L - the badness score

Gradient of L - which way is downhill

Pseudo-residual rim

Learning rate nu - tiny step

BOOSTING - Fm equals Fm minus one plus nu alpha hm

Related routes: Bagging and Bootstrap Aggregation and Random Forests average independent trees; boosting instead chains them. The engine here powers Gradient Boosting Machines (GBM) and XGBoost.


Equipment checklist

What does mean in plain words?
A machine/curve that takes input and returns one guess for the output.
What is the difference between the counters and ?
counts rounds (which model in the sequence); counts data points (which row).
What is ?
The frozen ensemble built from all improvements before the current round .
Write the residual and say what its sign means.
; positive means the curve is below the point (under-guessed), negative means above (over-guessed).
What is a stump?
A decision tree with a single yes/no split, giving two flat output levels — a deliberately weak learner.
What does say out loud?
Add up all the weak learners' outputs, each scaled by its trust weight .
What does a loss function return, and what does big mean?
A badness number; big = bad prediction, zero = perfect.
What question does the derivative answer?
If I nudge the guess slightly, which way and how fast does the loss change (which way is downhill).
For squared loss, what does the pseudo-residual equal?
The ordinary residual .
What is and why keep it small?
The learning rate; small steps avoid overshooting/overfitting, traded off against more rounds .