Apex › Storage & databases

Why a forest beats one tree (bagging)

A single deep tree overfits — it memorizes noise, so it aces training data but generalizes badly. A random forest trains many trees, each on a bootstrap resample with a random feature subset per split, and votes. The decorrelated trees make different mistakes that cancel: same low bias, far lower variance, a smooth boundary. Verified in node: single deep tree 98% train / 72% test (overfit) → forest ~76% test by a few trees. Slide the tree count and watch the jagged boundary smooth into the true circle.

More in Storage & databases