Bayesian Survival Regression

Statistics
Introduced by
Ibrahim, Chen & Sinha (seminal textbook treatment, 2001); broader Bayesian framework: Gelman et al.
Year
1990s–2001
Type
Bayesian parametric/semiparametric regression
Family
Regression / GLM

What does it do?

Bayesian survival regression fits time-to-event regression models, such as the Cox proportional hazards model and parametric survival families like the Weibull or log-normal, within a Bayesian framework.

Instead of single point estimates, it yields posterior distributions for the regression coefficients and the baseline hazard. Right-censored observations enter through the likelihood, and prior information about covariate effects can be included.

The intuition behind the method

In a clinical trial, you observe how long patients survive, but many are still alive at the study end (censored). Bayesian survival regression models the hazard of the event at each moment, links it to patient covariates through a regression equation, and updates prior beliefs about the effects with the observed data. The result is a posterior distribution over every coefficient, giving credible intervals that reflect both data uncertainty and prior knowledge — especially valuable when sample sizes are small or historical data are available.

History

Bayesian approaches to survival analysis drew on Dirichlet and gamma process priors for the cumulative hazard, with early development in earlier decades. MCMC methods in the 1990s made posterior computation practical for complex censored-data likelihoods. Ibrahim, Chen, and Sinha's 2001 Springer monograph 'Bayesian Survival Analysis' is a systematic textbook treatment covering Bayesian Cox models, parametric survival regression, frailty models, and cure-rate models; it is a textbook treatment of the method rather than its origin.

When to use it

Use Bayesian survival regression when your outcome is time to an event (death, relapse, failure, default) and observations may be censored. It is particularly advantageous when prior information from historical trials or expert knowledge is available, when the sample is small and frequentist uncertainty intervals are unreliable, or when you need full predictive distributions for individual patients or items. Avoid it when you have no defensible prior (use Cox regression instead), when computational resources are severely limited, or when a simple Kaplan-Meier or log-rank comparison suffices because no covariate adjustment is needed.

Limitations and considerations

  • MCMC sampling can be slow: runs on large datasets or complex models can take hours or days, so computing time is a practical constraint.
  • Posterior inference depends on the prior; with few events, weakly informative and diffuse priors on the coefficients can shift hazard ratio estimates noticeably.
  • Convergence must be checked (trace plots, R-hat, effective sample size) before posterior summaries are used; unconverged chains give unreliable intervals.
  • Reporting posterior distributions for hazard ratios takes more explanation for readers accustomed to a single hazard ratio and p-value.
  • The proportional-hazards form assumes that hazard ratios are constant over time. If this fails, a time-varying coefficient or a non-proportional-hazards model such as an accelerated failure time model is needed, and that choice changes how the coefficients are interpreted.

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

Strengths

  • Gives a posterior distribution for each hazard ratio and survival probability, so statements such as the probability that a coefficient is positive can be read directly from the posterior draws.
  • Lets prior information from earlier trials or expert judgement enter through the prior on the coefficients, which can help when the number of events is small.
  • Right-censored subjects contribute survival terms to the likelihood, so no separate adjustment for censoring is needed.
  • Predictions for a new subject average over the posterior, so their uncertainty includes parameter uncertainty as well as event-time variability; the accuracy of those intervals still depends on the model and priors being adequate.
  • Hierarchical extensions, such as patients nested within clinics, can be specified in the same framework, and the baseline hazard can be parametric (e.g., Weibull, log-normal) or semiparametric (gamma process prior on the cumulative hazard).

Applications

  • Clinical trials: estimating treatment effects on patient survival time with incorporation of historical control data.
  • Oncology: modelling time to tumour recurrence or death, with hierarchical priors across patient subgroups.
  • Reliability engineering: predicting component failure times with informative priors from manufacturer specifications.
  • Finance: modelling time to loan default or bankruptcy, leveraging industry-level prior knowledge.
  • Epidemiology: studying time-to-infection or time-to-recovery with partially observed (censored) follow-up.
  • Social sciences: analysing event history data such as time to job loss or to re-offending.

How it works

How it works

1

The likelihood accounts for both complete event times and right-censored observations. For each subject the contribution is the density f(t) if the event was observed, or the survival function S(t) if censored, where both depend on the chosen baseline hazard family (Weibull, exponential, log-normal, etc.) and the linear predictor from covariates.

Formula
L(\theta) = \prod_{i=1}^{n} [f(t_i|\mathbf{x}_i,\theta)]^{\delta_i} [S(t_i|\mathbf{x}_i,\theta)]^{1-\delta_i}
2

Prior distributions are specified for the regression coefficients (commonly weakly informative normal or Cauchy priors) and for the baseline hazard parameters. In semiparametric Bayesian Cox models, a process prior such as the gamma process is placed on the cumulative baseline hazard.

Formula
\beta_j \sim \mathrm{Normal}(0, \sigma^2)
3

By Bayes' theorem, the posterior is proportional to the likelihood times the prior. Because this product rarely has a closed form, posterior inference is carried out via Markov Chain Monte Carlo (MCMC) — typically Hamiltonian Monte Carlo or Gibbs sampling — yielding samples from the joint posterior of all parameters.

Formula
p(\theta|\mathbf{t},\boldsymbol{\delta}) \propto L(\theta)\, p(\theta)
4

In the proportional-hazards form shown in the mechanics, the hazard at time t for subject i is a baseline hazard h0(t) multiplied by exp(x^T beta), so each coefficient exp(beta_j) is the hazard ratio for a one-unit increase in covariate x_j. This reading applies to proportional-hazards models such as the Cox model. Log-normal and other accelerated failure time families instead model log time as linear in the covariates, log T = x^T beta + sigma*epsilon; for these models exp(beta_j) is a time ratio, not a hazard ratio.

Formula
h(t|\mathbf{x}) = h_0(t)\exp(\mathbf{x}^\top\boldsymbol{\beta})
5

Each posterior draw gives one value for every parameter, and quantities of interest such as survival probability at a given time, median survival time, hazard ratios and predictions for new subjects are computed by summarising the draws. Summaries therefore carry the parameter uncertainty from the posterior into the reported intervals.

Formula
\mathrm{HR}_j^{(s)} = \exp\left(\beta_j^{(s)}\right), \quad s = 1, \dots, S; \qquad \mathrm{CrI}_j = \left[\, q_{\alpha/2}\left(\mathrm{HR}_j^{(s)}\right),\; q_{1-\alpha/2}\left(\mathrm{HR}_j^{(s)}\right) \right]

Common pitfalls

  • Using flat (improper) priors on scale or shape parameters of the baseline hazard, which can yield improper posteriors that MCMC will sample from incorrectly.
  • Ignoring MCMC convergence: if chains have not mixed, posterior summaries are meaningless — always inspect trace plots and R-hat values.
  • Treating the credible interval as a confidence interval: a 95% credible interval means the parameter lies within it with 95% posterior probability given the prior and data, not a repeated-sampling guarantee.
  • Assuming the proportional-hazards form holds in a Bayesian Cox model without checking it. Bayesian estimation does not test the assumption, so diagnostics such as residual plots or log-log survival curves must be run separately.
  • Selecting priors based on the observed data (empirical Bayes without proper correction), which double-counts the data and yields overconfident posteriors.

Frequently asked questions

How does Bayesian survival regression differ from the classical Cox model?

The classical Cox model estimates a single set of coefficient values by maximising the partial likelihood. Bayesian survival regression places prior distributions on the coefficients and baseline hazard, then uses MCMC to obtain a full posterior distribution. This yields credible intervals, predictive distributions, and the ability to incorporate prior knowledge — but at higher computational cost.

What prior should I use for the regression coefficients?

A weakly informative normal prior (mean 0, standard deviation 1–2 on the log-hazard-ratio scale) is a common starting point. It regularises estimates without strongly constraining them. The appropriate prior scale depends on how covariates are coded or standardised, and with few events the posterior can be sensitive to this choice, so a prior sensitivity analysis is advisable. If you have historical data supporting specific effect sizes, a more informative normal or t prior centred on those values can improve estimation. Avoid completely flat priors on unbounded parameters.

Can I use this method with interval-censored or left-censored data?

In principle, yes. The Bayesian likelihood can be extended to interval censoring (the event is known to fall within an interval) and left censoring (the event occurred before observation began) by changing each observation's likelihood contribution accordingly. Whether a given software package supports these censoring types, and how it does so, should be checked in that package's documentation before use.

How do I check whether the proportional-hazards assumption holds?

Check proportional hazards by plotting log-log survival curves across groups, or by extending the model with time-varying coefficients and comparing fits; the Bayesian estimation itself does not test the assumption. If it is violated, a Bayesian accelerated failure time (AFT) model or a flexible baseline hazard (e.g., piecewise exponential with many segments) may be more appropriate.

Which software can fit Bayesian survival regression?

Stan (via the brms or rstanarm R packages) and JAGS are the most widely used. brms provides a formula interface similar to lm/lmer and supports Weibull, log-normal, and Cox-type models with Bayesian estimation. Python users can use PyMC or Stan's cmdstanpy interface.

Related methods

Sources

  1. Ibrahim, J. G., Chen, M.-H., & Sinha, D. (2001). Bayesian Survival Analysis. Springer.

    ISBN: 978-0387952772
  2. Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). CRC Press.

    ISBN: 978-1439840955