Inferensys

Glossary

Survival Analysis

A branch of statistics for analyzing the expected duration of time until an event occurs, such as a shipment being delivered, effectively handling censored data for in-transit orders.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
TIME-TO-EVENT MODELING

What is Survival Analysis?

Survival analysis is a statistical branch focused on predicting the time until a specific event occurs, uniquely designed to handle incomplete observations known as censored data.

Survival analysis is a branch of statistics for analyzing the expected duration of time until one or more events happen, such as death in biological organisms or failure in mechanical systems. In supply chains, the 'event' is typically a successful delivery, allowing models to estimate the probability of a shipment arriving over different time horizons while explicitly accounting for orders still in transit.

The defining advantage of survival analysis is its native handling of censored data—observations where the event has not yet occurred by the end of the study period. Unlike standard regression, which would discard in-transit shipments, models like the Cox Proportional Hazards model incorporate these partial observations to produce unbiased lead time predictions and dynamic delivery risk scores.

CORE CONCEPTS

Key Features of Survival Analysis

Survival analysis provides a statistical framework uniquely suited for modeling time-to-event data in supply chains, where shipments are constantly in transit and traditional regression methods fail to account for censored observations.

01

Censored Data Handling

The defining capability of survival analysis is its ability to incorporate right-censored observations—shipments still in transit at the time of analysis. Unlike ordinary least squares regression, which would discard these incomplete records or introduce bias by treating them as failures, survival models use the Kaplan-Meier estimator and partial likelihood methods to extract information from the fact that a delivery has not yet occurred by a given timestamp. This is critical in supply chains where 30-60% of open purchase orders may be in-flight during any analysis window.

30-60%
In-transit orders at analysis time
02

Hazard Function Modeling

The hazard function λ(t) represents the instantaneous risk of delivery at time t, given that the shipment has survived up to that point. This reveals non-intuitive dynamics:

  • Bathtub hazard: High early delivery risk (expedited orders), a stable period, then rising risk as deadlines approach
  • Increasing hazard: Perishable goods where delivery pressure escalates over time
  • Decreasing hazard: Bulk shipments where initial consolidation delays dominate

The Cox Proportional Hazards model allows quantification of how covariates like carrier type, season, or port congestion multiplicatively shift this baseline hazard.

λ(t)
Instantaneous risk function
03

Survival Function Estimation

The survival function S(t) = P(T > t) gives the probability that a shipment's delivery time T exceeds a given duration t. This directly answers the planner's question: What is the probability this order will arrive after day 14?

Key estimation methods include:

  • Kaplan-Meier: Non-parametric, step-function estimator that handles censoring without distributional assumptions
  • Parametric models: Weibull, exponential, or log-normal distributions fitted when the underlying failure process is understood
  • Nelson-Aalen: Cumulative hazard estimator used as an alternative when hazard interpretation is preferred
S(t)
Probability of non-delivery by time t
04

Time-Varying Covariates

Supply chain conditions change while shipments are in transit. The extended Cox model accommodates time-dependent covariates that evolve during the observation period:

  • Port congestion indices that fluctuate daily
  • Weather severity scores along the route
  • Carrier performance metrics updated in real-time

This prevents the immortal time bias that would occur if a covariate measured at delivery were incorrectly treated as fixed from origin. The model segments each shipment's timeline into intervals where covariates remain constant, recalculating risk at each change point.

Dynamic
Covariate updates during transit
05

Competing Risks Framework

A delivery can fail to arrive on time for multiple, mutually exclusive reasons—a competing risks scenario. The cause-specific hazard λⱼ(t) estimates the instantaneous risk of failure from cause j (e.g., customs hold, carrier bankruptcy, weather delay) while treating other failure modes as censoring events.

The cumulative incidence function (CIF) then estimates the probability of failing from a specific cause by time t, accounting for the fact that earlier failure from one cause precludes observing others. This enables planners to decompose delay risk by root cause and allocate mitigation resources accordingly.

Multi-cause
Failure mode decomposition
06

Accelerated Failure Time Models

While Cox models focus on the hazard rate, Accelerated Failure Time (AFT) models directly model the effect of covariates on the survival time itself. The model assumes covariates either accelerate or decelerate the time to delivery by a multiplicative factor:

  • Weibull AFT: log(T) = βX + σW, where W follows an extreme value distribution
  • Log-logistic AFT: Handles non-monotonic hazards common in logistics
  • Log-normal AFT: Appropriate when delivery times are products of many small independent factors

AFT models produce directly interpretable coefficients: a coefficient of 0.3 means a 35% increase in expected delivery time (e^0.3 ≈ 1.35).

e^β
Time acceleration factor
SURVIVAL ANALYSIS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about applying survival analysis to supply chain lead time prediction and censored data handling.

Survival analysis is a branch of statistics for analyzing the expected duration of time until one or more events occur, such as a shipment being delivered or a supplier failing. In supply chains, it models the time-to-event for orders, explicitly handling censored data—observations where the event hasn't occurred yet (e.g., an order still in transit at the time of analysis). Unlike standard regression, survival analysis doesn't discard these incomplete records; instead, it incorporates them to produce unbiased estimates. The core output is the survival function S(t), which gives the probability that a shipment survives (remains undelivered) beyond time t, and the hazard function h(t), which represents the instantaneous risk of delivery at time t given that it hasn't occurred yet. This framework enables procurement directors to predict the probability of on-time delivery at any future point, not just a single point estimate.

Prasad Kumkar

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.