Piecewise Polynomials and Splines
✏️ Local regression using range function.

In this case, estimated beta is equal to the mean of target in each area.

can be changed into .
✏️ Piecewise Cubic Polynomials

This equation satisfies three constrains that are continuous, first derivative continuous, and second derivative continuous in the border line.means this equation satisfies all constrains because it is a cubic function.
Parameter number
(# of range) (# of parameter per range) - (# of knot) (# of constrain per knot) = 3*4-2*3=6
In lagrange multiplier these two sentences have same meaning,
Maximize f(x,y), s.t. g(x,y)=k
Maximize h, s.t. h(x,y,d)=f(x,y)+d(g(x,y)-k)
It implies one constraint becomes one term in the lagrange equation. Thus, we minus the number of constrains when we derive the parameter number above.
✏️ Weakness of Local polynomial regression

It shows irregular tendency around border lines
It's hard to use extrapolation
The border lines mean the minimun or maximum of input variables. In these borders the variance of predicted value becomes big.
Last updated
Was this helpful?