Observations that are not included in the bootstrap sample during bagging are referred to as Out of Bag Observations.
We use Out of Bag Observations in a similar way as a Validation Set in Cross Validation.
To predict a response for some variable, say we would choose all the trees whose bootstrap sample does not contain .
Regression
In the case of regression, we have
The predicted out of bag estimate is the average of all out of bag estimates from all the models.
For error, we would use the MSE.
Classification
We take the majority vote class.
For error, we would use the mis-classification rate.