
Dirichlet posterior for category probabilities
Source:R/esl_native_ch78.R
morie_esl_dirichlet_posterior.Rdw ~ Di(a + counts) under a symmetric Di(a) prior (ESL eqs 8.32-8.34), with mean, variance and the multinomial bootstrap variance w (1 - w) / N.
Examples
morie_esl_dirichlet_posterior(c(12, 5, 3))$mean
#> [1] 0.60 0.25 0.15