A sequence of simple questions partitions feature space.
At each node, choose a feature and a cut.
Send each event to the left or right child.
A leaf returns a class, a class fraction, or a regression value.
?
yes
?
signalbackground
no
?
backgroundsignal
Reminder: cutting distributions
For a selection :
Efficiency and purity answer different questions.
The ROC curve traces the operating points as the threshold moves.
Here the vertical axis is background rejection, .
Purity also depends on the signal fraction before selection.
One cut, three competing goals
Splitting index
A useful cut depends on the objective.
Objective
Example
What it measures
Select a sample
Purity
Composition after selection
Retain signal
Efficiency
Signal survival
Estimate sensitivity
A simple counting proxy
Grow a tree
Gini or entropy gain
Improvement in both children
Gini impurity
If is the weighted signal fraction,
A pure node has . A balanced node has .
The standard binary Gini impurity is . The factor of two does not change the best split.
Making a single split
1. Unweighted events
2. Weighted events
For node , use event counts:
Replace counts by sums of weights:
Score the cut with total impurity decrease:
Use the normalized weighted decrease:
Search all allowed features and thresholds, then choose the largest positive gain. Multiplying by recovers .
Where should the tree split?
Growing a tree
Sampling model used here
The two features are independent:
The noiseless label is signal inside an ellipse:
Each label flips independently with probability . The training sample contains events generated with seed 21.
Both features are searched at every node. Candidate cuts are midpoints between consecutive observed values; leaves contain at least two events.
How well does it do?
Training: fit the splits and leaf predictions.
Validation: choose depth and other settings.
Test: assess the chosen model once.
A model can improve on training data while getting worse on new data.
Keep the data split fixed while comparing settings.
For imbalanced classes, inspect class efficiencies and ROC curves as well as accuracy.
Overtraining
A fitted tree at depth 5
Each internal node shows the selected feature, cut, and impurity gain. Each leaf shows its prediction, signal fraction , and number of training events .
Bagging as random event reweighting
Start from . For tree , draw indices with replacement. The multiplicities obey
The bootstrap sample is the original sample with random integer weights
Mean multiplicity
Omitted events
Repeated events
Average weight is unchanged
About appear at least once
About appear more than once
Combining the bagged trees
Tree sends a new event to a leaf . Its signal probability is the weighted signal fraction in that leaf:
Ordinary bagging gives every trained tree the same prediction weight:
For hard tree labels , majority voting uses . For regression, average the numerical tree predictions.
Options for a bagged tree ensemble
Useful ensembles reduce shared errors between trees while controlling how each tree grows.
What changes for tree ?
Construction
Common name
Training events
Draw events with replacement, or use a random subsample
Bagging
Available features
At each node, search only randomly selected features
Random forest
Candidate cuts
Test random thresholds instead of every possible threshold
Extremely randomized trees
Growth rule
Control maximum depth, minimum leaf size, or pruning
Regularized trees
Removing features temporarily can force trees to discover alternative predictors. The aim is to reduce correlation between trees while keeping each tree useful:
Depth and bagging
Bagging
Bootstrap aggregating
Draw a training sample with replacement.
Train a tree on that sample.
Repeat, then average predictions or vote.
Different samples produce different trees. Averaging can reduce variance.