Beta distribution density, moments and fitting for an uncertain probability
f(p | alpha, beta) = Gamma(alpha + beta) / (Gamma(alpha) * Gamma(beta)) * p^(alpha - 1) * (1 - p)^(beta - 1), 0 < p < 1
Maps two positive shape parameters, alpha and beta, to a probability density on the unit interval that describes uncertainty about a probability, such as a transition probability in a decision tree or Markov model. The parameters are fitted from event counts, with alpha counting events and beta non-events, or from a reported mean and standard error by the method of moments, and the fitted distribution is sampled in probabilistic sensitivity analysis. The formulae below give the mean and variance, the two fitting routes, the gamma alternative for a utility decrement and the Dirichlet extension for states with three or more exits. Gamma(.) in the density is the gamma function.
Mean, variance and standard error of a beta-distributed probability
E_p = alpha / (alpha + beta); V_p = alpha * beta / ((alpha + beta)^2 * (alpha + beta + 1)); SE_p = sqrt(V_p)
Beta parameters for a probability from binomial event counts and a conjugate prior
alpha = alpha_0 + r; beta = beta_0 + n - r; E_p = alpha / (alpha + beta)
Beta shape parameters from a reported mean and standard error by the method of moments
alpha = mu * (mu * (1 - mu) / s^2 - 1); beta = (1 - mu) * (mu * (1 - mu) / s^2 - 1)
Gamma shape and scale for a utility decrement fitted by moments
mu_D = 1 - mu_U; k = mu_D^2 / s^2; theta = s^2 / mu_D
Dirichlet transition probabilities from three normalised gamma draws
p_1 = G_1 / (G_1 + G_2 + G_3); p_2 = G_2 / (G_1 + G_2 + G_3); p_3 = G_3 / (G_1 + G_2 + G_3)