General linear model#
The linear regression model (18) is linear on both features \(\boldsymbol x\) and weights \(\boldsymbol w\), since its predictions are given by the inner product
Of course, the target variable \(y\) can have nonlinear dependence on the predictors \(\boldsymbol x\). We can easily sacrifise the linearity on \(\boldsymbol x\) and consider general linear model
The functions \(\phi_j(\boldsymbol x)\) are called basis functions.
Note
As before, the bias is included in (26) by putting \(\phi_0(\boldsymbol x) =1\).
Note that
if \(M=d\) and \(\phi_j(\boldsymbol x) = x_j\), then (26) turns into multiple linear regression;
if \(d=1\) and \(\phi_j(x) = x^j\) then (26) becomes polynomial regression.
The popular choices of \(\phi_j(\boldsymbol x)\) are
\(\phi_j(x) = \exp\big(-\frac{(x-\mu_j)^2}{2s^2}\big)\) (Gaussian basis functions);
\(\phi_j(x) = \sigma\big(\frac{x-\mu_j}s\big)\) (sigmoidal basis functions).
Sigmoid function
TODO
A lot of things…