SAS
Module 6 Bagging, Forest, Boosting
Types of Error in Predictive Models:
- Bias: Generally caused by under-fit models. The model is too simple to fit the complex real-life system. The more complex the model, the less bias it generally has.
- Variances: Generally caused by over-fit models. Variability of the prediction that can be observed by taking different training data sets and using the same model
- We always need to make tradeoffs between bias and variances

Therefore, we need ensemble models (combination of the predictions from the component models) to enhance the prediction accuracy such as Bagging, Forest and Boosting
Bagging:
For regression model:
- Take repeated samples with replacement from the training set. Generate B different bootstrapped training data sets and generate B different decision trees
- Calculate the mean of responses as final response
- use mtry = p (number of predictors) 有多少个不同的predictor,就随机选择几个(可重复)放进training set

For classification model: - Record the class that each tree assigns to each observation and vote
- If the model provides probability estimates (logistic regression), we can also average the probabilities and choose the highest one
Random Forest:
- Same principle as bagging, but more accurate
- Bagging uses all predictors as split candidates, so some strong predictors may always be chosen so that the results are similar. Forest extend the bagging technique to limit

to produce more variation among the trees in the ensemble. Random forests “de-correlates” the bagging trees leading to more reduction in variance - Forests tend to give better prediction than any specific tree, and often outperform other classes of models
- Forests are hard to interpret, but they can be considered an “ideal” model for other models to be compared against
Gradient Boosting :Use errors to improve the model
Boosting Steps:
- Predict the response with a simple tree y0hat
- Find the error of this prediction e0
- Predict the error made by the previous tree e0hat
- Use the e0hat * shrinkage parameter + y0hat to have an improved predicted response y1hat
- Now, we got new error e1 from actual response y - y1hat
- Repeat these 5 steps for 100 times
本文深入探讨了预测模型中常见的误差类型,如偏差和方差,并介绍了如何通过集成学习方法如Bagging、Random Forest和Gradient Boosting来平衡这些误差,以提高预测准确性。Bagging通过创建多个决策树并平均其预测结果,而Random Forest在此基础上增加了预测变量的随机性,进一步减少模型之间的相关性。Gradient Boosting则通过逐步修正预测错误来改进模型。
480

被折叠的 条评论
为什么被折叠?



