Basis Expansions & Regularization

We can't assure our function is linear.

To deal with non-linear problem, we can use transformed X instead of original X.

Basis Expansions and Regularization

f(X)=m=1Mβmhm(X)f(X)=\sum^M_{m=1}\beta_mh_m(X)

The basis function, f(X), is linear on h even though h(X)h(X)is non linear

Form

hm(X)=Xmh_m(X)=X_m

Basic linear model

hm(X)=Xj2  or  hm(X)=XjXkh_m(X)=X_j^2 \; or \; h_m(X)=X_jX_k

Polynomial model

hm(X)=log(Xj),Xjh_m(X)=log(X_j), \sqrt{X_j}

Log model

hm(X)=I(LmXkUm) h_m(X)=I(L_m\leq X_k \leq U_m)

Range model

When we add a third term into model, we have to add second, first, and constant term into this model. So polynomial model has the flaw of high dimension(too many independent variables.)

If you want to locally analysis the model, we have to put a range variable into this model.

To reduce the number of basis function, there are following three methods:

Methods

Example

Restriction

limited to additional model

Selection

Select only significant variables on the model

Regularization

Constrained coefficients

Natural Cubic Spline

N1(X)=1,  N2(X)=X,  Nk+2(X)=dk(X)dK1(X)dk(X)=(Xξk)+3(XξK)+3ξKξkN_1(X)=1,\; N_2(X)=X, \; N_{k+2}(X)=d_k(X)-d_{K-1}(X) \\ d_k(X)=\frac{(X-\xi_k)^3_+-(X-\xi_K)^3_+}{\xi_K-\xi_k}
θ^=(NTN+λΩN)1NTyf^(x)=j=1NNj(x)θ^j\hat{\theta}=(N^TN+\lambda\Omega_N)^{-1}N^Ty \\ \hat{f}(x)=\sum^N_{j=1}N_j(x)\hat{\theta}_j

Last updated

Was this helpful?