🧪 Bagging (Bootstrap Aggregating)

Bagging is a key ensemble learning technique used in Random Forests.

🧱 Steps in Bagging:

  1. Select k rows with replacement
  2. Train a decision tree on this bootstrap sample.

🌲 Random Forest = Bagging + Feature Sampling

Random Forests enhance bagging by adding a second layer of randomness:

🔁 Two Randomizations in Random Forests:

1. Row Sampling (Bagging)

2. Feature Sampling

This ensures trees make decisions using different subsets of features, leading to less correlation between trees.


⚡ Result: More Diverse Trees

Because of: