statable Statistics for study and research

Splines (spline regression)

A curve made up of polynomial pieces that join smoothly at fixed points (knots). It reproduces nonlinear relations flexibly without needing a single polynomial of high degree.

Example: Age acts on blood pressure first slowly, then more strongly. A spline with two knots reproduces this bend.

Caution: Number and position of the knots are decisions. Too many knots lead to overfitting, and at the edge of the data the curve is uncertain.

Related

Open in Statable