# Testing Bayesian Statistics Concepts in R: using the Beta-Bernoulli Conjugate Priors to compute the Posterior Distribution

• Then the recursive Bayesian updates and the prior and posterior hyper-parameters and the means are updated with each trial. Also, the frequentist’s MLE and 95% confidence interval are computed, along with the Bayesian 95% credible interval.
• The following animation shows the results of simulation of a random coin tossing experiment with 20 trials, starting with the uniform prior β(1,1)..
• The next animation shows the same results starting with an improper prior β(0,0).
• The next animation shows the same results starting with the Jeffreys prior β(1/2,1/2.