Binomial distribution of an event count among patients at risk
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)
Binomial probability of no events among n patients
P_0 = (1 - p)^n
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)
Maximum likelihood estimate of a binomial probability and its standard error
p_hat = r / n; SE_p = sqrt(p_hat * (1 - p_hat) / n)
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)
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
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))