What spline regression adds

A spline fit uses piecewise behavior, so one curve can bend in different regions without forcing a single global polynomial to do all the work.

This tool uses a truncated-power basis with internal knots kappajkappa_j, which lets the curve gain extra flexibility after each knot location.

That makes spline regression useful when a trend changes direction or steepness across the observed range.

How to read the fit

  • The plotted points are the original observations.
  • The smooth line is the fitted spline response hatyhat{y}.
  • Dashed guides show internal knots where the basis gains extra shape freedom.