powered by
Updates Beta Distribution with the Beta-Bernoulli conjugate prior update rule
update_beta(alpha, beta, priors = list())
A tibble object that contains `alpha` and `beta`
Double value for alpha (count of successes). Must be 0 or greater.
Double value for beta (count of failures). Must be 0 or greater.
An optional list object that contains alpha0 and beta0. Otherwise the function with use Beta(1,1) as the prior distribution.
update_beta(alpha = 1, beta = 5, priors = list(alpha0 = 2, beta0 = 2)) update_beta(alpha = 20000, beta = 50000)
Run the code above in your browser using DataLab