How is the Out-of-Bag prediction computed for an individual training instance?
Last updated
For instance i, pass it only through trees whose bootstrap sample excluded i (about 37% of trees), then aggregate: majority vote or averaged probabilities for classification, mean for regression.
In-bag trees are excluded because they already fit i, which would leak the label and make error look optimistic.
If no tree has i out-of-bag (very few trees), i gets no OOB prediction and is dropped from the OOB score.