Author-reviewedEvidence: highv1.0.3

Beta Distribution

The beta distribution is a probability distribution on values between zero and one, used in decision models to represent uncertainty in probabilities.

Download concept guide
Last reviewed byDr Darrin Baines

Concept Architecture

Beta Distribution for Uncertain Probabilities and Utilities in Decision Models

In a probabilistic sensitivity analysis, every uncertain model input is given a distribution, and the beta distribution is the usual choice for inputs that must stay between zero and one, above all the probabilities that drive decision trees and Markov models. Because its two shape parameters can be read as counts of events and non-events, it can be fitted directly from trial or registry data, or from a published mean and standard error. Both fitting routes, and the link to Bayesian updating of binomial data, can be compared on an illustrative progression probability. The beta distribution is a poor choice for utilities that can fall below zero, and a row of multinomial transitions needs the Dirichlet distribution instead of separate betas.

Shape, mean and variance on the unit interval

The beta distribution is defined for values strictly between zero and one, which matches the range of a probability. Two positive parameters control its location and spread, so the same family can be centred near zero for a rare complication or near one for a high survival probability. Its density is as follows.

f(p∣α,β)=Γ(α+β)Γ(α) Γ(β) pα−1(1−p)β−1,0<p<1f(p \mid \alpha, \beta) = \frac{\Gamma(\alpha + \beta)}{\Gamma(\alpha)\,\Gamma(\beta)}\, p^{\alpha - 1} (1 - p)^{\beta - 1}, \quad 0 < p < 1

where pp is the uncertain probability, α\alpha and β\beta are the two positive shape parameters, and Γ(⋅)\Gamma(\cdot) is the gamma function, which makes the density integrate to one. The mean and variance are as follows.

E(p)=αα+β,Var⁡(p)=αβ(α+β)2(α+β+1)E(p) = \frac{\alpha}{\alpha + \beta}, \qquad \operatorname{Var}(p) = \frac{\alpha \beta}{(\alpha + \beta)^2 (\alpha + \beta + 1)}

where E(p)E(p) is the expected value of the probability and Var⁡(p)\operatorname{Var}(p) its variance. The mean depends only on the ratio of the two parameters, while their sum, α+β\alpha + \beta, acts like a sample size, and the larger it is, the narrower the distribution. Statistical texts describe the two parameters as prior sample sizes for this reason. When both parameters equal one the distribution is uniform, and when both are below one it is U-shaped, with most of its weight near zero and one.

Why decision models sample probabilities from a beta

A decision model needs a mean for each input to produce a point estimate, and a distribution for each input to show how uncertain that estimate is. The distribution describes parameter uncertainty, the imprecision in the mean, not variation between patients. The ISPOR-SMDM modelling task force on parameter estimation and uncertainty describes beta distributions as a natural match for binomial data. It pairs gamma or log-normal distributions with right-skewed quantities such as costs, and log-normal distributions with relative risks and hazard ratios.

A probability sampled from a normal distribution can fall below zero or above one when the mean is close to a boundary or the evidence is thin, which breaks the model logic. A beta draw cannot. In NICE's manual for technology appraisal (PMG36, section 4.7), the distributions used in probabilistic analysis should not be chosen arbitrarily but should represent the available evidence on each parameter, and their use should be justified. The task force report adds that a published analysis should state each distribution and its parameters and give the reasons for the choice.

Fitting from event counts and the link to Bayesian updating

When the evidence is a count of patients who experienced an event out of a known number at risk, the parameters can be set directly from the data. With rr events among nn patients, a common choice is α=r\alpha = r and β=n−r\beta = n - r, so the mean is the observed proportion r/nr/n and the spread reflects the sample size.

This rule has a Bayesian interpretation. The beta distribution is the conjugate prior distribution for the probability in a binomial distribution. If the prior is beta and the data are binomial, the posterior distribution is also beta.

p∣r∼Beta(α0+r, β0+n−r)p \mid r \sim \text{Beta}(\alpha_0 + r,\ \beta_0 + n - r)

where α0\alpha_0 and β0\beta_0 are the prior parameters, rr is the number of events and nn the number of patients at risk. Setting α=r\alpha = r and β=n−r\beta = n - r corresponds to the limiting prior with α0=β0=0\alpha_0 = \beta_0 = 0; a uniform prior, α0=β0=1\alpha_0 = \beta_0 = 1, adds one to each parameter. With large counts the choice of prior hardly matters. With small or zero counts it does. A study with no deaths among 120 patients gives α=0\alpha = 0, which is not a valid beta distribution, whereas a uniform prior gives Beta(1, 121), with a mean of about 0.008. The conjugate form also allows evidence to be combined in a Bayesian analysis, for example when a registry count is added to a trial count for the same population.

Fitting by the method of moments from a mean and standard error

Published studies often report a proportion with a standard error or confidence interval rather than raw counts. In that case the parameters have to be recovered from the summary statistics. The method of moments sets the beta mean and variance equal to the reported values and solves for the two parameters, as follows.

α+β=μ(1−μ)s2−1,α=μ(α+β),β=(1−μ)(α+β)\alpha + \beta = \frac{\mu (1 - \mu)}{s^2} - 1, \qquad \alpha = \mu (\alpha + \beta), \qquad \beta = (1 - \mu)(\alpha + \beta)

where μ\mu is the reported mean probability and ss is its standard error. The solution exists only when s2<μ(1−μ)s^2 < \mu (1 - \mu); otherwise the sum is negative and no beta distribution matches. When the standard error is large relative to the mean, one or both fitted parameters can fall below one, piling the distribution up against a boundary, which rarely reflects what the evidence says. The input must be the standard error of the mean, not the standard deviation across patients. Using the patient-level standard deviation describes variation between individuals and gives a distribution far too wide for parameter uncertainty.

Worked example of a one-year progression probability

The figures below are illustrative. A cohort Markov model with a one-year cycle needs the probability that a patient in a stable state progresses within a year. Two sources are available, a cohort in which 24 of 120 patients progressed, and a published estimate of 0.20 with a standard error of 0.05.

1. Fit from the counts. With α=24\alpha = 24 and β=120−24=96\beta = 120 - 24 = 96, the mean is E(p)=24/120=0.20E(p) = 24/120 = 0.20. The variance is as follows.

Var⁡(p)=24×961202×121=23041742400=0.00132\operatorname{Var}(p) = \frac{24 \times 96}{120^2 \times 121} = \frac{2304}{1742400} = 0.00132

where the terms follow the variance formula above. The standard error is the square root, about 0.036. The central 95% of the distribution comes from the inverse cumulative function. In Excel, BETA.INV(0.025, 24, 96) returns about 0.134 and BETA.INV(0.975, 24, 96) about 0.276.

2. Fit from the published mean and standard error. With μ=0.20\mu = 0.20 and s=0.05s = 0.05, the sum of the parameters is as follows.

α+β=0.20×0.800.052−1=0.160.0025−1=63\alpha + \beta = \frac{0.20 \times 0.80}{0.05^2} - 1 = \frac{0.16}{0.0025} - 1 = 63

where the terms are as defined for the method of moments. So α=63×0.20=12.6\alpha = 63 \times 0.20 = 12.6 and β=63×0.80=50.4\beta = 63 \times 0.80 = 50.4, giving Beta(12.6, 50.4). Its central 95% runs from BETA.INV(0.025, 12.6, 50.4), about 0.112, to BETA.INV(0.975, 12.6, 50.4), about 0.306. The two fits share a mean, but the second behaves like evidence from about 63 patients rather than 120, so it is wider.

3. Draw values for the simulation. In a spreadsheet, each Monte Carlo simulation iteration can draw a value with the Excel formula BETA.INV(RAND(), 24, 96), which applies the inverse cumulative beta function to a uniform random number. Excel returns an error when either shape parameter is zero or negative, which is the visible symptom of a failed method-of-moments fit.

4. Interpret. Whichever fit is used, every sampled transition probability lies between zero and one. Because the stable state here has two exits, progressing or staying, the probability of staying is one minus the sampled value, so the cohort is conserved in every iteration. States with three or more exits need the joint approach set out in the Dirichlet section below. Choosing between the fits is a judgement about which evidence better represents the decision population, and the model report should state it.

Utilities and where the beta fits

A health state utility value has an upper bound of one, but on many preference-based instruments an individual patient's value can fall below zero for states valued as worse than dead. The NICE Decision Support Unit's Technical Support Document 12 notes that such data are often skewed, bounded and include negative values, and gives a lower limit of minus 0.594 for the UK EQ-5D-3L index. In a probabilistic analysis, however, the distribution describes uncertainty in the mean utility, not the spread of patient values. The relevant test is therefore whether the plausible range of the mean reaches zero. A beta distribution on the zero to one interval suits a mean whose plausible range sits well inside that interval, even when some patients report negative values.

The same document states that, in most cases, uncertainty in a mean utility can be described adequately by a normal distribution. Where it cannot, it suggests describing utilities as decrements from full health, one minus the utility, and sampling the decrement from a log-normal or gamma distribution, which keeps every sampled utility at or below one with no lower limit. Where a lower limit is needed, it suggests a standard beta distribution rescaled to a wider interval.

For an illustrative severe state with a mean utility of 0.10 and a standard error of 0.08, the beta fit by moments is Beta(1.31, 11.76), which places all its weight above zero and has a median of about 0.08. Fitting a gamma distribution to the disutility instead, with mean 0.90 and the same standard error, gives a shape of k=0.902/0.082=126.6k = 0.90^2 / 0.08^2 = 126.6 and a scale of θ=0.082/0.90=0.0071\theta = 0.08^2 / 0.90 = 0.0071. About 11% of the sampled mean utilities then fall below zero. Which representation is right depends on whether a mean utility below zero is plausible for this state, given the evidence and the value set.

Multinomial transitions and the Dirichlet distribution

Many model states have more than two exits in a cycle. A patient in a stable state may stay stable, progress or die, and the three probabilities must add to one in every iteration. Sampling each from its own beta distribution breaks this rule. In the illustrative cohort above, suppose 90 patients stayed stable, 24 progressed and 6 died. Independent draws from Beta(90, 30), Beta(24, 96) and Beta(6, 114) add to 1.00 on average, but in an illustrative simulation of 200,000 iterations the sum fell outside the range 0.95 to 1.05 in about 38% of draws.

The Dirichlet distribution is the multivariate generalisation of the beta distribution and the conjugate prior for multinomial data. Briggs, Ades and Price showed how it gives a fully probabilistic transition matrix for a Markov model and how a Bayesian prior avoids problems with zero counts. It can be sampled by drawing independent gamma variables with unit scale and normalising them, as follows.

pj=Gj∑k=1KGk,Gj∼Gamma(aj,1)p_j = \frac{G_j}{\sum_{k=1}^{K} G_k}, \qquad G_j \sim \text{Gamma}(a_j, 1)

where pjp_j is the sampled probability of moving to destination jj, KK is the number of possible destinations, GjG_j is a gamma draw and aja_j is the count (plus any prior) for that destination. For the example, one illustrative set of gamma draws of 86.4, 25.8 and 5.0 adds to 117.2. Dividing each draw by that total gives probabilities of 0.7372, 0.2201 and 0.0427, which add to one. Each component of a Dirichlet has a beta marginal. The progression probability from Dirichlet(90, 24, 6) is Beta(24, 96), the distribution fitted in step 1 of the worked example. For a chance node with only two branches, the Dirichlet reduces to a single beta, with the second probability taken as one minus the first.

Choices that change the result

Once the beta family is chosen, the results depend on the choices made in fitting it. The evidence source matters most. Counts from a trial in a different population, or a standard error from a small study, can shift both the mean and the width, and NICE's manual expects alternative plausible distributions to be explored in separate probabilistic analyses.

Correlation is a second choice. Probabilities sampled independently ignore any relationship between them, such as the link between baseline risk and risk on treatment. The ISPOR-SMDM task force suggests defining parameters so that independence is plausible, for example sampling a baseline probability and a relative effect separately and deriving the treated probability from them. Where multiplying a baseline probability by a relative risk can give a value outside the zero to one range, the task force suggests switching to odds ratios. PMG36 asks analysts to reflect evidence on correlation and to avoid both artificial restriction of distributions and unsupported assumptions of perfect correlation between ordered parameters.

Time period is a third. When the evidence covers a different period from the model cycle, the distribution is fitted on the observed period and each sampled value is converted to the cycle length through rate-to-probability conversion.

Where the beta distribution is misapplied

Two errors recur in applied models. The first is fitting a beta distribution to a quantity that is not bounded by zero and one, such as a cost, a relative risk or a hazard ratio, for which gamma or log-normal distributions are the usual choices. The second is using the patient-level standard deviation in the method of moments, which treats variation between patients as uncertainty in the mean.

A last misunderstanding concerns what the distribution represents. The beta describes uncertainty about a population probability, so its width should shrink as evidence accumulates. It does not describe how individual patients differ. Outputs computed across iterations, such as the cost-effectiveness acceptability curve and the expected value of perfect information, are only as credible as the distributions behind them.

Sources

  • Ara R, Wailoo A. NICE DSU Technical Support Document 12: The use of health state utility values in decision models. Sheffield: Decision Support Unit, ScHARR, University of Sheffield; July 2011. Section 4.1.
  • Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation. Oxford: Oxford University Press; 2006. Chapter 4.
  • Briggs AH, Ades AE, Price MJ. Probabilistic sensitivity analysis for decision trees with multiple branches: use of the Dirichlet distribution in a Bayesian framework. Medical Decision Making. 2003;23(4):341-350.
  • Briggs AH, Weinstein MC, Fenwick EAL, Karnon J, Sculpher MJ, Paltiel AD. Model parameter estimation and uncertainty: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-6. Value in Health. 2012;15(6):835-842.
  • Gelman A, Carlin JB, Stern HS, Dunson DB, Vehtari A, Rubin DB. Bayesian Data Analysis. 3rd ed. Boca Raton: CRC Press; 2013. Section 2.4 and Appendix A.
  • Microsoft. BETA.INV function. Microsoft Support; accessed 1 October 2026. https://support.microsoft.com/en-gb/office/beta-inv-function-e84cb8aa-8df0-4cf6-9892-83a341d252eb
  • National Institute for Health and Care Excellence. NICE technology appraisal and highly specialised technologies guidance: the manual (PMG36). London: NICE; 2022, last updated 13 October 2026. Section 4.7.

Institutional Perspectives (3)

  • NICE

    Distributions Must Represent the Evidence, Not Be Chosen Arbitrarily

    NICE requires distributions to be assigned to characterise uncertainty in the precision of mean parameter values, and these should not be chosen arbitrarily but should represent the available evidence on each parameter, with their use justified. Where alternative plausible distributions exist, separate probabilistic analyses should explore them. Evidence on correlation between parameters should be reflected, avoiding both artificial restriction of ordered parameters and unsupported assumptions of perfect correlation. The manual does not name particular distributions such as the beta.

    NICE technology appraisal and highly specialised technologies guidance: the manual (PMG36), sections 4.7.10 and 4.7.19, last updated 31 March 2026View source →
  • NICE Decision Support Unit

    Normal Usually Adequate for Mean Utility, Rescaled Beta if Bounded

    TSD 12 notes that preference-based quality of life data such as EQ-5D are typically skewed, bounded by the limits of the index and often include negative values, but that in most cases uncertainty in the mean can be adequately described by sampling from a normal distribution. Where it cannot, utilities can be expressed as decrements from full health and sampled from a log-normal or gamma distribution. If a lower limit is needed, such as minus 0.594 for the UK EQ-5D index, a standard beta distribution can be scaled up with a height parameter.

    NICE DSU Technical Support Document 12: The use of health state utility values in decision models (Ara and Wailoo, July 2011), section 4.1View source →
  • PBAC

    Beta Distributions a Natural Match for Transition Probabilities

    The PBAC Guidelines ask submissions to use commonly adopted statistical standards to represent uncertainty around the true value of each uncertain model input. As an example, they describe beta distributions as a natural match for transition probabilities, with log-normal distributions for relative risks or hazard ratios and gamma or log-normal distributions for costs and utility parameters. The use of alternative distributions should be justified, and interval estimates from the fitted distributions should define the ranges tested in deterministic sensitivity analyses.

    Guidelines for preparing a submission to the Pharmaceutical Benefits Advisory Committee, version 5.0 (September 2016), subsection 3A.9.1View source →

Functions & Formulae (5)

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)

    Gives the expected value and the variance of a probability that follows Beta(alpha, beta), and its standard error as the square root of the variance. The mean depends only on the ratio of the two parameters, while their sum acts like a sample size: the larger alpha + beta, the narrower the distribution. The function sqrt is the square root.

  • 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)

    Updates a beta prior for a probability with r events among n patients at risk. Because the beta is the conjugate prior for a binomial probability, the result is again a beta distribution. With the limiting prior alpha_0 = beta_0 = 0 the rule reduces to alpha equal to the number of events and beta equal to the number of non-events, n minus r, so the mean is the observed proportion r/n. A uniform prior, alpha_0 = beta_0 = 1, adds one to each parameter.

  • 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)

    Sets the beta mean and variance equal to a reported mean probability and the square of its standard error and solves for the two parameters. The sum alpha + beta equals mu (1 minus mu) divided by s squared, minus one, and alpha and beta are that sum multiplied by mu and by 1 minus mu. A solution exists only when s squared is below mu (1 minus mu).

  • 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

    Describes a mean utility as a decrement from full health, one minus the utility, and fits a gamma distribution to the decrement by matching its mean and standard error. The shape is the squared mean decrement over the squared standard error and the scale is the squared standard error over the mean decrement. Each sampled utility, one minus a gamma draw, is at most one with no lower limit, which suits states where a mean utility below zero is plausible.

  • 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)

    Samples one row of a transition matrix for a state with three exits by drawing an independent gamma variable for each destination, with shape equal to that destination's count plus any prior and a scale of one, and dividing each draw by their total. The result is a draw from a Dirichlet distribution, the multivariate generalisation of the beta, and the three probabilities add to one in every iteration. Each component has a beta marginal: the second probability from Dirichlet(90, 24, 6) follows Beta(24, 96).

View all formulae

Library

Publications

3
  • Other

    BETA.INV function — Microsoft, Web page, accessed 1 October 2026 ed., 2026 (Microsoft Support)

    Microsoft Support documentation for the Excel BETA.INV function, which returns the inverse of the beta cumulative distribution function and an error value when either shape parameter is zero or negative.

  • Book

    Bayesian Data Analysis — Gelman A, Carlin JB, Stern HS, Dunson DB, Vehtari A, Rubin DB, 3rd edition ed., 2013 (CRC Press)

    Bayesian statistics textbook cited for the beta distribution as the conjugate prior for a binomial probability, its method of moments fit and the Dirichlet distribution as its multivariate generalisation.

  • Journal article

    Parameter Estimation and Uncertainty: A Report of the ISPOR-SMDM Modeling Good Research Practices Task Force-6 — Briggs, Weinstein, Fenwick, Karnon, Sculpher & Paltiel, Task Force Report 6 ed., 2012 (Value in Health / Medical Decision Making)

    Best-practice guidance on parameter estimation and the characterisation of uncertainty in decision models, covering probabilistic sensitivity analysis, distributional choices, and correlation between parameters.

Frequently Asked Questions (6)

  • What is the beta distribution?

    The beta distribution is a probability distribution on values between zero and one, used in decision models to represent uncertainty in probabilities.

    Source: Briggs, Claxton & Sculpher 2006

  • What range of values does the beta distribution allow?

    The beta distribution is confined to values between zero and one, which is exactly the range a probability can take, so it cannot produce the impossible values a less restricted distribution might. Within that range it can take many shapes, from symmetric to strongly skewed, letting it represent uncertainty about a probability that is thought to be low, high, or middling. Its two parameters can be set directly from the counts of events and non-events observed. This bounded flexibility is why it is the usual choice for probability parameters. Briggs and colleagues (2006) describe this use.

    Source: Briggs et al. 2006

  • Why is the beta distribution used for probabilities?

    The beta distribution is used for probabilities because it is bounded between zero and one, matching the range a probability must lie in, so sampled values are always valid, unlike a normal distribution that could give values below zero or above one. Its two parameters give flexibility to represent a range of shapes reflecting the uncertainty. This makes the beta distribution the natural choice for representing the uncertainty in probability and proportion parameters in probabilistic sensitivity analysis.

    Source: Vose 2008

  • How are the parameters of a beta distribution set?

    The parameters of a beta distribution are set to reflect the estimated probability and its uncertainty, often derived from the data behind the estimate: for a proportion from a sample, the two shape parameters can be set from the numbers of events and non-events, so the distribution reflects the sample size and hence the precision. A larger sample gives a tighter distribution. This lets the beta distribution represent both the central estimate and the uncertainty in a probability parameter based on its evidence.

    Source: Vose 2008

  • Where is the beta distribution used in modelling?

    In health economic modelling, the beta distribution is used to represent the uncertainty in probability and proportion parameters, such as transition probabilities, event risks, and utility values bounded between zero and one, in probabilistic sensitivity analysis. Values are sampled from the beta distribution for each such parameter, ensuring the samples stay within the valid range. This makes the beta distribution a standard tool for characterising and propagating the uncertainty in probability-type inputs through a model.

    Source: Briggs, Claxton & Sculpher 2006

  • What are the limitations of the beta distribution?

    The beta distribution is bounded between zero and one, so it suits probabilities and proportions but not quantities outside that range, such as costs, for which distributions like the gamma are used. Its two parameters, while flexible, may not capture every shape of uncertainty, and setting them requires appropriate data or judgement. For utilities that can be negative, representing states worse than death, the standard beta distribution does not apply directly without transformation. These limitations mean the beta distribution is used specifically for parameters bounded in the zero-to-one range.

    Source: Briggs, Claxton & Sculpher 2006

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 20 Oct 2026

Content version: 1.0.3

Canonical Identity

Term code
HE-EM-UA-008

Stable URI · Machine-readable · Resolvable · CC BY 4.0