The Bayes update
This animation displays the posterior estimate updates as it is refitted when new data arrives. The vertical line represents the theoretical value to which the plotted distribution should converge.
Output generated via matplotlib.animation.Animation.to_jshtml.
import math
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.animation