Smoothing spline (source code)

= Smoothing spline
{title2=$\sum_i(Y_i-g(x_i))^2+\lambda\int_a^b(g^{(m)})^2\,dx$}
{wiki}

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.