This page builds every symbol the parent note Feature importance from trees throws at you, starting from absolute zero. If the parent wrote NNtΔi(t) and you froze — this page unfreezes you, one symbol at a time.
Before any symbol, hold this picture in your head.
Look at the figure. At the top is a box holding a mix of coral and mint marbles — messy. We ask a question ("is the marble bigger than a coin?"), and it splits the box into two smaller boxes below. Each smaller box is (hopefully) less mixed — more of one colour. Every circle here is called a node. The top node is the root, the boxes below are its children.
That's the whole game. Everything else is just notation for "how messy", "how much less messy", and "how much data was affected".
Why the topic needs these. Later we weight a question by "how many marbles it touched", which is exactly Nt out of N. So N and Nt are the raw counts that make weighting possible.
The little letters attached to N and i are just labels for which box we mean.
Read the figure: one parent box t with Nt marbles pours into a left box tL (holding NtL) and a right box tR (holding NtR). Every marble goes to exactly one side, so the counts always add up:
The parent note writes ∑kpk2. Two new symbols: pk and ∑.
Why the topic needs this. "Messiness" (impurity) will be built entirely out of these proportions — a box that is all one colour has one pk=1 and the rest 0; a box that is evenly split has small pk everywhere. The sum-of-squares captures that difference.
Now we can define the star symbol: i(t), read "the impurity of node t."
The figure shows three boxes and their Gini impurity1−∑kpk2:
All coral → i=1−12=0 (pure, floor value).
3 coral / 1 mint → i=1−0.625=0.375.
Even 2 / 2 → i=1−(0.52+0.52)=0.5 (the maximum mess for two colours).
For number columns (regression) the messiness meter is variance — how spread out the numbers are around their average. Same idea, different flavour; the parent uses iMSE there.
This is the heart of the topic. New symbol: Δ (Greek capital delta).
WHAT we just did: subtracted the children's messiness from the parent's messiness.
WHY the fractions NtNtL: they are the shares of marbles going left and right. A child holding more marbles should count more toward the "after" mess — so we weight each child's impurity by its share. These two fractions add to 1, so the bracket is a genuine weighted average.
WHAT IT LOOKS LIKE: the tall parent bar shrinking down to two shorter child bars in the figure below.
In the figure, the coral bar (parent impurity 0.5) is the "before". The two mint bars are the children; their sample-weighted average is the "after" line. The green gap between them is Δi(t) — the cleanup earned by this one question.
We now know a question's local payoff Δi(t). But a question near the root touches everyone; a question deep down touches a handful. To be fair we scale by how much of all the data reached that node.
Now every piece of
Imp(f)=∑t:split(t)=fNNtΔi(t)
is de-mystified:
Symbol
Plain words
Picture
Imp(f)
importance of feature f
total points feature f scored
∑t:split(t)=f
add over every node that asked about f
walk the tree, collect f's boxes
NNt
slice of all data reaching that box
pie fraction
Δi(t)
cleanup at that box
shrinking-bar gap
For a whole forest you just average Imp(f) over all trees and normalize so the importances sum to 1. That normalization, biases, and better alternatives (Permutation Importance, SHAP Values) are the parent note's job — you now have the vocabulary to read it.