Random Forest
Context: FIT1043_MOC Β· an ensemble of decision trees Β· a single tree overfits β a forest averages that away
Quick Revision
- π― Objective: combine many decision trees into one predictor β aggregate their outputs for a stabler prediction.
- β‘ Key Constraint: the βrandomβ is the point β each tree sees a different random slice of data/features, so their errors are uncorrelated and cancel on aggregation.
π Core
- Definition β an ensemble-learning method that constructs a number of decision trees and combines them.
- Diversity β each tree is grown on a random subset of the data (and features), so trees differ.
- Aggregate β classification β majority vote across trees; regression β average of tree outputs.
- Payoff β averaging many trees reduces the variance/overfitting of a single deep tree (an ensemble effect).
β οΈ Common Mistakes
- π‘ One tree β a forest β a lone decision tree can overfit; the forestβs strength is combining many diverse trees.
- π‘ Randomness is deliberate β if every tree were identical, averaging would gain nothing; random data/feature subsets create the needed diversity.
π§ Active Recall
How does a random forest improve on a single decision tree?
Answer
- Short answer: It builds many decision trees on random subsets of data/features and aggregates them (vote for classification, average for regression), reducing the variance/overfitting of any single tree.
- Why: Uncorrelated errors cancel β diverse trees make different mistakes, so combining them yields a more stable, accurate prediction (ensemble averaging).