One decision tree is jumpy and easily fooled. Plant many slightly different trees, let them vote, and the crowd is smarter than any single tree. Click, grow and watch it happen.
Each tree trains on a bootstrap sample: draw n points with replacement. Some points get picked twice (bigger dots), and about 37% are never picked (hollow dots, called out-of-bag). Slide through the trees and see how differently each one carves up the plane.
Gini impurity = 1 − Σ p². 0 means a pure group; 0.5 is a perfect 50/50 mix. The tree picks the split with the lowest weighted impurity.
Pick any spot on the map. Every tree casts one vote, and the forest answers with the majority. The shade of the map is simply the share of trees that vote for each colour. Click or drag the white dot.
Individual trees often disagree near the boundary. Averaging many of them smooths out their individual mistakes.
Each point was left out of roughly a third of the trees. Let only those trees vote on it, and you get an honest test score with no separate test set. The curve shows how it improves as trees are added, then flattens.
Why it works: each tree overfits in its own random way. Their mistakes point in different directions, so voting cancels much of the noise while keeping the signal.
One tree, depth 8. It memorises every point and draws jagged islands around the noise.
Same deep trees, but 50 of them voting. The islands melt into a smooth boundary.
Flip 15% of the labels and compare train accuracy with out-of-bag accuracy.