You are comparing ensemble methods for a supervised learning task and want to explain when each one is appropriate.
Explain the difference between bagging and boosting, and give an example of an algorithm that uses each.