βοΈ Local regression using range function.
f(X)=Ξ²1βI(X<ΞΎ1β)+Ξ²2βI(ΞΎ1ββ€X<ΞΎ2β)+Ξ²3βI(ΞΎ2ββ€X) In this case, estimated beta is equal to the mean of target in each area.
f(X)=βΞ²1βI(X<ΞΎ1β)+Ξ²2βI(ΞΎ1ββ€X<ΞΎ2β)+Ξ²3βI(ΞΎ2ββ€X)+Ξ²4βI(X<ΞΎ1β)X+Ξ²5βI(ΞΎ1ββ€X<ΞΎ2β)X+Ξ²6βI(ΞΎ2ββ€X)X(f(ΞΎ1ββ)=f(ΞΎ1+β),f(ΞΎ2ββ)=f(ΞΎ2+β))β (XβΞΎ1β)+β can be changed into max(0,XβΞΎ1β).
βοΈ Piecewise Cubic Polynomials
f(X)=Ξ²1β+Ξ²2βX+Ξ²3βX2+Ξ²4βX3+Ξ²5β(XβΞΎ1β)+3β+Ξ²6β(XβΞΎ2β)+3β This equation satisfies three constrains that are continuous, first derivative continuous, and second derivative continuous in the border line.(XβΞΎkβ)+3β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.
Pointwisevar=Var[f^β(x0β)]