General linear model#

The linear regression model (18) is linear on both features x and weights w, since its predictions are given by the inner product

y^=xw=j=0dxjwj.

Of course, the target variable y can have nonlinear dependence on the predictors x. We can easily sacrifise the linearity on x and consider general linear model

(26)#y^=j=0Mϕj(x)wj.

The functions ϕj(x) are called basis functions.

Note

As before, the bias is included in (26) by putting ϕ0(x)=1.

Note that

  • if M=d and ϕj(x)=xj, then (26) turns into multiple linear regression;

  • if d=1 and ϕj(x)=xj then (26) becomes polynomial regression.

The popular choices of ϕj(x) are

  • ϕj(x)=exp((xμj)22s2) (Gaussian basis functions);

  • ϕj(x)=σ(xμjs) (sigmoidal basis functions).

Sigmoid function

σ(x)=11+ex
../_images/5bf28c2de24e59ca64514c1ccbcb10f49609477334a9df7b9945e2b6d420bb68.svg
../_images/4ecb221355fce30da7a15e81d752dc6162d41b05177d3827db566d4942b1a43f.svg

TODO

A lot of things…