A penalized function estimate balancing a residual loss against an integrated derivative penalty. For squared-error loss and the second derivative roughness penalty, the estimate is a cubic smoothing spline. Higher derivative orders give other spline degrees.
Let be the average of on successive knot intervals. Minimizing the displayed loss over gives a quadratic spline with constant tails outside the first and last knots. To prove the reduction, choose the unique constant-tail quadratic spline with the same interval averages as a candidate , and put . Since is constant on every knot interval, is continuous and vanishes on both tails, integration by parts gives . Consequently the data loss is unchanged and . The penalty decreases strictly unless is constant; its zero interval averages then force . The finite-dimensional quadratic optimization on this spline space also gives a unique minimizer because the interval-average map is injective.
For and at least two distinct design points, the unique minimizer of squared residuals plus is . The minimum roughness property of the natural cubic spline interpolant reduces the optimization to the value vector. The matrix is a positive-definite matrix, so the normal equations have a unique solution; the interpolation equality case gives uniqueness as a function. Linear tails are part of the natural boundary convention.
For distinct ordered observations , let be their natural cubic spline interpolant with values . Its roughness is a quadratic form, , where is positive semidefinite and its nullspace consists of vectors sampled from affine functions. Minimizing penalized least squares gives . Thus the smoothing matrix is and its effective degrees of freedom are . As the fit approaches interpolation and the trace approaches ; as it approaches the least-squares affine line and the trace approaches .

Articles by others on the same topic (1)

A smoothing spline is a type of statistical tool used for analyzing and fitting data. Specifically, it is a form of spline, which is a piecewise-defined polynomial function that is used to create a smooth curve through a given set of data points. The primary objective of using a smoothing spline is to find a curve that balances fidelity to the data (i.e., minimizing the error in fitting the data) with smoothness (i.e., avoiding overfitting the data).