正在学习
11.2.2 Splines
11.2.2 Splines
Splines provide a method for effectively partitioning the space so that different models are estimated on separate partitions in such a way that the models remain continuous over the full range of z. For example, consider a forecasting regression that allows the model to be one linear regression for and another for such that the curves meet at . In practice, often a cubic spline is used so that the model is a polynomial in z up to . The partition points are known as knots.
Consider the problem of predicting with a univariate predictor, . The simplest cubic spline would involve estimating the model,
where the knots are values of in the support of the predictor variable. Application of the cubic spline method requires choosing the location of the knots, and hence selecting m. A standard approach is to simply choose them as evenly spaced percentiles of z with m dependent on the sample size; larger values for m result in a less smooth model and also require a greater number of parameters to be estimated. A common choice for a sample size of 100 is to use knots at the 20th, 40th, 60th, and 80th percentiles. Given such knots, estimation of (11.7) can proceed simply by OLS.
Two issues are often considered in spline regression of simple forms such as (11.7). First, near the boundaries of the support for the observed predictors, the fitted model can give very erratic results since the data are not influential in fitting the curve near these points. Hence, the cubic terms can result in large slopes at these points. To overcome this, a standard procedure is to place knots at the ends of the support and use linear functions for the partition between these and the closest knots. It is not clear that this is so helpful since it involves generating forecasts for situations that have hardly ever been previously observed. In such situations a forecaster probably does not want to rely on extrapolating from a model whose main property is that it is picking up nonlinearities and using them to extrapolate over unobserved data.
The second issue that arises is that if the coefficients in (11.7) are vastly different from each other, then the fitted model can vary quite a bit. To counter this, differences in the parameter estimates can be penalized, e.g., by minimizing a weighted sum of squared errors and the penalty term. Penalties usually are of the form , where is the derivative or second derivative of the estimated function. For example, the second derivative of the cubic spline in (11.7) is . Integrating the square of this over from the lower to the upper points of the support of the data results in a penalty . The estimation problem now is in the form of a generalized Ridge regression which has a simple closed-form solution (see chapter 6).
A final difficulty in using spline models is that the model gets very complicated as the dimension of z increases. Even with only two predictors, we could include not only polynomials in both predictors but also their cross products. This also complicates the choice of the knot positions since we now need to partition a larger space. One approach is to partition along each of the z-variables independent of the other predictors; however this introduces a large number of terms and hence more coefficients to estimate.
练习题
What is the primary purpose of using splines in regression analysis?
In a forecasting regression using splines, what happens at the point ?
What is a cubic spline?
What are the characteristics of the partition points in spline regression?
Which of the following statements about the simplest cubic spline model are correct?
In the cubic spline method, the number of knots is independent of the sample size.
Estimation of the cubic spline model can proceed simply by OLS once the knots are chosen.
The partition points in spline regression are known as ___.
To overcome the boundary issue in spline regression, a standard procedure is to place knots at the ends of the support and use ___ functions for the partition between these and the closest knots.
Explain how the second derivative of the cubic spline model is used to penalize differences in parameter estimates.
What is the form of the estimation problem when differences in parameter estimates are penalized in a cubic spline model?
Which of the following are difficulties associated with using spline models as the dimension of increases?
Which of the following statements about sieve estimation are correct?
How does the inclusion of a linear lead term in sieve estimation benefit the model?
Which of the following statements about splines is correct?
Which of the following are issues that can arise in spline regression? Select all that apply.
登录后解锁笔记、知识点解析、AI 问答
立即登录