When I compile, the figure references aren't coming through right.
To fix the last bit with the references, move the \label{fig:priors} up two lines so that it is right after \caption{Bayesian priors} 
After compiling twice, this should fix the figure references as well.