Visualizing Bayesian Priors

Ever wonder how priors affect your Bayesian model? Find out!

Nicolas Bertagnolli
Towards Data Science
7 min readMar 2, 2020

--

I’ve been playing around a little with parameter estimation and Bayesian statistics and thought that I’d make a quick little visualization of how prior beliefs affect our posterior distribution. In this tutorial, we will walk through thinking about whether or not a coin is fair. We will visualize how our estimate of the coin’s fairness changes as we acquire more data and with respect to our prior beliefs. Let’s get started!

Problem

--

--