Concept Architecture
Dirichlet Distribution for Transition Probabilities in Probabilistic Models
When a state in a Markov model has three or more destinations, the uncertain probabilities of moving to each have to be sampled together, because in every iteration of a probabilistic sensitivity analysis they must still add to one. The Dirichlet distribution does this by treating a whole row of a transition matrix as a single uncertain quantity. A row is fitted from observed transition counts with a prior that adds to them and is sampled from gamma draws, and an illustrative worked example with counts of 70, 20 and 10 shows every step.
Why multi-branch chance nodes need a joint distribution
A chance node or a Markov state with only two exits needs one uncertain probability, since the second is one minus the first, and the beta distribution is the usual choice for it. With three or more exits, separate distributions for each branch no longer guarantee that the branches add to one in a given iteration, so the model can create or lose part of the cohort.
Briggs, Ades and Price described the common advice to avoid this problem by restricting every chance node to two branches, and noted that the evidence may be naturally available in unconditional form, so forcing a conditional two-branch structure can complicate the sensitivity analysis rather than simplify it. They argued that the Dirichlet distribution, the multivariate equivalent of the beta, is an appropriate way to give probabilistic values to multiple branches while keeping mutually exclusive probabilities summing to one, and illustrated it by generating a fully probabilistic transition matrix for a Markov model.
Density, parameters and moments
The Dirichlet distribution is defined over vectors of non-negative proportions that add to one, which is exactly the set of valid rows of a transition matrix. It has one positive parameter for each destination, and its density is given below.
where is the probability of moving to destination , is the number of possible destinations, is the positive parameter attached to destination , is the sum of the parameters, and is the gamma function. The means, variances and covariances follow from the parameters.
where is the expected probability of destination , its variance and the covariance between the probabilities of two different destinations and . The ratios of the parameters fix the means, and their sum fixes the precision, which is why statistical texts call the parameters prior sample sizes. In the Dirichlet, every pair of components is negatively correlated, so a sampled row that sends more of the cohort to one destination sends less to each of the others.
Two properties link the Dirichlet to simpler distributions. The marginal distribution of a single component is a beta, , so each transition probability taken on its own behaves like a beta fitted to that destination against all the others. Merging destinations keeps the Dirichlet form, with the merged parameter equal to the sum of the parameters merged, and with two destinations the Dirichlet is a beta.
Fitting a row from observed transition counts
When a cohort is observed over an interval that matches the model cycle, the evidence for one starting state is a vector of counts, the number of patients who ended the interval in each destination. The Dirichlet is the conjugate prior for the probabilities of a multinomial distribution. A Dirichlet prior distribution combined with multinomial counts therefore gives a Dirichlet posterior distribution, with each parameter increased by its count.
where is the observed number of transitions from the starting state to destination and is the prior parameter for that destination. The prior parameters simply add to the counts.
The prior matters little when counts are large and a great deal when they are small. Setting every gives a posterior whose parameters equal the raw counts and whose means equal the observed proportions, but this prior is improper and the posterior is only valid if every destination was observed at least once. Setting every gives a uniform prior over all valid rows and adds one to each count. Briggs, Ades and Price showed that a Bayesian approach overcomes the problem of a transition of interest with a zero count, which would otherwise give a parameter of zero and no valid distribution. A transition that is clinically impossible, such as a return from death, is a different case, since it is left out of the row as a structural zero rather than given prior weight.
The counts must describe the same population, starting state and interval as the model, without irregular or censored follow-up.
Sampling a row from normalised gamma draws
The fastest standard method samples a Dirichlet row by drawing one independent gamma variable per destination and dividing each by their total. It generalises the way a beta value can be drawn from two gamma variables. Only a gamma random number generator is needed, so the method is easy to build into a spreadsheet model.
where is an independent draw from a gamma distribution with shape and a common scale of one, and is the resulting sampled probability for destination . In Excel, each draw can be made with GAMMA.INV(RAND(), , 1), since GAMMA.INV with its third argument, beta, set to one returns the standard gamma distribution. The function returns an error if a shape parameter is zero or negative, which is how a zero count without a prior shows up in a spreadsheet.
A slower alternative draws the components in sequence as beta shares of the probability still unallocated; for three destinations, drawing Beta(, ) and then Beta(, ) is the conditional two-branch tree discussed above, and gives the same joint distribution as the Dirichlet when both are taken from the same Dirichlet parameters.
Worked example with a stable state and three exits
The figures below are illustrative. In a cohort model with a one-year cycle, 100 patients in a stable state were followed for one year, after which 70 remained stable, 20 progressed and 10 died. With the improper zero prior, the row is Dirichlet(70, 20, 10), with .
1. Means. The expected probabilities are 70/100 = 0.70 for remaining stable, 20/100 = 0.20 for progression and 10/100 = 0.10 for death, the observed proportions.
2. Spread and correlation. The variance of the progression probability is calculated first.
where is the progression probability and the formula is the variance given above. The standard deviation is the square root, about 0.0398. The covariance between remaining stable and progressing follows the same pattern.
where is the probability of remaining stable. With a standard deviation for of about 0.0456, the correlation between the two is about minus 0.76, so in iterations where more patients progress, fewer remain stable.
3. An interval from the beta marginal. The progression probability on its own follows Beta(20, 80). Its central 95% runs from BETA.INV(0.025, 20, 80), about 0.128, to BETA.INV(0.975, 20, 80), about 0.283.
4. One sampled row. Taking fixed uniform numbers in place of RAND() so the step can be repeated, GAMMA.INV(0.30, 70, 1) returns about 65.38, GAMMA.INV(0.80, 20, 1) about 23.63 and GAMMA.INV(0.50, 10, 1) about 9.67. Their total is 98.68, and dividing each draw by it gives the sampled row.
where is the probability of death in this iteration. The three values add to 1.000, so the cohort is conserved.
5. What independent betas would have done. Suppose instead the three exits were sampled from separate distributions, Beta(70, 30), Beta(20, 80) and Beta(10, 90), each correct on its own. With independent draws the variance of the row total is the sum of the three variances, 0.002079 + 0.001584 + 0.000891 = 0.004554, a standard deviation of about 0.067, so about 30% of iterations would give a row total below 0.93 or above 1.07. Dividing each independent draw by the row total forces the sum to one but does not reproduce the distribution implied by the counts. In an illustrative simulation of 400,000 iterations, the rescaled progression probability had a central 95% range of about 0.136 to 0.267, narrower than the 0.128 to 0.283 of the correct marginal, so the rescaling understates uncertainty.
6. Effect of a uniform prior. With for each destination, the posterior is Dirichlet(71, 21, 11), with means of 0.689, 0.204 and 0.107. With 100 patients the change is small. If the progressed state had been followed in only 60 patients, with none returning to stable, 45 remaining progressed and 15 dying, the zero prior would give no valid distribution, whereas the uniform prior gives Dirichlet(1, 46, 16), a mean return probability of 1/63 = 0.016 and a beta marginal Beta(1, 62) whose central 95% runs from about 0.0004 to 0.058. Whether that chance of returning is credible is a clinical judgement to be reported.
Building a probabilistic transition matrix
A full matrix is assembled row by row. Each starting state with more than one possible destination gets its own Dirichlet, fitted to the counts observed from that state; an absorbing state such as death keeps a fixed row; and structural zeros stay at zero in every iteration. Rows fitted to separate groups of patients are usually sampled independently of one another, while the components within each row are linked through the negative covariances above.
NICE's manual for technology appraisal (PMG36, paragraph 4.7.10) asks for distributions that characterise uncertainty in mean parameter values, represent the available evidence rather than being chosen arbitrarily, and are justified, with separate analyses for alternative plausible distributions. Paragraph 4.7.19 asks for evidence on correlation between parameters to be reflected in the probabilistic analysis. The manual does not name a particular distribution for probabilities. A Dirichlet fitted to counts is consistent with both requests for a row of multinomial transitions, because the counts set its parameters, and the parameters fix the means, the precision and the correlation between components.
Applying a treatment effect to one component, or converting a row to a different cycle length component by component, can break the sum to one, so the whole row is recalculated with the methods described for each transition probability.
Assumptions and limits of a single Dirichlet
A Dirichlet with parameters has only one measure of precision, . Once the means are fixed, the variance of every component follows from them and from , so the distribution cannot express, for example, a well-estimated death probability alongside a poorly estimated progression probability from a different source. In that situation a sequence of conditional betas fitted to separate evidence, or sampling the underlying hazards, can describe the evidence more faithfully. Because every pair of components in a Dirichlet is negatively correlated, it cannot express a positive correlation between two destinations of the same row, and it says nothing about correlation across rows or with other inputs such as a treatment effect.
The counts behind the parameters must be real. Multiplying a published percentage by an assumed sample size sets the precision by assumption, which sits uneasily with the requirement that distributions are not chosen arbitrarily. As with any distribution in a probabilistic analysis, the Dirichlet describes parameter uncertainty about the population row, which shrinks as more patients are observed; it does not describe how individual patients move.
Where Dirichlet rows go wrong in applied models
Several errors recur in applied models. Sampling each exit from its own beta and then ignoring or rescaling the row total understates uncertainty, as step 5 of the worked example shows. Entering zero counts directly gives an invalid parameter, and replacing them with a small arbitrary number hides the prior it implies, which should be reported. Treating the components of a sampled row as independent in later analysis is a third error. Computing the expected value of partial perfect information for one component would require the others to be drawn from their conditional distribution given it, so the row is usually treated as one group of parameters.
Sources
- 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 A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation. Oxford: Oxford University Press; 2006. Chapter 4.
- Gelman A, Carlin JB, Stern HS, Dunson DB, Vehtari A, Rubin DB. Bayesian Data Analysis. 3rd ed. Boca Raton: CRC Press; 2013. Section 3.4 and Appendix A.
- Microsoft. GAMMA.INV function. Microsoft Support; accessed 2 October 2026. https://support.microsoft.com/en-gb/office/gamma-inv-function-74991443-c2b0-4be5-aaab-1aa4d71fbb18
- Microsoft. BETA.INV function. Microsoft Support; accessed 2 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.
Related Concepts (2)
Functions & Formulae (2)
E_j = alpha_j / alpha_0; V_j = alpha_j * (alpha_0 - alpha_j) / (alpha_0^2 * (alpha_0 + 1)); C_ij = -alpha_i * alpha_j / (alpha_0^2 * (alpha_0 + 1)); alpha_j = a_j + n_j; p_j ~ Beta(alpha_j, alpha_0 - alpha_j)
Mean, variance, covariance and correlation of two components of a three-destination Dirichlet row
alpha_0 = alpha_1 + alpha_2 + alpha_3; E_2 = alpha_2 / alpha_0; V_2 = alpha_2 * (alpha_0 - alpha_2) / (alpha_0^2 * (alpha_0 + 1)); V_1 = alpha_1 * (alpha_0 - alpha_1) / (alpha_0^2 * (alpha_0 + 1)); C_12 = -alpha_1 * alpha_2 / (alpha_0^2 * (alpha_0 + 1)); R_12 = C_12 / sqrt(V_1 * V_2)
Dirichlet posterior parameter, mean and beta marginal for one destination from transition counts and a Dirichlet prior
alpha_j = a_j + n_j; b_j = A_0 + N - alpha_j; E_j = alpha_j / (A_0 + N)
Library
Publications
1
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.
Journal ArticleView source →
Tools & Resources
1
GAMMA.INV function — Microsoft, Web page, accessed 2 October 2026 ed., 2026 (Microsoft Support)
Documentation for the Excel GAMMA.INV function, which returns the inverse of the gamma cumulative distribution with arguments for probability, alpha and beta, gives the standard gamma when beta equals 1 and returns an error when alpha or beta is zero or below.
Web (Open Access)View source →
Frequently Asked Questions (6)
What is the Dirichlet distribution?
The Dirichlet distribution is a multivariate distribution for proportions that sum to one, used for uncertain transition probabilities from a model state.
Source: Briggs, Claxton & Sculpher 2006
What constraint does the Dirichlet distribution enforce on a set of proportions?
When a patient in a health state can move to any of several others, the probabilities of those moves must add up to one, since the patient goes somewhere. The Dirichlet distribution represents uncertainty about such a set of proportions while automatically respecting that they sum to one, so every sample it produces is a valid set of transition probabilities. Sampling each probability independently would break this constraint. It is the multivariate counterpart of the beta distribution used for a single probability. Briggs and colleagues (2006) describe this use.
Source: Briggs et al. 2006
Why is the Dirichlet distribution used for transition probabilities?
The Dirichlet distribution is used for transition probabilities because the probabilities of moving from a given state to the possible next states must sum to one, and the Dirichlet ensures every sampled set of probabilities satisfies this constraint while lying between zero and one. Sampling each probability independently could give a set that does not sum to one, which would be invalid. The Dirichlet distribution therefore represents the joint uncertainty in a full set of transition probabilities coherently in probabilistic analysis.
Source: Briggs, Claxton & Sculpher 2006
How are the parameters of a Dirichlet distribution set?
The parameters of a Dirichlet distribution are set from the data on the transitions, typically the counts of individuals moving from a state to each destination, so that each parameter reflects the number observed for that transition. Larger counts give a tighter distribution around the observed proportions, reflecting greater precision. This mirrors how the beta distribution is set from event and non-event counts. Using the transition counts lets the Dirichlet represent both the estimated probabilities and their uncertainty based on the underlying data.
Source: Vose 2008
How does the Dirichlet distribution relate to the beta distribution?
The Dirichlet distribution generalises the beta distribution from two categories to several: the beta represents uncertainty in a single proportion, bounded between zero and one, while the Dirichlet represents uncertainty in a set of proportions that sum to one across multiple categories. Each marginal of a Dirichlet is a beta distribution. So where a state has only two possible transitions, the Dirichlet reduces to a beta, and where it has more, the Dirichlet extends the same idea to the full set.
Source: Briggs, Claxton & Sculpher 2006
What are the limitations of the Dirichlet distribution?
The Dirichlet distribution imposes a particular correlation structure among the proportions arising from the sum-to-one constraint, which may not match the true dependence, and it requires the categories to be mutually exclusive and exhaustive. Setting its parameters needs transition counts or equivalent data, which may be limited. It represents uncertainty in proportions from a single source and does not easily combine evidence from several. These limitations mean the Dirichlet is used for coherent sets of proportions where its structure is appropriate to the data.
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-018
Stable URI · Machine-readable · Resolvable · CC BY 4.0
