In our last lesson, we introduced the core concepts of the survival function, , and the hazard function, , focusing on their intuitive meanings. We explored how tracks the probability of remaining event-free, while measures the instantaneous risk at a specific moment.
This lesson will bridge the gap between intuition and formal theory. We will explore the precise mathematical relationships that connect not just and , but also the probability density function, , and the cumulative hazard function, . Understanding how these four functions interrelate is the key to unlocking the entire framework of survival analysis. It shows how they are all different lenses for viewing the same underlying time-to-event process, and how knowing one allows us to derive all the others.
The Four Pillars of a Lifetime Distribution
Let's start by quickly revisiting the four key functions that together completely describe a time-to-event distribution.
- Probability Density Function : Represents the likelihood of the event occurring precisely at time . You can think of it as the "failure density" at any given point.
- Survival Function : The probability that the time-to-event is greater than , i.e., . This is the probability of surviving past time .
- Hazard Function : The instantaneous potential for the event to occur at time , given that the event has not already occurred. This is the "risk speedometer."
- Cumulative Hazard Function : The total accumulated risk from time 0 up to time .
The following image illustrates the relationship between the probability density function and the survival function . The total area under the curve is 1. The area to the left of a time is the cumulative distribution function , or the probability of failure by that time. The area to the right is the survival function , the probability of failure after that time.

Mathematically, this means the survival function is the integral of the density function from to infinity:
Conversely, the density function is the negative of the derivative (the slope) of the survival function. Intuitively, this means that when the probability of survival is dropping quickly, the failure density must be high.
The Central Equation: Connecting Hazard, Density, and Survival
In the previous lesson, you were introduced to the foundational formula that connects three of our key functions. Let's formalize it. The hazard function is defined as the ratio of the probability density function to the survival function.
This equation is elegant and powerful. It tells us that the instantaneous risk at time () is the likelihood of failure at that instant () adjusted for the proportion of individuals who are still alive and able to experience the event (). A high failure density doesn't necessarily mean a high hazard if very few individuals have survived to that point.
This definition is clearly laid out in the following textbook section.
Chapter 4: Probability Models in Survival Analysis
This section from the VIVA Pressbooks text formally defines the hazard function and its derivation.
Please read the first few paragraphs of subsection 4.1.3 Hazard Function. Focus on the derivation that leads to the definition as a ratio. This reinforces the core formula we just discussed.
From Hazard to Survival: The Power of Accumulated Risk
The most useful relationship in practice is the one that connects the hazard function back to the survival function. This allows us to model risk directly and then see its implications for survival probability. This involves the cumulative hazard function, .
Recall that is the total accumulated risk up to time . If you think of as a "risk curve," is the area under that curve from the beginning up to time .
The fundamental relationship that connects this accumulated risk back to survival is:
This equation tells us that the probability of surviving past time is the exponential of the negative accumulated hazard. A large accumulated hazard leads to an exponentially smaller probability of survival. This exponential relationship is a cornerstone of survival analysis.
Because is the integral of , we can also write this as:
The following video provides an excellent walkthrough of how these functions are related through calculus, but explains it in a very accessible way. It culminates in deriving the link between the cumulative hazard and survival functions.
Hazard and Survival Functions - [Survival Analysis 5/8]
This video from zedstatistics, which you saw in the previous lesson, brilliantly connects all the functions.
Please watch the final segment on the mathematical relationships, from the start of the calculus explanation. Pay close attention to how the presenter starts with the definition of hazard, h(t) = f(t)/S(t), and through a series of logical steps, arrives at the conclusion that the cumulative hazard is the negative log of the survival function, H(t) = -\ln(S(t)). This is just another way of writing our key formula, S(t) = \exp(-H(t)).
The "Rosetta Stone" of Survival Functions
We've now established the key links. The wonderful thing is that if you know any one of the four functions, you can derive all the others. The textbook provides a handy table that summarizes all of these transformations. It's like a "Rosetta Stone" for converting between the different representations of a lifetime distribution.
Chapter 4: Probability Models in Survival Analysis
This table provides a complete summary of the mathematical relationships between the four lifetime distribution functions.
Find Table 4.1: Lifetime distribution representation relationships near the end of Section 4.1. You don't need to memorize these formulas, but take a moment to understand how the table works. The rows represent the function you know, and the columns represent the function you want to find. For example, trace the row for S(t): To get f(t), you take the negative derivative: -S'(t). To get h(t), you use the formula: -S'(t) / S(t). To get H(t), you use the relationship we just learned from the video: -\ln S(t). This table codifies all the connections we've discussed.
Let's see this in action with a simple, concrete example: the exponential distribution. This distribution is defined by having a constant hazard, . This means the risk of the event is the same at all times, a "memoryless" process.
What do the other functions look like? We can use the relationships from Table 4.1.
- Given:
- Find Cumulative Hazard : We integrate the hazard. The area under a constant line is just the height times the length. The accumulated risk grows linearly with time.
- Find Survival Function : We use our key formula. Survival probability decays exponentially.
- Find Density Function : We can use . This is the classic probability density function for the exponential distribution.
This simple example shows how the entire system works together, starting from a single assumption about the nature of the risk. Different assumptions about the shape of the hazard function (e.g., increasing or decreasing) will generate different families of distributions.

Conclusion
In this lesson, we have cemented the theoretical foundation of survival analysis by formalizing the links between its four key functions.
Key Takeaways:
- The probability density , survival , hazard , and cumulative hazard functions are four equivalent representations of a time-to-event distribution.
- Knowing any one of these functions allows you to mathematically derive the other three.
- The two most critical relationships to understand are:
- The definition of hazard:
- The link between accumulated hazard and survival:
With this theoretical framework in place, you are now equipped to understand how survival models work from the ground up.
In our next lesson, we will shift from theory to application. We will learn how to estimate the survival function directly from a real-world dataset, even when our observations are incomplete due to censoring. This will introduce you to one of the most famous and widely used tools in survival analysis: the Kaplan-Meier estimator.