正在学习

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?

A. To increase the number of predictors in the model
B. To partition the space and estimate different models on separate partitions while maintaining continuity
C. To reduce the computational complexity of the model
D. To ensure all coefficients are positive

In a forecasting regression using splines, what happens at the point ?

A. The model switches from a cubic to a linear regression
B. The model switches from one linear regression to another, and the curves meet at
C. The model stops estimating any further values
D. The model becomes discontinuous at

What is a cubic spline?

A. A model that is linear in
B. A model that is a polynomial in up to
C. A model that only uses quadratic terms
D. A model that includes only the intercept term

What are the characteristics of the partition points in spline regression?

A. They are known as knots
B. They are randomly selected
C. They determine where the model changes its form
D. They are always at the mean of the predictor variable
E. They are values of in the support of the predictor variable

Which of the following statements about the simplest cubic spline model are correct?

A. It includes terms up to
B. It includes an intercept term
C. It does not include any interaction terms
D. It includes terms of the form
E. It is estimated using maximum likelihood estimation

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?

A. The model becomes less complicated
B. The choice of knot positions becomes more complex
C. A large number of terms and coefficients need to be estimated
D. Polynomials in predictors and their cross products can be included
E. The model gets very simple to interpret

Which of the following statements about sieve estimation are correct?

A. It approximates an unknown function by combinations of functions of the data
B. It constructs a forecasting model with a linear lead term and nonlinear terms
C. It always uses polynomials as the basis functions
D. It seeks to minimize the average sample loss
E. It is only applicable to linear models

How does the inclusion of a linear lead term in sieve estimation benefit the model?

Which of the following statements about splines is correct?

A. Splines are used to partition the space such that different linear models are estimated on separate partitions, ensuring discontinuity at the partition points.
B. In a cubic spline model, the model is a polynomial in up to , and the partition points are called knots.
C. The simplest cubic spline model does not include any terms involving .
D. When estimating a cubic spline model, the coefficients are estimated using a method other than OLS.

Which of the following are issues that can arise in spline regression? Select all that apply.

A. Near the boundaries of the support for the observed predictors, the fitted model can give erratic results.
B. The model becomes very complicated as the dimension of increases.
C. The coefficients in the cubic spline model can be vastly different from each other, causing the fitted model to vary a lot.
D. The cubic spline model can only be estimated using methods other than OLS.

登录后解锁笔记、知识点解析、AI 问答

立即登录