/ THE IDEA
A node is one test, such as whether journey distance exceeds a threshold. A branch is one possible answer. A leaf is an ending that stores a prediction, often based on the training examples that reached it. Training chooses splits that make the resulting groups more useful for prediction. But adding branches can eventually describe accidents in the training data instead of patterns that persist. A tree that memorises every example may perform worse on unfamiliar cases.
THE FORMAL IDEA
input → test → branch → leaf prediction
| An input is the information available when deciding; a threshold is the cutoff used by a test. | | The path describes the model’s rule for this input. An understandable rule can still be based on biased data or a misleading feature. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Toy delivery tree: distance > 50 km? If no: predict 1 day. If yes: ask whether service is express. At 80 km and standard service: predict 3 days. Change only service to express: follow the other branch → predict 2 days.
|
The second input changes one answer, so it reaches a different leaf. You can trace the reason directly. A case at 49 km and one at 51 km can also receive abruptly different predictions despite being physically similar journeys.
/ SO WHAT?
That sharp boundary is useful to notice. A tree is a piecewise rule, not a statement that the real world changes suddenly at its chosen cutoff. Limiting depth, requiring enough examples per leaf and testing on unseen data help control overfitting. Combining several trees can improve prediction while making the explanation less compact.
ONE CAVEAT |
| The delivery rules are invented. Interpretability of a path does not establish that the prediction is correct, fair or causal; it only reveals how this particular model arrived there. |
KEEP THIS
Following a model’s questions can explain its decision, while testing unseen cases tells you whether those questions remain useful.
|
NEXT: Why a half-life does not mean everything vanishes
|