How is bagging different from boosting?



How is bagging different from boosting?..

Answer / Ankit Singh Chauhan

Bagging (Bootstrap Aggregating) and Boosting are ensemble methods used to improve the performance of machine learning models by combining multiple models. However, they differ in their approach.nnBagging creates multiple subsets of the data by randomly sampling with replacement and trains a separate model on each subset. The final prediction is made by averaging (for regression) or voting (for classification) the predictions of individual models. This helps reduce variance but may increase bias.nBoosting, on the other hand, trains multiple weak models sequentially, where each new model focuses on correcting the mistakes made by the previous one. The final prediction is a weighted sum of the predictions from all models. Boosting reduces bias but can increase variance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Science Interview Questions

Explain supervised learning?

1 Answers  


What is the definition of the unit test?

1 Answers  


How will you cut a circular cake into 8 equal pieces?

1 Answers   Google,


What is nosql? Name some examples of nosql databases. What is a key value store? What is column storage? What is a document database?

1 Answers  


What is overfitting?

1 Answers  


Explain the benefits of using statistics by data scientists

1 Answers  


Will Uber cause city congestion?

1 Answers   Uber,


What is the probability of pulling a different shape or a different colour card from a deck of 52 cards?

1 Answers   Facebook,


Describe some assumptions considered important for linear regression?

1 Answers  


Print the elements of a matrix in zig-zag manner.

1 Answers  


Which plot will you use to access the uncertainty of a statistic?

1 Answers  


What do you understand by bias, variance trade-off?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)