A Random Survival Forest is an ensemble of binary survival trees grown on bootstrap samples of the original dataset. At each node split, the algorithm randomly selects a subset of candidate covariates and chooses the split that maximizes the log-rank test statistic between the two resulting daughter nodes, thereby partitioning patients into groups with maximally distinct survival experiences.
Glossary
Random Survival Forests

What is Random Survival Forests?
Random Survival Forests (RSF) are a non-parametric, ensemble machine learning method that extends the random forest algorithm to analyze right-censored time-to-event data without relying on restrictive proportional hazards assumptions.
The terminal nodes of each tree contain the cumulative hazard function (CHF) for the in-bag observations. For a new patient, the ensemble prediction is calculated by dropping their covariate vector down every tree, identifying their terminal node, and averaging the CHF across all trees. This out-of-bag error rate is computed using Harrell's concordance index to internally validate predictive performance without a separate test set.
Key Features of Random Survival Forests
Random Survival Forests extend the random forest framework to right-censored time-to-event data, enabling robust, non-parametric prediction without the proportional hazards assumption.
Ensemble of Survival Trees
RSFs grow an ensemble of binary survival trees using bootstrap samples of the original data. Each tree is grown by recursively splitting nodes to maximize the difference in survival between daughter nodes, typically using the log-rank test as the splitting criterion. The terminal nodes (leaves) contain at least a pre-specified minimum number of unique event times, ensuring stable hazard estimates. This ensemble approach reduces variance compared to a single tree while capturing complex, non-linear relationships in the data.
Handling Right-Censored Data
Unlike standard regression trees, RSFs natively accommodate right-censored observations—patients who have not experienced the event by the end of follow-up. The splitting rule uses only the rank order of event times, not their absolute values, making the method invariant to monotone transformations of time. The Nelson-Aalen estimator is computed within each terminal node to produce a cumulative hazard function, which is then averaged across all trees to generate the ensemble prediction. This non-parametric approach avoids imposing a specific distribution on the baseline hazard.
Randomized Feature Selection
At each node split, RSFs introduce a second layer of randomization by selecting a random subset of mtry candidate predictors from the full feature set. This decorrelates the individual trees and prevents dominant features from monopolizing every split. Typical defaults set mtry to the square root of the total number of predictors. This mechanism allows RSFs to handle high-dimensional data—such as genomic or proteomic features—where the number of predictors far exceeds the number of observations, without overfitting.
Variable Importance Measures
RSFs provide two primary metrics for ranking predictor relevance:
- VIMP (Variable Importance): Measures the drop in prediction error when a variable is randomly permuted. A large positive VIMP indicates the variable is strongly predictive.
- Minimal Depth: Quantifies how early a variable appears in tree splits. Variables with low minimal depth are closer to the root and more influential. These measures enable biomarker discovery by identifying which clinical or molecular features most strongly drive survival outcomes, without requiring parametric assumptions.
Out-of-Bag Error Estimation
RSFs leverage out-of-bag (OOB) data—the approximately 37% of observations not included in a tree's bootstrap sample—to obtain an unbiased estimate of prediction error without requiring a separate validation set. The OOB ensemble prediction for each observation is computed using only trees where that observation was held out. The C-index or Brier score calculated on OOB predictions provides a robust internal validation metric, making RSFs particularly valuable when data is scarce and cross-validation would be computationally expensive.
Competing Risks Extension
The standard RSF framework has been extended to handle competing risks—scenarios where a subject can experience one of several mutually exclusive events, such as death from cancer versus death from cardiovascular disease. In this setting, the splitting rule is modified to maximize the difference in cause-specific cumulative incidence functions between daughter nodes. The ensemble produces separate cumulative incidence estimates for each event type, enabling clinicians to distinguish risk profiles for different failure modes from the same set of predictors.
Frequently Asked Questions
Concise answers to the most common technical questions regarding the application, mechanics, and validation of Random Survival Forests for high-dimensional time-to-event analysis.
A Random Survival Forest (RSF) is an ensemble tree-based method specifically designed to analyze right-censored survival data, extending the standard Random Forest algorithm to handle time-to-event outcomes. While a standard Random Forest minimizes prediction error for classification or regression, an RSF maximizes the survival difference between nodes using splitting rules based on the log-rank test statistic. The fundamental distinction lies in the terminal nodes: instead of predicting a class label or continuous value, the leaf nodes of an RSF contain a cumulative hazard function (CHF) estimated via the Nelson-Aalen estimator. The ensemble prediction is the average CHF across all trees, providing a non-parametric estimate of the risk trajectory without assuming proportional hazards.
Random Survival Forests vs. Cox Proportional Hazards
Key differences between non-parametric ensemble learning and semiparametric regression for time-to-event analysis with censored data.
| Feature | Random Survival Forests | Cox Proportional Hazards |
|---|---|---|
Model Class | Non-parametric ensemble (tree-based) | Semiparametric regression |
Functional Form Assumption | ||
Proportional Hazards Assumption | ||
Handles Non-linear Effects | ||
Automatic Interaction Detection | ||
Handles High-Dimensional Data (p > n) | ||
Built-in Variable Importance | ||
Interpretability | Partial dependence, VIMP | Hazard ratios, coefficients |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Key concepts and alternative algorithms that extend or compare with Random Survival Forests for time-to-event modeling with censored data.
Ensemble Learning for Censored Data
The foundational principle behind RSF: aggregating multiple weak learners to reduce variance and improve generalization. Bagging (bootstrap aggregating) creates diverse trees by sampling observations with replacement. Random feature selection at each split further decorrelates trees. For survival data, the ensemble averages cumulative hazard functions rather than simple class votes. This approach naturally handles non-linear effects and high-order interactions without pre-specification, making it robust against model misspecification that plagues parametric survival models.
Log-Rank Splitting Rule
The standard splitting criterion in RSF that determines optimal cutpoints by maximizing survival difference between child nodes. The log-rank test statistic compares observed versus expected events in each group under the null hypothesis of no difference. At each node, the algorithm evaluates all possible splits across all variables, selecting the one with the maximum log-rank statistic. This non-parametric criterion makes no distributional assumptions about survival times and naturally accommodates right-censored observations by using the at-risk process in its calculation.
Cumulative Hazard Function Estimation
RSF outputs patient-specific predictions via the Nelson-Aalen estimator within each terminal node. For a new patient, the tree determines which leaf they belong to, and the cumulative hazard is calculated as the sum of event counts divided by the at-risk counts at each unique event time. The ensemble prediction averages these estimates across all trees. This provides a non-parametric baseline hazard that flexibly captures complex temporal patterns, unlike the Cox model which leaves the baseline unspecified or parametric models that impose rigid shapes.
Variable Importance Measures
RSF provides interpretable feature rankings through permutation importance and minimal depth. Permutation importance randomly shuffles a variable's values and measures the degradation in prediction error—higher degradation indicates greater importance. Minimal depth quantifies how close a variable first appears to the root node across the forest. These metrics help identify prognostic biomarkers in high-dimensional genomic studies. Unlike Cox model coefficients, they capture non-linear and interaction effects without requiring proportional hazards assumptions.
Competing Risks Extension
Standard RSF handles a single event type, but the competing risks RSF extends the framework to multiple mutually exclusive events. Instead of a single cumulative hazard, it estimates the cause-specific cumulative incidence function (CIF) for each event type. Splitting rules are modified to maximize differences in CIFs rather than overall survival. This is critical in oncology where patients may die from causes other than cancer, requiring separation of disease-specific mortality from competing mortality for accurate prognostic modeling.
DeepSurv vs. Random Survival Forests
DeepSurv uses a deep neural network with a Cox proportional hazards output layer, while RSF uses tree ensembles with non-parametric splitting. Key trade-offs:
- DeepSurv excels at learning smooth, hierarchical representations from raw inputs but requires careful hyperparameter tuning and larger sample sizes
- RSF handles mixed data types naturally, requires minimal preprocessing, and provides built-in variable importance
- DeepSurv assumes proportional hazards; RSF does not
- RSF typically outperforms on tabular data with complex interactions; DeepSurv can leverage unstructured inputs like images

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us