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 .
Smoothing parameter Created 2026-10-06 Updated 2026-10-07
A smoothing parameter controls the amount of averaging or regularization in a fitted function. Increasing the penalty multiplier in a cubic smoothing spline discourages curvature and generally reduces effective degrees of freedom. Increasing a smoothing bandwidth enlarges local averaging neighbourhoods. Software may use a monotone transformed parameter such as spar, so its numerical value should not be confused with the raw penalty multiplier.