Published
Edited
Oct 6, 2022
Importers
1 star
Insert cell
# Bayesian Updating with Conjugate Priors
Below is a collection of functions that can be used for Bayesian updating. I use these in my GiveWell CEAs.
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
poisson_gamma_bayes_update = (prior, observations) => ({shape: prior.shape + sum(observations), scale: 1 / (1 / prior.scale + observations.length)})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more