R code implementing algorithms to fit Bayesian models using real and simulated data examples. A comprehensive review of statistical models commonly used in ecological and environmental science. Overview of Bayesian computational methods such as importance sampling, MCMC, and HMC. Derivations of the necessary components to construct statistical algorithms from scratch.