2
$\begingroup$

If we have a regression spline of d degree of freedom then why it is neccessary to have its first d-1 derivatives be continous ?

For example if we have a cubic spline then why it is neccessary to have its first two derivatives (i.e. First derivatives and Second derivatives) to be continuous ?

$\endgroup$
1
  • 1
    $\begingroup$ My guess is that's part of the definition of a spline. If you want discontinuous predictions go for it (think: a small change in the inputs leads to drastic changes in predictions - do you want this) $\endgroup$ Commented Apr 10, 2016 at 14:17

1 Answer 1

2
$\begingroup$

You can fit polynomials with whatever order of continuity of derivatives you like (including not having any of them continuous), but if it doesn't have the derivatives being continuous to the required order, it's not strictly a spline.

This is because continuity of derivatives to a particular order is part of the definition of a spline.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.