Contents
We are working on the full parameter posterior in Bayesian Linear Regression, where the weight vector is updated from a Gaussian prior using a Gaussian likelihood. The canonical result is
where
and
This posterior summarizes uncertainty-aware regression under the assumptions of a Gaussian prior, Gaussian observation noise, and known noise variance .
Deep Breakdown
The parameter posterior is the central object in Bayesian Linear Regression. Instead of producing one single “best” coefficient vector, Bayesian Linear Regression produces a full probability distribution over the coefficients after observing the data.
That distribution is:
where denotes the observed dataset.
Inputs:
- prior mean ,
- prior covariance ,
- design matrix ,
- response vector ,
- noise variance .
Outputs:
- posterior mean ,
- posterior covariance ,
- full posterior density over the coefficient vector .
Why it matters in DA/DS:
- it gives more than a point estimate, it gives uncertainty,
- it supports coefficient credible intervals,
- it propagates uncertainty into predictions,
- it handles small-data settings more honestly,
- it allows prior knowledge to regularize unstable regressions.
In ordinary least squares, the output is typically one estimated vector . In Bayesian Linear Regression, the output is a cloud of plausible vectors centered around , with spread governed by .
This is extremely useful when:
- the sample size is small,
- predictors are correlated,
- noise is high,
- prior beliefs are important,
- overconfidence would be dangerous.
The posterior combines:
- prior information, encoded in ,
- data evidence, encoded in the Gaussian likelihood.
The result stays Gaussian because Gaussian prior and Gaussian likelihood are conjugate.
This object connects directly to:
- Posterior Mean, which is the center of the posterior,
- Posterior Covariance, which measures its spread,
- Predictive Distribution, which uses the posterior over to produce uncertainty-aware predictions,
- Marginal Likelihood, which integrates over this parameter space.