Random Survival Forest

Statistics
Introduced by
Ishwaran, H., Kogalur, U.B., Blackstone, E.H. & Lauer, M.S.
Year
2008
Type
Ensemble machine learning survival model

What does it do?

Random Survival Forest (RSF), introduced by Ishwaran, Kogalur, Blackstone, and Lauer in 2008, is an ensemble method that adapts the random forest algorithm to time-to-event data with right-censoring.

Its trees use the log-rank statistic as the splitting criterion, so censored observations contribute directly to the splits. The ensemble averages cumulative hazard estimates across its trees to produce predicted survival and a variable importance ranking.

The intuition behind the method

Standard decision trees and random forests are built for outcomes where the event is always observed. In survival data, some subjects leave the study before the event occurs, and their outcomes are censored. RSF handles this by choosing splits according to the log-rank statistic, which compares the survival distributions of the two child nodes. Each tree is grown on a different bootstrap sample and considers a random subset of predictors at each split, so the ensemble can capture non-linear effects and interactions without these being specified in advance. The result is a predictive model of survival that does not rely on the proportional hazards assumption, but whose individual effects are harder to read than a Cox model's coefficients.

History

Random Survival Forest was introduced in 2008 in the Annals of Applied Statistics by Hemant Ishwaran, Udaya Kogalur, Eugene Blackstone, and Michael Lauer. The method extends Breiman's random forest algorithm to right-censored survival outcomes by using survival splitting rules and a cumulative hazard estimate instead of the usual mean-based prediction. The paper also introduced a missing-data algorithm and a case study on the prognostic implications of body mass in coronary artery disease, with computations carried out in the R package randomSurvivalForest.

When to use it

Choose RSF when you have right-censored time-to-event data, a reasonably large number of events (a common informal guideline is at least about 100), and a suspicion that predictors act non-linearly or interact in ways that a Cox model would not capture unless specified by hand. It is also useful when the proportional hazards assumption cannot be verified or is doubtful, since RSF does not rely on it. Do not choose RSF when the main goal is interpretable hazard ratios or causal inference, because the ensemble does not give simple effect estimates. With few events, tree splits become unstable and a Cox model is usually the safer choice.

Limitations and considerations

  • Interpretability is low compared with Cox regression; the model is a black box with no single coefficient per predictor.
  • Performance depends on the number of events. A common informal guideline is at least about 100; below this, tree splits can become unstable and predictive performance can deteriorate.
  • Fitting a large ensemble of survival trees is considerably more computationally demanding than fitting a single Cox model.
  • It does not produce hazard ratio summaries, so reporting results to clinical audiences requires additional work such as partial effect plots or risk-group summaries.

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

Strengths

  • Handles right-censored outcomes directly through the log-rank splitting rule, without a separate censoring adjustment step.
  • Captures non-linear effects and predictor interactions without requiring them to be specified in advance.
  • Does not rely on the proportional hazards assumption, so it can be applied when that assumption is doubtful.
  • Provides a permutation-based variable importance ranking (VIMP) across all candidate predictors.
  • The original paper also introduces a missing-data imputation algorithm and an ensemble mortality measure intended to be easier to interpret than the raw ensemble output.

Applications

  • Prognostic modelling in clinical studies, such as the coronary artery disease case study in the original paper.
  • Screening and ranking candidate predictors, including biomarkers, using the VIMP measure.
  • Clinical risk prediction in settings where the proportional hazards assumption cannot be verified or is doubtful.
  • Survival prediction where the effects of predictors are expected to be non-linear or to interact.

How it works

How it works

1

Each tree is grown on a bootstrap sample drawn from the training data, so every tree is fitted to a slightly different resample. Subjects not included in a given bootstrap sample form that tree's out-of-bag set, which is later used to estimate prediction error without a separate validation dataset. This resampling is what gives the ensemble its diversity across trees.

Formula
\mathcal{B}_b \sim \text{Bootstrap}(\mathcal{D}), \quad b = 1, \ldots, B
2

At each node, a random subset of candidate predictors is considered. For each candidate, the split is evaluated with the log-rank statistic, which measures the difference between the survival distributions of the two child nodes, and the candidate with the strongest statistic is used. Because the statistic is built for censored data, censored subjects are handled within the split itself rather than being removed or imputed beforehand.

Formula
\Delta_{LR}(c) = \frac{\left(\sum_{i: t_i \le c, \delta_i=1} \frac{1}{n_i} - \sum_{i: t_i > c, \delta_i=1} \frac{1}{n_i}\right)^2}{\text{Var under } H_0}
3

Each tree gives a cumulative hazard estimate for a new subject, based on the training subjects who fall into the same terminal node. The ensemble cumulative hazard is the average of these tree-level estimates across all trees. Survival probabilities and the ensemble mortality summary, which the original paper defines through a conservation-of-events principle, are derived from this averaged cumulative hazard.

Formula
\hat{H}(t \mid x) = \frac{1}{B} \sum_{b=1}^{B} \hat{H}_b(t \mid x)
4

Variable importance (VIMP) is computed by permutation. The out-of-bag prediction error, defined as one minus the C-index, is calculated on the original data and again after randomly permuting the values of a given predictor. The increase in error after permutation is that predictor's importance. A large drop in the C-index after permutation indicates that the predictor carries prognostic information the forest relies on. The ranking is obtained without refitting the model.

Formula
\widehat{\mathrm{VIMP}}_j = \hat{e} - \hat{e}^{(j)}, \quad \hat{e} = 1 - C_{\text{index}}

Common pitfalls

  • Applying RSF to a dataset with few events (a common informal guideline is about 100 or more), where splits can be unreliable and overfitting is likely.
  • Reading VIMP as a causal effect size. VIMP measures how much a predictor contributes to predictive accuracy in this model, not whether it causes the outcome.
  • Leaving the minimum terminal node size untuned. Very small terminal nodes overfit the training data, while very large ones reduce the forest's ability to distinguish risk groups.
  • Reporting only the C-index. A model can discriminate well and still be poorly calibrated, so calibration should be checked separately.
  • Using RSF when the proportional hazards assumption holds and the sample is modest. In that setting a Cox model is usually more efficient and easier to report.
  • Assuming that censoring is informative. RSF, like the Kaplan-Meier and log-rank methods it builds on, assumes that right censoring is non-informative, meaning censoring is unrelated to the event risk given the predictors. If censoring depends on risk, the predicted survival curves and the C-index can be biased.
  • Treating out-of-bag or training-sample performance as proof of generalisation. Out-of-bag error is an internal estimate; claims about performance in new populations require external or held-out validation.

Frequently asked questions

How does RSF differ from Cox regression?

Cox regression fits a semi-parametric model that assumes proportional hazards and gives a hazard ratio for each predictor. RSF builds an ensemble of survival trees, does not rely on the proportional hazards assumption, and captures non-linear effects and interactions automatically. Cox gives interpretable coefficients, while RSF usually offers more flexibility for prediction at the cost of interpretability.

What is VIMP and how should it be interpreted?

VIMP (variable importance) measures how much the out-of-bag prediction error, defined as one minus the C-index, increases when a predictor's values are randomly permuted. A large increase means the predictor contributes to predictive accuracy; an increase near zero, or a decrease, means it adds little. VIMP measures predictive relevance within the fitted model, not a causal effect.

Does RSF require proportional hazards?

No. The log-rank splitting rule compares the survival distributions of two child nodes and does not assume that the hazard ratio between groups is constant over time. This means RSF can be applied when proportionality is doubtful, a setting where Cox regression may be less appropriate.

Which tuning settings matter most?

The main settings are the number of trees, the number of candidate predictors considered at each split, and the minimum terminal node size. Small terminal nodes tend to overfit, while very large ones reduce how finely the forest separates risk groups. These settings are usually chosen by comparing out-of-bag or cross-validated C-index or prediction error, rather than fixed in advance. Default values differ between software implementations, so the defaults of the package in use should be checked and the settings tuned to the data.

Related methods

Sources

  1. Ishwaran, H., Kogalur, U.B., Blackstone, E.H. & Lauer, M.S. (2008). Random Survival Forests. Annals of Applied Statistics, 2(3), 841–860.

    Open DOI reference