Foundations — Ensemble methods (voting, stacking, blending)
Before you can read a single formula in the parent note, you need to know what every squiggle means and what picture lives behind it. This page builds each one from nothing, in an order where each idea leans on the one before it.
1. A model, and what "" means
The picture: think of as a box. An arrow goes in carrying the facts about one email (words, sender, length). An arrow comes out carrying a verdict: "Spam" or "Not Spam".

Why the topic needs it: the whole point of an ensemble is to own many boxes at once. So we number them: . The little number below (the subscript) is just a name tag — "box number 3" is . It does not mean multiply or raise to a power.
2. Input , true answer , and the guess
The picture: a target. The bullseye is (the truth). Where your dart lands is (your guess). The gap between them is the error.
Why the topic needs it: ensembles combine many 's to land closer to the bullseye .
3. Bold and — a whole list of numbers
The picture: a single number is a dot on a line. A list of two numbers is a dot on a flat sheet (a grid). A list of many numbers is a dot floating in a space with many directions — impossible to draw, but the idea is the same: one point, many coordinates.
Why the topic needs it: in stacking the meta-model's input is literally the list of every base model's guess. Bold reminds you: this is a list, one slot per model.
4. Probability — how sure the model is
The picture: a slider bar from (left, "no") to (right, "yes"). A confident spam-detector pushes the slider near . An unsure one leaves it near .

Why the topic needs it: hard voting throws away the slider and keeps only "left or right". Soft voting keeps the whole slider position — richer information — which is why it often wins. You cannot understand the difference without knowing what measures.
5. Summation — "add these all up"
Reading it slowly:
- under the sign = where to start counting.
- on top = where to stop.
- to the right = the thing being added, with changing each step.
The picture: a row of buckets, one per model. pours them all into one big bucket.
Why the topic needs it: the ensemble average is literally "add up all guesses, then split the total into equal shares." That out front is the sharing.
6. The average, the bar , and
The picture:
- Average / mean: balance point of a see-saw with weights placed along it.
- Mode: the tallest bar in a bar-chart of votes.
Why the topic needs it: regression ensembles use the mean (average the numbers). Classification hard-voting uses the mode (most-voted label). Same spirit — "the group's answer" — but two different tools for two different kinds of output.
7. — "which choice wins?"
The picture: three horses (classes) run a race; each has a score. tells you the winning time; tells you the winning horse. Soft voting wants the horse.
Why the topic needs it: soft voting's formula says: for each class, average its probability across models, then pick the class with the top average.
8. Weights — some voices count more
The picture: a see-saw again, but now you can slide each model's weight closer to or further from the pivot. Heavier, further-out weights swing the result their way.
Why the topic needs it: the parent's [!mistake] fix uses . If you don't know is a dial from upward, that fix is gibberish.
9. Variance — how much guesses wobble
The picture: darts on a board. All clustered tight = low variance. Scattered wide = high variance.

Why the topic needs it: the headline result is the whole mathematical reason ensembles work. Averaging independent wobbly guesses shrinks the wobble by a factor of . This connects straight to the bias–variance tradeoff: ensembles are a variance-crushing machine.
10. The independence catch:
The picture: two dice. Rolling one tells you nothing about the other — independent. But two copies of the same model trained the same way? They stumble on the same hard cases together — not independent, so averaging them barely helps.
Why the topic needs it: this is why diversity matters. Identical models give (no gain). Diverse models (different algorithms, different data via cross-validation folds) get closer to true independence and real error reduction. It's the seed idea behind Random Forests and Boosting.
11. Out-of-fold — data a model has not seen
The picture: five index cards. Cover one, study the other four, then guess the covered one. Rotate which card is covered until every card has been guessed while hidden.
Why the topic needs it: stacking feeds the meta-model these honest, unseen guesses. Skip this and the meta-model learns the base models' cheating on training data — the leakage the parent warns about. This is pure cross-validation machinery reused for a new job.
How these feed the topic
Equipment checklist
Cover the right side and see if you can answer before revealing.