Stochastic Markov Model — Probabilistic State-Transition Simulation with Uncertainty Propagation

Simulation
Introduced by
Markov, A. A. (probabilistic extension developed by Sonnenberg & Beck and others)
Year
1993
Type
Probabilistic state-transition model with Monte Carlo uncertainty propagation
Family
Simulation / optimization

What does it do?

A Stochastic Markov Model represents a system as a set of mutually exclusive states, moves a cohort (or individual agents) through those states using transition parameters sampled from probability distributions, and repeats this across many Monte Carlo iterations, commonly a thousand or more.

The result is a distribution of outcomes such as costs or effects, rather than a single point estimate, which shows how parameter uncertainty propagates to the final result.

The intuition behind the method

Consider tracking a population through disease stages such as healthy, sick, recovered and dead over many annual cycles. A deterministic Markov model fixes the transition probabilities and produces one trajectory. The stochastic version treats those probabilities as uncertain, because they are estimated from finite samples. In each Monte Carlo iteration a new set of transition probabilities and payoffs is drawn, so the uncertainty carries through to the final outputs as intervals rather than a single figure.

History

Markov chains are named after the mathematician Andrei Markov. Sonnenberg and Beck (1993) describe Markov models as evaluable by matrix algebra, as cohort simulations, or as Monte Carlo simulations, and note their ability to represent repeated events and time-dependent probabilities and utilities. The probabilistic form described on this page, in which transition parameters are drawn from distributions across Monte Carlo iterations, is not attributed to a specific originator here. Briggs, Sculpher and Claxton (2006) give a book-length treatment of decision modelling for health economic evaluation.

When to use it

Use a Stochastic Markov Model when the decision involves a finite set of discrete states, events that can recur over several time periods, and parameter uncertainty that needs to be carried into the outputs. It is commonly applied in health economic evaluation, where transition probabilities and costs or utilities rest on limited evidence and results are reported probabilistically, for example as cost-effectiveness acceptability curves. Do not use it when the system is better described by continuous states governed by differential equations, when the memoryless Markov assumption is implausible and history matters in a way that cannot be captured by expanding the states, when the analysis covers only a single period, or when the data are too sparse to justify specifying parameter distributions; in that case a deterministic one-way sensitivity analysis may be more appropriate.

Limitations and considerations

  • The Markov (memorylessness) assumption — that future transitions depend only on the current state, not history — is often violated in practice; workarounds via tunnel states add model complexity.
  • Specifying credible probability distributions for all parameters requires good-quality evidence; poorly specified priors propagate poorly calibrated uncertainty.
  • Computational cost grows with the number of states, cycles, and Monte Carlo iterations; very large models may require significant runtime or parallel computing resources.
  • Model structure itself (which states to include, cycle length) is typically fixed and not subject to probabilistic uncertainty, which can be a major source of unquantified structural uncertainty.
  • Results are sensitive to the choice of distributions and their correlations; ignoring correlation between parameters (e.g., costs and utilities) can underestimate or overestimate total variance.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Explicitly quantifies parameter uncertainty and delivers uncertainty intervals rather than point estimates, supporting transparent decision-making under uncertainty.
  • The probabilistic output (e.g., cost-effectiveness acceptability curves) directly informs value-of-information analyses and budget allocation decisions.
  • State-transition structure is interpretable to non-technical stakeholders, and model logic can be audited cycle by cycle.
  • Naturally accommodates multiple simultaneously uncertain parameters without requiring manual scenario construction.
  • Its probabilistic outputs, such as cost-effectiveness acceptability curves, are the kind of results reported in probabilistic sensitivity analysis of economic evaluations.
  • Extensible: individual-level microsimulation and time-inhomogeneous variants can incorporate patient heterogeneity and time-varying transitions within the same framework.

Applications

  • Cost-effectiveness analysis of new pharmaceuticals or medical devices, with probabilistic sensitivity analysis of the results.
  • Disease progression modelling in oncology, cardiovascular disease, and infectious disease epidemiology.
  • Long-term outcome projection for chronic conditions such as diabetes or HIV, where patients cycle through multiple health states over years.
  • Health technology assessment submissions in which uncertainty in costs and outcomes is reported probabilistically.
  • Policy evaluation comparing screening or prevention programs, with uncertainty in cost-per-QALY summarised as intervals to inform budget decisions.
  • Infrastructure or project risk modelling where assets transition through condition states (good, deteriorated, failed) with uncertain transition rates.

How it works

How it works

1

Define the state space: enumerate all mutually exclusive, collectively exhaustive states the modelled entity can occupy (e.g., disease stages, resource levels, project phases). Specify the time cycle length and the maximum number of cycles (time horizon). Each state carries associated payoffs — costs, utilities, or other outcome metrics — that may also be uncertain.

2

For every transition probability and every payoff parameter, specify a probability distribution reflecting uncertainty derived from the evidence base. Transition probabilities are typically drawn from a Dirichlet distribution (ensuring they sum to 1 per origin state); costs from gamma or log-normal distributions; utilities from beta distributions bounded in [0, 1]. This step encodes the full parameter uncertainty structure.

3

Draw one complete set of model parameters from all specified distributions — this constitutes one Monte Carlo iteration. A full parameter vector includes an entire transition matrix, all state-specific costs, and all utilities. Sampling is typically performed using Latin hypercube sampling or simple random sampling. Many analyses use 1000 or more iterations, but the adequate number should be checked with convergence diagnostics for each output.

4

Run the Markov cohort trace for the sampled parameter set. Starting from the initial cohort distribution, the occupancy vector for each cycle is obtained by multiplying the previous cycle's vector by the sampled transition matrix, and this is repeated until the time horizon is reached. Record the proportion of the cohort in each state at each cycle. Compute total expected costs and outcomes by multiplying state occupancies by the sampled payoffs and summing across all cycles, discounting each cycle's values at the chosen rate so that later cycles carry a smaller weight.

5

Repeat steps 3–4 for all N iterations. This produces N replications of every aggregate outcome (e.g., total cost, quality-adjusted life years). The collection of N values for each output forms an empirical sampling distribution that directly reflects model uncertainty.

6

Summarise results across iterations: report the mean (or median) of each output together with its 95% uncertainty interval, taken as the 2.5th and 97.5th percentiles of the N iteration values. Construct cost-effectiveness acceptability curves (CEACs) or rank-acceptability indices if comparing alternatives. Identify which parameters drive the most variance using probabilistic sensitivity analysis (PSA) scatter plots or expected value of perfect information (EVPI) metrics.

Common pitfalls

  • Treating Monte Carlo iteration count as unimportant: too few iterations can yield unstable credible intervals, particularly in the tails; always report convergence diagnostics for each output.
  • Ignoring parameter correlations when sampling: sampling transition probabilities from separate Beta distributions, rather than from a joint Dirichlet distribution, can produce rows that do not sum to one and ignores any correlation among the probabilities. Check that each sampled row of the transition matrix sums to one, and model correlations between parameters such as costs and utilities explicitly where they exist.
  • Conflating stochastic uncertainty (first-order, variability across simulated individuals within an iteration) with parameter uncertainty (second-order, variability across Monte Carlo iterations). A cohort model that uses expected occupancies does not represent within-iteration individual variability, so the uncertainty propagated is parameter uncertainty across iterations; individual-level variability requires an individual-level microsimulation.
  • Over-interpreting the width of credible intervals as a verdict on model quality rather than an honest reflection of data scarcity.
  • Failing to validate the deterministic base case before introducing stochastic layers — errors in the core model are amplified, not revealed, by probabilistic wrapping.

Frequently asked questions

What is the difference between a stochastic and a deterministic Markov model?

A deterministic Markov model uses fixed point estimates for all transition probabilities and payoffs, producing a single outcome value. A stochastic Markov model samples these parameters from probability distributions in each Monte Carlo iteration, producing a distribution of outcomes that reflects parameter uncertainty. Both use the same cohort-trace mechanics; only the parameter treatment differs.

How many Monte Carlo iterations are sufficient?

Many analyses use a thousand or more iterations, but no fixed number is guaranteed to be sufficient. The adequate number should be judged for each output, for example from running-mean plots or formal convergence diagnostics. Models with many correlated parameters or rare events may need more iterations than this common practice suggests.

When does the Markov assumption fail, and how can it be addressed?

The Markov assumption fails when the probability of transitioning out of a state depends on how long a patient has been in it (e.g., increasing mortality risk with disease duration). The standard fix is to introduce tunnel states that track time-in-state explicitly, at the cost of a larger state space. Alternatively, individual-level microsimulation can track each patient's history directly.

Can a stochastic Markov model handle individual heterogeneity?

Standard cohort-level stochastic Markov models capture only parameter uncertainty across iterations, not individual-level variability. To incorporate patient heterogeneity (different baseline risks, comorbidities), the model must be extended to an individual-level microsimulation where each simulated patient is tracked separately through the state space.

How is a stochastic Markov model different from a discrete-event simulation?

In a Markov model, time advances in fixed cycles and all events are governed by constant per-cycle transition probabilities. Discrete-event simulation models individual entities whose events occur at continuous times drawn from arbitrary distributions, allowing more flexible representation of queuing, resource constraints, and time-varying rates. Markov models are simpler to build and validate; DES is more flexible but harder to parameterise.

Related methods

Sources

  1. Sonnenberg, F. A., & Beck, J. R. (1993). Markov models in medical decision making: A practical guide. Medical Decision Making, 13(4), 322–338.

    Open DOI reference
  2. Briggs, A., Sculpher, M., & Claxton, K. (2006). Decision Modelling for Health Economic Evaluation. Oxford University Press.

    ISBN: 9780198526629