Bayesian Linear Regression
Key Takeaways
Bayesian linear regression is explained using concepts such as parameter distributions, Gaussian priors, conjugate priors, and confidence bands, with a focus on understanding uncertainty in regression and how it emerges from data.
Full Transcript
Every best fit line is a confession of ignorance. You fit a line, get a slope and intercept, done. But that single line says nothing about confidence. What if the data shifted slightly? Would the answer change a lot or barely at all? So, let's think about this differently. Instead of treating slope and intercept as fixed numbers, what if they were distributions? A frequentist gives you one point, one answer. A Bayesian gives you a cloud of possibilities. That cloud is the prior e of It represents what we believe before seeing any data. And here's what the prior looks like in practice. Each line is a sample from our prior, a possible version of reality. Notice how spread out they are. That spread is honest uncertainty. Now, let's bring in the actual data. This is where Bayes' rule enters. The posterior is proportional to the likelihood times the prior. And when both are Gaussian, the posterior is Gaussian, too. A conjugate pair. The posterior lands between the prior and the likelihood, but it's narrower. More data means more certainty. Now, let's watch this in real time. On the left, data points arrive one by one. On the right, our belief about the parameters. Notice how the ellipse shrinks with each new observation. The regression lines converge and the uncertainty tightens. Six points in and our beliefs have crystallized. Instead of one line, we get a distribution of predictions, this shaded band. A few sample posterior lines sit behind it and the yellow line is our best guess. The band narrows near the data. That's confidence. Away from the data, it widens honestly. Here's the comparison. On the left, one line, take it or leave it. On the right, a confidence band, sample lines and a posterior mean showing where to trust and where to be cautious. And that's basically it. If you found this helpful, hit like, subscribe and drop a comment. See you in the next one. Bye-bye.
Original Description
Bayesian linear regression explained in a clear and intuitive way: understand uncertainty in regression, priors, posteriors, likelihood, and how confidence bands emerge from data. This video covers Bayesian statistics concepts such as parameter distributions, Gaussian priors, conjugate priors, and predictive uncertainty, showing how beliefs update with new data compared to classical linear regression.
*Related Videos*
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
K-Means Clustering: https://youtu.be/dyG9cj5RKL0
Support Vector Machines: https://youtu.be/K1EcCjDD_q4
The Hessian Matrix: https://youtu.be/9tp1kULwU2w
The Jacobian Matrix: https://youtu.be/6FesMicc844
Bayesian Optimization: https://youtu.be/Kq6_kzlwSUQ
Hyperparameters Tuning: Grid Search vs Random Search: https://youtu.be/G-fXV-o9QV8
The Kernel Trick: https://youtu.be/N_RQj4OL1mg
Cross-Entropy - Explained: https://youtu.be/Fv98vtitmiA
Dropout - Explained: https://youtu.be/FDF_Q3_98GQ
Overfitting vs Underfitting: https://youtu.be/B9rhzg6_LLw
Why Models Overfit and Underfit - The Bias Variance Trade-off: https://youtu.be/5mbX6ITznHk
Least Squares vs Maximum Likelihood: https://youtu.be/WCP98USBZ0w
*Follow Me*
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🐦 X: @datamlistic https://x.com/datamlistic
📸 Instagram: @datamlistic https://www.instagram.com/datamlistic
📱 TikTok: @datamlistic https://www.tiktok.com/@datamlistic
👔 Linkedin: https://www.linkedin.com/company/datamlistic
*Channel Support*
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
The best way to support the channel is to share the content. ;)
If you'd like to also support the channel financially, donating the price of a coffee is always warmly welcomed! (completely optional and voluntary)
► Patreon: https://www.patreon.com/datamlistic
► Bitcoin (BTC): 3C6Pkzyb5CjAUYrJxmpCaaNPVRgRVxxyTq
► Ethereum (ETH): 0x9Ac4eB94386C3e02b96599C05B7a8C71773c9281
► Cardano (ADA): addr1v95rfxlslfzkvd8sr3exkh7st4qmgj4ywf5zcaxgqgdyunsj5juw5
► Tether (USDT): 0xeC261d9b2EE4B6997a6a424067af165BAA4afE1a
#bayesian #machinelea
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
More on: ML Maths Basics
View skill →Related AI Lessons
🎓
Tutor Explanation
DeepCamp AI