The dataset is randomly
sampled with replacement to create multiple subsets.A base model (e.g., decision tree) is trained on each subset.Predictions from all models are aggregated using using
majority voting (classification) or averaging (regression)
to make the final prediction.