Before you readHow can you fit a curve without changing the least-squares method?
Watch: Linear regression 3: Polynomial regression and basis functions · Herman Kamper
A basis function turns the input into a feature. Stack such features in and fit a weighted sum:
The prediction can be nonlinear in but it is still linear in the weights. The design matrix has row for observation so the normal equations are still
A polynomial basis uses A Gaussian basis function is a bump centred at with width set by These bumps are also called radial basis functions (RBFs).
Recall
In what sense is a basis-function model still linear?Recall
What is row of the design matrix Recall
Where is a Gaussian basis function largest?Exercise
Give the row of at for the ordered basis Exercise
Fit by least squares to and Give as a fraction or to three decimal places.