- Introduced by
- Ibrahim, Chen & Sinha
- Year
- 2001
- Type
- Bayesian time-to-event model
What does it do?
Bayesian survival analysis applies Bayesian inference to time-to-event models, including Cox proportional hazards, parametric (Weibull, exponential) and cure models.
The approach encodes prior knowledge about hazard rates and regression coefficients and updates it with censored survival data, yielding posterior hazard ratios and credible intervals rather than single point estimates. A book-length treatment of the approach is Ibrahim, Chen and Sinha (2001).
The intuition behind the method
Classical survival analysis returns one hazard ratio per covariate with a confidence interval that depends on large-sample approximations. Bayesian survival analysis instead treats every hazard and coefficient as uncertain before the data arrive, encodes that uncertainty as a prior distribution, and lets the censored observations update the prior into a posterior. The result is a full distribution for each quantity: the posterior is wide when data are sparse — typically with small samples or rare events — and narrows as evidence accumulates. Credible intervals can be read directly as probability statements about the hazard, not as asymptotic guarantees.
History
The book-length reference for Bayesian survival analysis is the 2001 Springer monograph by Joseph G. Ibrahim, Ming-Hui Chen and Debajyoti Sinha, titled Bayesian Survival Analysis. The monograph is cited here as the reference for the modelling framework. The specific thresholds given on this page, such as R-hat below 1.01 and at least four MCMC chains, reflect common practice rather than recommendations taken from the monograph.
When to use it
Choose Bayesian survival analysis when the sample is small, when events are rare and frequentist Cox estimates are unstable or underpowered, or when reliable prior information exists, for example from a previous study or a published meta-analysis, that should be formally incorporated. The StatWise registry sets a minimum of 20 observations, but this is a floor and not a guarantee of stable inference. Information in survival data comes mainly from the number of observed events, so the number of events per estimated parameter should be reported; with few events, the posterior will be dominated by the prior. The method is also suited to questions that need the full posterior of a hazard ratio, such as the probability that it exceeds a specific threshold. Do not use it when prior information cannot be justified, because an unjustified prior can silently drive the results, or when censoring may depend on the underlying risk, since the method assumes noninformative censoring. A prior sensitivity analysis, comparing informative and vague priors, is required before reporting.
Limitations and considerations
- When n is small (close to the minimum of 20) or the number of observed events is low, the posterior is dominated by the prior; clinical interpretation requires caution.
- If prior sensitivity analysis reveals that the posterior shifts meaningfully with the prior choice, the Bayesian advantage over frequentist Cox is reduced.
- MCMC sampling is computationally heavier than frequentist maximisation, particularly for large datasets or complex baseline hazard specifications.
- Choosing and justifying the prior for the hazard requires domain knowledge; an uninformed choice can silently bias results.
- The model rests on assumptions that must be checked rather than taken for granted. The Bayesian Cox model assumes that hazard ratios are constant over time (proportional hazards); this can be checked with residual-based diagnostics such as Schoenfeld-type residuals, or by fitting time-varying coefficients. Weibull and exponential models assume a specific parametric form for the baseline hazard; posterior predictive survival curves compared with Kaplan-Meier curves show whether that form fits. Noninformative censoring is assumed throughout. When a check fails, the model should be changed, for example to time-varying effects or a more flexible baseline, rather than reporting the current results as they stand.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Encodes prior clinical or epidemiological knowledge about hazard rates and updates it formally with the observed data.
- Produces posterior hazard ratios and credible intervals that are direct probability statements about the coefficients given the data and the prior; with small samples or few events they combine prior and data rather than relying on large-sample approximations.
- Handles right-censored data exactly within the likelihood without imputation.
- Supports several baseline hazard specifications: nonparametric (Bayesian Cox), Weibull, exponential and cure models.
Applications
- Clinical trials with small cohorts or rare endpoints where Cox regression estimates are unstable.
- Pharmacovigilance and drug safety studies that can formally incorporate prior safety data from earlier trials.
- Epidemiological studies where expert knowledge about baseline hazard rates is available and should be encoded.
- Prognostic modelling where the probability that a hazard ratio exceeds a clinically meaningful threshold is a primary output.
- Cure model analyses in oncology where a proportion of patients is assumed to be permanently event-free.
How it works
How it works
Bayes' rule connects prior beliefs to the posterior: the posterior is proportional to the likelihood of the observed survival times and censoring indicators given the parameters, multiplied by the prior placed on those parameters. Priors are placed on the regression coefficients, which are log hazard ratios. Normal priors centred at zero (equivalently, log-normal priors on the hazard ratio itself) and Cauchy priors are common choices. They encode the expectation that hazard ratios lie near one while allowing for large effects. The prior scale must be chosen with the covariate coding in mind.
Formula
p(\theta\mid y) \propto p(y\mid\theta)\,p(\theta)
The survival likelihood is the product over all individuals of the hazard function evaluated at the event time (raised to the censoring indicator, which is one for observed events and zero for censored observations) times the survival function evaluated at that time. This structure handles right-censored data exactly: censored individuals contribute their survival probability up to the censoring time without requiring imputation. The baseline hazard can be left nonparametric (as in the Bayesian Cox model), or given a parametric form such as Weibull, which links the shape and scale parameters directly to covariates.
Formula
L(\theta) = \prod_{i=1}^{n} h(t_i\mid\theta)^{d_i}\, S(t_i\mid\theta)Multiplying the survival likelihood by the priors on the regression coefficients and the baseline hazard gives the joint posterior. Because this posterior generally has no closed form, it is sampled with MCMC, commonly Hamiltonian Monte Carlo as implemented in Stan or PyMC. Variational approximations are faster but tend to underestimate posterior variance, so the credible intervals described on this page are taken from MCMC samples. Convergence is checked with R-hat values below 1.01, adequate effective sample sizes and trace plots. Posterior predictive checks compare simulated survival curves with observed Kaplan-Meier curves. Posterior means and 95% credible intervals for hazard ratios, and posterior survival curves, are read off the samples.
Formula
p(\boldsymbol{\beta}, \lambda_0 \mid \mathbf{t}, \mathbf{d}) \propto L(\boldsymbol{\beta}, \lambda_0)\, p(\boldsymbol{\beta})\, p(\lambda_0)Common pitfalls
- Reporting posterior hazard ratios without checking MCMC convergence: R-hat must be below 1.01, and effective sample size and trace plots must be inspected.
- Skipping prior sensitivity analysis: comparing informative versus vague priors is mandatory, not optional.
- Omitting posterior predictive checks against Kaplan-Meier curves, which is the primary diagnostic for model fit in survival settings.
- Applying the method when the censoring mechanism is informative (e.g., patients dropping out because of deterioration), which violates the noninformative censoring assumption.
- Interpreting a 95% credible interval as a frequentist confidence interval or vice versa.
- Fitting a proportional hazards or parametric model without checking its assumptions, and then reporting hazard ratios as constant over time when that has not been verified.
Frequently asked questions
How does Bayesian survival analysis differ from frequentist Cox regression?
Frequentist Cox regression maximises the partial likelihood to obtain a single hazard ratio estimate with a standard error and a confidence interval based on large-sample theory. Bayesian survival analysis combines a prior distribution on the hazard parameters with the full survival likelihood to produce a posterior distribution for every quantity. Credible intervals are direct probability statements about the parameters given the data and prior; they do not rely on asymptotic approximations, but they do depend on the prior, which matters most when samples are small.
What prior should I place on the hazard ratios?
Normal priors centred at zero on the log hazard ratios (equivalently, log-normal priors on the hazard ratio) and Cauchy priors are common choices. Both place most of their prior mass near a hazard ratio of one while allowing for large effects. The prior scale must be set relative to how the covariates are coded. A Cauchy scale of 2.5 is sometimes used with standardised covariates, but it is not a universal default and should be justified for the study at hand. The prior must also be subjected to sensitivity analysis: run the model under both an informative prior (derived from previous studies) and a vague prior, and report both sets of results.
How do I check whether the MCMC has converged?
Run multiple chains (at least four) and compute R-hat for every parameter; values below 1.01 indicate convergence. Inspect trace plots for chain mixing: the chains should overlap and show no drift. Check the bulk and tail effective sample sizes, which should be large enough for stable estimates of posterior means and credible interval endpoints. Finally, perform posterior predictive checks by comparing simulated survival curves with the empirical Kaplan-Meier estimate. The four-chain and 1.01 thresholds reflect common practice.
What is noninformative censoring and why does it matter?
Noninformative censoring means that the reason a subject is censored (lost to follow-up, study ended, withdrew consent) is unrelated to their underlying risk of the event. If censoring is informative (e.g., sicker patients withdraw earlier), the survival likelihood no longer correctly represents the data-generating process and posterior estimates will be biased. Bayesian methods offer no special protection against informative censoring; the assumption must be checked by design and subject-matter knowledge.
Related methods
Sources
Ibrahim, J.G., Chen, M.-H. & Sinha, D. (2001). Bayesian Survival Analysis. Springer.
Open DOI reference