正在学习
11.3 BOOSTED REGRESSION TREES
11.3 BOOSTED REGRESSION TREES
Regression trees provide a simple way to map a vector of predictors to some univariate outcome, . We provide here a brief description of such methods following Hastie, Tibshirani, and Friedman (2009) and Rossi and Timmermann (2015).
Each regression tree splits the sample space defined by the predictors into “flat spots,” so that the predicted value is modeled as a constant, , within each state, . If the sample is split into separate subregions or states, , the fitted value from a regression tree, , with J terminal nodes and parameters, , takes the form
where is an indicator variable that equals 1 if and is 0 otherwise. Implementation of (11.12) requires deciding on which predictor variables to use to split the sample space and which split points to use. For example, if , a forecast may be based on a split of the predictors according to whether a particular variable takes a high or a low value.
Given a set of split points, , the constant term, is easily estimated. Under MSE loss, the estimated constant, , is simply the sample average of state :
Split points are more difficult to determine, particularly if the list of predictors, , is large. Often a sequential algorithm is used to split the sample space. For a given starting model, predictor, , and split point s , the algorithm would construct half-planes,
so as to minimize the sum of squared residuals:
Given choices of k and s the fitted values, and , are then
The best pairing of splitting variables and split points used in the first iteration can be determined by searching through each of the predictors, . Given the best partition from the first step, the data can next be partitioned into two additional states and the splitting process is repeated for each of the subsequent partitions. Predictor variables that are never used to split the sample space do not influence the forecast so the choice of splitting variable is similar to variable selection. This process is known as boosting.
Boosted regression trees are very flexible and can capture local features of the data that linear models may overlook. Boosting methods can be used to identify which of a large number of possible variables help to improve forecasting performance. They build on the idea that combining a series of simple prediction models can lead to more accurate forecasts than those available from any individual model.
A boosted regression tree is simply the sum of individual regression trees:
where is a regression tree of the form (11.12) used in the bth boosting iteration and B is the number of boosting iterations. Given the previous model, , the subsequent boosting iteration searches for parameters for
the next tree to solve a problem of the form
For a given set of state definitions , the optimal constants, , in each state are derived iteratively by solving the problem
where is the forecast error remaining after boosting iterations. The solution to this problem is the regression tree that most reduces the average of the squared residuals and is the mean of the residuals in the j th state.
Boosting algorithms iteratively reweight data used in the initial fit by adding new trees in a way that increases the weight on observations modeled poorly by the existing collection of trees. However, since the approach is sequential and successive splits are performed on fewer and fewer observations, this increases the risk of fitting idiosyncratic data patterns. Furthermore, there is no guarantee that the sequential splitting algorithm leads to the globally optimal solution.
Shrinkage in this context means that each iteration of the model moves only a small fraction of the optimal step of the learning algorithm
where δ is a small number such as . Subsampling means that each tree is fitted on a randomly drawn subset of the training data. Fitting the tree only on a subset of the data reduces the risk of overfitting or getting stuck in a local optimum. Finally, by minimizing mean absolute errors, the algorithm fits the conditional median of rather than the conditional mean used under MSE loss. The latter is often found to place too much weight on outliers in the data.
Forecasts from the boosted regression trees are simple to generate. The boosted regression tree is first estimated using data from . Then a forecast of is based on the model estimates and the value of the predictor variable at time
Rossi and Timmermann (2015) use boosted regression trees to predict time variations in the US equity premium. They find strong evidence that linear prediction models are misspecified, whereas boosted regression trees manage to pick up nonlinearities. Out-of-sample evidence suggests that the boosted regression trees yield better out-of-sample forecasts of both stock returns and stock market volatility than a range of benchmark models. Bai and Ng (2009) is another application of this method to diffusion indexes and macro data.
练习题
What is the primary purpose of regression trees in predictive modeling?
In the regression tree prediction form, what does the indicator variable represent?
Which of the following are true about the estimated constant in regression trees?
Determining split points in regression trees is straightforward when the number of predictors is small.
Boosting in regression trees involves repeating the splitting process for subsequent partitions after the initial split.
The fitted value from a regression tree with terminal nodes is given by the formula , where is the indicator variable that equals 1 if and is 0 otherwise. The parameters are defined as ___.
In regression trees, the constant term for a given state is estimated as the ___ of in that state.
Explain the role of boosting in regression trees and how it improves forecasting performance.
What is the formula for a boosted regression tree, and what does each component represent?
Which of the following statements are true about the fitted values and for given split points in regression trees?
Which of the following statements correctly describes the process of determining split points in regression trees and its relationship to minimizing the sum of squared residuals?
Select all the statements that correctly describe the boosting process in regression trees and its impact on model flexibility and forecasting performance:
The boosted regression tree form is represented as the sum of individual regression trees: , where is a regression tree of the form ___.
登录后解锁笔记、知识点解析、AI 问答
立即登录