Professional Documents
Culture Documents
AAiT
AAU
Nov-2022, AA
2.
Linear Models for Regression
Where
w = (w0, . . . , wM−1)T and Ф = (Ф0, . . . , ФM−1)T.
Machine Learning Fantahun B. (PhD) @ AAU-AAiT 6
Linear Basis Function Models
Examples of Basis functions
Figure 3.1 Examples of basis functions, showing polynomials on the left, Gaussians
of the form (3.4) in the centre, and sigmoidal of the form (3.5) on the right.
• We can use the machinery of MLE to estimate the parameter ω and the
precision β:
with
• Solution:
(3.37)
Bayesian Linear Regression Model Results with 500 (left) and 15000 observations (right)
Machine Learning Fantahun B. (PhD) @ AAU-AAiT 32
Bayesian Linear Regression: Implementation Example
• When we want to show the linear fit from a Bayesian model, instead
of showing only estimate, we can draw a range of lines, with each
one representing a different estimate of the model parameters.
• As the number of datapoints increases, the lines begin to overlap
because there is less uncertainty in the model parameters.
• There is much more variation in the fits when using fewer data
points, which represents a greater uncertainty in the model.
• With all of the data points, the OLS and Bayesian Fits are nearly
identical because the priors are washed out by the likelihoods from
the data.