Bayesian Linear Regression

hard
Unit 22 · Bayesian0/0 to milestone

With a Gaussian prior w∼N(0,α−1I)w \sim \mathcal N(0, \alpha^{-1} I) and noise precision β\beta, the posterior over weights is Gaussian:

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Bayesian Linear Regression · TechGradify