Author-reviewedEvidence: highv1.0.2

Binomial Distribution

The binomial distribution models how many of a fixed number of patients have an event when each has the same probability and outcomes are independent.

Download concept guide
Last reviewed byDr Darrin Baines

Concept Architecture

Binomial Distribution in Health Economic Models

Much of the evidence behind a decision model arrives as a count, such as the number of patients who responded, relapsed, died or had an adverse event out of the number treated. The binomial distribution is the standard model for such counts, and its likelihood turns "r events among n patients" into an estimate of the underlying probability with a measure of its precision.

Counting patients with an event

The binomial distribution applies when a fixed number of patients is followed for a set period and each patient either has the event of interest or does not. It also requires every patient to have the same probability of the event, with outcomes independent between patients. Under those conditions the number with the event has the following probability function.

P(R=r)=(nr)pr(1−p)n−r,r=0,1,…,nP(R = r) = \binom{n}{r} p^{r} (1 - p)^{n - r}, \quad r = 0, 1, \ldots, n

where RR is the random number of patients with the event, rr is a particular count, nn is the number of patients at risk, pp is the probability that any one patient has the event within the period, and (nr)\binom{n}{r} is the binomial coefficient n!/(r!(n−r)!)n!/(r!(n - r)!), the number of ways of choosing which rr of the nn patients have it. A single patient is the special case n=1n = 1, a Bernoulli trial. The mean and variance of the count are given below.

E(R)=np,Var⁡(R)=np(1−p)E(R) = np, \qquad \operatorname{Var}(R) = np(1 - p)

where E(R)E(R) is the expected number of patients with the event and Var⁡(R)\operatorname{Var}(R) is its variance. The variance is largest when pp is one half and shrinks towards either bound. Zero counts depend on the expected count instead. The probability of no events is (1−p)n(1 - p)^n, which stays high when npnp is small, so a rare event in a small study often gives a count of zero. The observed proportion p^=r/n\hat{p} = r/n has variance p(1−p)/np(1 - p)/n, which is why larger studies give more precise estimates. In Excel, BINOM.DIST returns the probability of exactly a given count, or of at most that count.

What a count says about a probability under the binomial likelihood

In an economic evaluation the count is observed and the probability is the unknown parameter. The binomial formula can therefore be turned around to ask which values of the probability are well supported by the data. Read as a function of pp for fixed data, the binomial probability becomes the likelihood.

L(p∣r,n)∝pr(1−p)n−rL(p \mid r, n) \propto p^{r} (1 - p)^{n - r}

where L(p∣r,n)L(p \mid r, n) is the likelihood of the probability pp given rr events among nn patients; the binomial coefficient is dropped because it does not depend on pp. The likelihood peaks at p^=r/n\hat{p} = r/n, the estimate given by maximum likelihood estimation, and its standard error is estimated as p^(1−p^)/n\sqrt{\hat{p}(1 - \hat{p})/n}.

In a Bayesian analysis, a beta distribution prior combined with this likelihood gives a beta posterior distribution, the property Gelman and colleagues call conjugacy, and the ISPOR-SMDM modelling task force on parameter estimation describes beta distributions as a natural match for binomial data in probabilistic sensitivity analysis; fitting the beta and choosing its prior are covered on the beta distribution page.

Binomial likelihoods in NICE DSU evidence synthesis

The NICE Decision Support Unit's Technical Support Document 2 (TSD 2) sets out a generalised linear modelling framework for pairwise and network meta-analysis of randomised controlled trials. Its core models start from binomial data. The number of events in each trial arm is modelled as binomial, and the arm probabilities are mapped to an unbounded scale by a link function, as follows.

rik∼Binomial(pik,nik),logit(pik)=μi+δi,1k I{k≠1}r_{ik} \sim \text{Binomial}(p_{ik}, n_{ik}), \qquad \text{logit}(p_{ik}) = \mu_i + \delta_{i,1k}\, I_{\{k \neq 1\}}

where rikr_{ik} is the number of events in arm kk of trial ii, nikn_{ik} is the number of patients in that arm, pikp_{ik} is the arm's event probability, μi\mu_i is the log odds of the event on the control treatment in trial ii, δi,1k\delta_{i,1k} is the trial-specific log odds ratio for arm kk against the control in arm 1, and I{k≠1}I_{\{k \neq 1\}} equals one for arms other than the first and zero otherwise. The same generalised linear model structure accepts Poisson, normal and multinomial likelihoods with other links.

Two features of the binomial likelihood matter in appraisal. When trials report the proportion with an event at different follow-up times, TSD 2 keeps the binomial likelihood but uses a complementary log-log link, which assumes a constant hazard so that treatment effects become log hazard ratios. The second feature concerns zero counts. Because the binomial likelihood allows a count of zero, the document says the occasional trial with a zero cell needs no special precautions, whereas some frequentist approaches add an arbitrary constant, usually 0.5, and so bias the estimated effect. It also warns that the models can become numerically unstable when several small trials have zero cells.

The normal approximation and its limits with small counts

Many routine calculations for proportions replace the binomial with a normal distribution. When nn is large and pp is not close to zero or one, the binomial count is approximately normal with mean npnp and variance np(1−p)np(1 - p), a consequence of the central limit theorem. This approximation gives the familiar Wald confidence interval for a proportion, shown below.

p^±zp^(1−p^)n\hat{p} \pm z \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

where p^=r/n\hat{p} = r/n is the observed proportion, nn is the number of patients and zz is the standard normal quantile, 1.96 for a 95% interval. Brown, Cai and DasGupta showed that the coverage of this interval behaves erratically, that the problem is far more persistent than had been appreciated, and that common textbook prescriptions about when it is safe cannot be trusted. For small samples they recommended the Wilson interval or the equal-tailed Jeffreys interval, which uses a Beta(0.5, 0.5) prior. The Wilson interval is shown below.

p^+z22n±zp^(1−p^)n+z24n21+z2n\frac{\hat{p} + \frac{z^2}{2n} \pm z \sqrt{\frac{\hat{p}(1 - \hat{p})}{n} + \frac{z^2}{4n^2}}}{1 + \frac{z^2}{n}}

where the terms are as defined for the Wald interval. In an illustrative exact calculation over all 41 possible outcomes of a 40-patient study with a true event probability of 0.02, the nominal 95% Wald interval contains the true value in about 55% of samples and the Wilson interval in about 95%.

Binomial events in Markov cohort models and microsimulations

A Markov model moves patients between health states each cycle according to transition probabilities. In a cohort model the probability is applied to the share of the cohort in a state, so the number moving is the binomial mean, NpNp, for a cohort of NN, and the trace shows expected values with no chance variation. In a Markov microsimulation, each simulated patient's transition is a Bernoulli draw, so for a fixed probability the number of NN patients who move in a cycle is binomial with variance Np(1−p)Np(1 - p).

The ISPOR-SMDM task force calls this chance variation stochastic or first-order uncertainty, the random variability in outcomes between identical patients, and separates it from parameter uncertainty in the probability itself. It notes that in patient-level simulations, assessing parameter uncertainty requires stochastic uncertainty to be eliminated, a quantity also called Monte Carlo error, whereas cohort models can address parameter uncertainty without that concern. A probabilistic microsimulation therefore samples at two levels, an outer draw of the probability, usually from a beta, and inner binomial outcomes for patients. When a state has more than two exits, the counts are multinomial and joint uncertainty in the probabilities is described by a Dirichlet distribution.

Worked example of an adverse event probability from a small study

The figures below are illustrative. A single-arm study of 40 patients reports 6 with a serious adverse event over one year, and a cohort model with a one-year cycle needs the annual probability of that event.

1. Estimate the probability. The maximum likelihood estimate is p^=6/40=0.15\hat{p} = 6/40 = 0.15. If the true probability were 0.15, the chance of seeing exactly 6 events would be as follows.

P(R=6)=3838380×0.156×0.8534=0.174P(R = 6) = 3838380 \times 0.15^{6} \times 0.85^{34} = 0.174

where 3,838,380 is the binomial coefficient for choosing 6 patients from 40; Excel gives the same value with BINOM.DIST(6, 40, 0.15, FALSE).

2. Compare the Wald and Wilson intervals. The standard error is 0.15×0.85/40=0.0565\sqrt{0.15 \times 0.85 / 40} = 0.0565, so the Wald interval is p^±1.96×0.0565\hat{p} \pm 1.96 \times 0.0565, about 0.039 to 0.261. For the Wilson interval, with z2=3.8416z^2 = 3.8416, the centre term is p^+3.8416/80=0.1980\hat{p} + 3.8416/80 = 0.1980, the half-width is z0.0031875+0.00060025=0.1206z \sqrt{0.0031875 + 0.00060025} = 0.1206 and the denominator is d=1+3.8416/40=1.0960d = 1 + 3.8416/40 = 1.0960. The interval runs from (0.1980−0.1206)/1.0960=0.0706(0.1980 - 0.1206)/1.0960 = 0.0706 to (0.1980+0.1206)/1.0960=0.2907(0.1980 + 0.1206)/1.0960 = 0.2907, shifted upwards and asymmetric because the estimate lies near the lower bound.

3. Repeat with zero events. With no events the Wald standard error is zero and the interval is the single point 0. The Wilson half-width is z0.00060025=0.0480z \sqrt{0.00060025} = 0.0480, equal to the centre term, so the interval runs from 0 to (0.0480+0.0480)/1.0960=0.0876(0.0480 + 0.0480)/1.0960 = 0.0876. No events in 40 patients is consistent with an annual probability of up to about 9%.

4. Describe uncertainty for the model. With a uniform Beta(1, 1) prior, the posterior for the original data is Beta(7, 35), with mean E(p)=7/42=0.167E(p) = 7/42 = 0.167. The uniform prior pulls the mean from 0.15 to 0.167, an effect of prior choice with small counts discussed on the beta distribution page.

5. Separate chance variation from parameter uncertainty. For 1,000 patients entering the state, a cohort model with p=0.15p = 0.15 records Np=1000×0.15=150N p = 1000 \times 0.15 = 150 events in the first cycle. A microsimulation of the same patients, with the probability held at 0.15, gives a binomial count with standard deviation 1000×0.15×0.85=11.29\sqrt{1000 \times 0.15 \times 0.85} = 11.29; BINOM.INV(1000, 0.15, 0.025) returns 128 and BINOM.INV(1000, 0.15, 0.975) returns 172. That spread is stochastic noise, absent from the cohort model and averaged away in a microsimulation with enough patients. The uncertainty in the probability itself is far wider. The 2.5% and 97.5% points of Beta(7, 35) are 0.0715 and 0.2917, about 72 to 292 events per 1,000 patients, and it is this beta distribution that the probabilistic sensitivity analysis carries through to costs and QALYs.

Assumptions that decide whether the binomial fits

The binomial model rests on assumptions that trial and cohort data often strain. When one fails, a different model is usually needed.

  • A fixed denominator. Every patient must be followed for the whole period; with incomplete follow-up or censoring, a simple proportion is biased and survival analysis is the usual route.
  • Independence. Patients clustered within centres tend to resemble each other, inflating the variance beyond np(1−p)np(1 - p); differences between trials in a synthesis are handled through random effects and between-study heterogeneity.
  • One event per patient. Repeated events such as admissions are counts over person-time, which suit the Poisson distribution or, when overdispersed, the negative binomial; TSD 2 notes that the Poisson model for repeated events assumes the events are independent.

Where binomial reasoning goes wrong

One error is to trust the normal approximation with small or zero counts, for example reporting a Wald interval of zero width after a study with no events. A related habit is adding 0.5 to zero cells before pooling trials, which TSD 2 identifies as a source of bias that an exact binomial likelihood largely avoids.

A second group of errors mixes the two kinds of uncertainty. The variance Np(1−p)Np(1 - p) of a simulated count in the model population describes chance variation among patients rather than how well the probability is known, so it should not set the width of a parameter distribution; that width comes from the sampling variance of the study proportion, p(1−p)/np(1 - p)/n, which shrinks as the study grows. The binomial and the beta are also sometimes presented as competing choices for the same input, when in Bayesian updating they work as a conjugate pair.

Sources

  • Agresti A. Categorical Data Analysis. 3rd ed. Hoboken, NJ: Wiley; 2013.
  • Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation. Oxford: Oxford University Press; 2006.
  • Briggs AH, Weinstein MC, Fenwick EAL, Karnon J, Sculpher MJ, Paltiel AD. Model parameter estimation and uncertainty analysis: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force Working Group-6. Medical Decision Making. 2012;32(5):722-732.
  • Brown LD, Cai TT, DasGupta A. Interval estimation for a binomial proportion. Statistical Science. 2001;16(2):101-133.
  • Casella G, Berger RL. Statistical Inference. 2nd ed. Pacific Grove, CA: Duxbury; 2002.
  • Dias S, Welton NJ, Sutton AJ, Ades AE. NICE DSU Technical Support Document 2: A generalised linear modelling framework for pairwise and network meta-analysis of randomised controlled trials. Sheffield: Decision Support Unit, ScHARR, University of Sheffield; 2011, last updated September 2016. Sections 2.1, 3.1, 3.2, 6.3 and 7.2.
  • Gelman A, Carlin JB, Stern HS, Dunson DB, Vehtari A, Rubin DB. Bayesian Data Analysis. 3rd ed. Boca Raton: CRC Press; 2013. Sections 2.1, 2.4 and 2.8, and Appendix A.
  • Microsoft. BINOM.DIST function and BINOM.INV function. Microsoft Support; accessed 1 October 2026. https://support.microsoft.com/en-gb/excel/functions/binom-dist-function and https://support.microsoft.com/en-gb/excel/functions/binom-inv-function

Institutional Perspectives (1)

  • NICE Decision Support Unit

    Binomial Likelihood Handles Zero Cells Without Continuity Corrections

    TSD 2 models the number of events in each trial arm as binomial, with a logit link to the arm's event probability, in its core models for pairwise and network meta-analysis of randomised trials. When trials report the proportion with an event at different follow-up times, it keeps the binomial likelihood but uses a complementary log-log link, assuming a constant event rate. Because zero cells are allowed, the occasional trial with a zero count needs no special precautions, whereas adding an arbitrary 0.5 biases effect estimates. Several small trials with zero cells can make the models numerically unstable.

    NICE DSU Technical Support Document 2: A generalised linear modelling framework for pairwise and network meta-analysis of randomised controlled trials (Dias, Welton, Sutton and Ades, August 2011, last updated September 2016), sections 2.1.1, 3.2 and 6.3View source →

Functions & Formulae (7)

P(R = r) = C(n, r) * p^r * (1 - p)^(n - r), r = 0, 1, ..., n

Gives the probability that exactly r of n patients have an event within a fixed period when each patient has the same probability p of the event and outcomes are independent. Read as a function of p for an observed count, the same expression is the binomial likelihood, proportional to p^r (1 minus p)^(n minus r), which peaks at the observed proportion r/n. The formulae below give the probability function, the chance of a zero count, the mean and variance of the count, the estimated probability with its standard error, the Wald and Wilson intervals and the logit model for binomial data in NICE DSU evidence synthesis. The conjugate beta update of a binomial probability is set out on the Beta Distribution page (HE-FM-BETA-002), and the general Wald interval for any estimate on the Asymptotic Normality page (HE-FM-AN-001).

  • Binomial probability of exactly r patients with an event

    P_r = C(n, r) * p^r * (1 - p)^(n - r)

    Gives the probability that exactly r of n patients at risk have the event within the period. C(n, r) is the binomial coefficient, n! divided by r! (n minus r)!, the number of ways of choosing which r of the n patients have the event; Excel returns it with COMBIN. A single patient, the case n = 1, is a Bernoulli trial.

  • Binomial probability of no events among n patients

    P_0 = (1 - p)^n

    The binomial probability function with r = 0. The chance of a zero count depends on the expected count n p: it stays high when n p is small, so a rare event in a small study often gives no events at all, and a zero count does not show that the probability is zero.

  • Mean, variance and standard deviation of a binomial event count

    E_R = n * p; V_R = n * p * (1 - p); SD_R = sqrt(V_R)

    Gives the expected number of patients with the event and the variance and standard deviation of that count. In a cohort model the number moving is the mean n p, with no chance variation. In a microsimulation of n patients with a fixed probability, the count varies around that mean with variance n p (1 minus p), the stochastic or first-order uncertainty of the ISPOR-SMDM task force. The variance is largest when p is one half. The function sqrt is the square root.

  • Maximum likelihood estimate of a binomial probability and its standard error

    p_hat = r / n; SE_p = sqrt(p_hat * (1 - p_hat) / n)

    The binomial likelihood, proportional to p^r (1 minus p)^(n minus r), peaks at the observed proportion r/n, the maximum likelihood estimate. Its standard error is estimated by putting p_hat in place of p in the sampling variance p (1 minus p)/n, so larger studies give more precise estimates.

  • Wald confidence interval for a binomial proportion

    p_hat = r / n; L_Wald = p_hat - z * sqrt(p_hat * (1 - p_hat) / n); U_Wald = p_hat + z * sqrt(p_hat * (1 - p_hat) / n)

    The normal-approximation interval for a binomial proportion, the form most often quoted. It is symmetric about p_hat, has zero width when r is 0 or n, and its lower limit can fall below zero. Brown, Cai and DasGupta showed that its coverage behaves erratically and that the problem is far more persistent than had been appreciated. The general Wald interval for any estimate is on the Asymptotic Normality page (HE-FM-AN-001).

  • Wilson score interval for a binomial proportion

    p_hat = r / n; m_W = p_hat + z^2 / (2 * n); h_W = z * sqrt(p_hat * (1 - p_hat) / n + z^2 / (4 * n^2)); d_W = 1 + z^2 / n; L_Wilson = (m_W - h_W) / d_W; U_Wilson = (m_W + h_W) / d_W

    Inverts the large-sample test for a proportion instead of plugging p_hat into the standard error. Its centre is pulled from p_hat towards one half, it is asymmetric near the bounds and its limits cannot fall outside the possible range for a probability. Brown, Cai and DasGupta recommend it, or the equal-tailed Jeffreys interval, for small n.

  • Binomial arm event probability from the logit model in NICE DSU TSD 2

    p_ik = exp(mu_i + delta_ik) / (1 + exp(mu_i + delta_ik))

    In the TSD 2 framework the number of events r_ik in arm k of trial i is binomial with probability p_ik among n_ik patients, and the logit of p_ik is the trial's baseline log odds mu_i plus, for arms other than the control, the trial-specific log odds ratio delta_ik. Inverting the logit gives the arm probability below; for the control arm delta_ik is zero. The function exp is the exponential function.

View all formulae

Library

Publications

3
  • Book

    Categorical Data Analysis — Agresti A, 3rd edition ed., 2013 (Wiley)

    Textbook on categorical data analysis, cited for the standard Wald and Wilson interval formulas for a binomial proportion.

  • Journal article

    Interval estimation for a binomial proportion — Brown LD, Cai TT, DasGupta A, Vol. 16, No. 2, pp. 101-133 ed., 2001 (Statistical Science)

    Paper on interval estimation for a binomial proportion, which found the erratic coverage of the Wald interval far more persistent than appreciated and recommended the Wilson or equal-tailed Jeffreys interval for small samples and the Agresti and Coull interval for larger samples.

  • Book

    Bayesian Methods in Health Economics — Gianluca Baio, 1st Edition ed., 2012 (Chapman & Hall / CRC Press)

    An overview of Bayesian statistical methods for the analysis of health economic data, covering economic evaluation concepts, statistical cost-effectiveness analysis, Bayesian computation and MCMC, and applied health economic evaluation.

Tools & Resources

1
  • Other

    BINOM.DIST function and BINOM.INV function — Microsoft, Microsoft Support, accessed 1 October 2026 ed., 2026 (Microsoft)

    Documentation for the Excel BINOM.DIST and BINOM.INV functions, which return binomial probabilities and the smallest count whose cumulative binomial probability reaches a criterion value.

Frequently Asked Questions (6)

  • What is the binomial distribution?

    The binomial distribution models how many of a fixed number of patients have an event when each has the same probability and outcomes are independent.

    Source: Casella & Berger 2002

  • What does the binomial distribution describe?

    The binomial distribution describes the number of successes in a fixed number of independent trials, each with the same probability of success, such as the number of heads in ten coin tosses or of responders among ten treated patients. It gives the probability of every possible count of successes, which underlies inference about proportions, since an observed proportion is a count of successes over a total. Its shape depends on the number of trials and the success probability. Counting successes across independent trials is what it captures. Kirkwood and Sterne (2003) describe this distribution.

    Source: Kirkwood & Sterne 2003

  • What are the assumptions of the binomial distribution?

    The binomial distribution assumes a fixed number of trials; that each trial has only two outcomes, success or failure; that the probability of success is the same on every trial; and that the trials are independent of one another. If these assumptions hold, the count of successes follows a binomial distribution. So the binomial distribution rests on fixed, independent, identical binary trials, and its validity depends on these conditions, meaning that if the success probability varies between trials or the trials are dependent, the distribution may not apply, which is why these assumptions are checked when using it to model counts of binary events.

    Source: Casella & Berger 2002

  • How is the binomial distribution used?

    The binomial distribution is used to model and analyse the number of successes in binary outcome data, such as the number of events among a fixed group, to calculate probabilities of particular counts, to construct confidence intervals for proportions, and to underpin tests and models for binary data, including logistic regression. So the binomial distribution is used wherever counts of binary events out of a fixed number arise, providing the basis for inference about proportions and for statistical methods dealing with yes-or-no outcomes, which makes it one of the foundational distributions in the analysis of health and other data involving events among individuals.

    Source: Casella & Berger 2002

  • What are the properties of the binomial distribution?

    The binomial distribution has a mean equal to the number of trials times the success probability, and a variance equal to the number of trials times the success probability times one minus the success probability. It is discrete, taking whole-number values from zero to the number of trials, and it becomes approximately normal when the number of trials is large and the probability not too extreme. So the binomial distribution's properties include a defined mean and variance determined by its parameters and an approach to normality in large samples, which is why, for large numbers of trials, normal approximations are sometimes used for inference about proportions derived from it.

    Source: Casella & Berger 2002

  • How does the binomial distribution relate to proportions?

    The binomial distribution relates to proportions because the sample proportion, the number of successes divided by the number of trials, is derived from a binomial count, so inference about a proportion is based on the binomial distribution. The distribution provides the probabilities of different counts, and hence of different observed proportions, allowing confidence intervals and tests for proportions. So the binomial distribution underpins the analysis of proportions, since an observed proportion of events reflects a binomial count, and understanding its distribution is what allows valid estimation and testing of the underlying probability of success, such as a response or event rate.

    Source: Casella & Berger 2002

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 10 Oct 2026

Content version: 1.0.2

Canonical Identity

Term code
HE-ES-SA-015

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