Welcome to the first lesson in our module on the Cox Proportional Hazards Model. In the previous module, we explored non-parametric methods like the Kaplan-Meier estimator and the log-rank test. These are excellent tools for visualizing survival data and comparing survival experiences between groups. However, their main limitation is that they can't easily account for the simultaneous influence of multiple predictor variables.
In data science and machine learning, you are familiar with regression models that predict an outcome based on multiple features. The Cox model provides a similar regression framework specifically designed for time-to-event data. This lesson will introduce the foundational structure of the Cox Proportional Hazards (PH) model and explain its unique "semi-parametric" nature, which is the source of its flexibility and widespread use.
From Description to Regression: The Need for the Cox Model
When analyzing survival data, we rarely believe that a single factor (like a treatment group) is the only thing influencing the outcome. Age, disease severity, lifestyle factors, and other clinical measurements can all play a role. Trying to analyze these with simple group comparisons becomes impractical and can lead to misleading conclusions due to confounding.
The Cox model allows us to build a multivariable model for the hazard rate, enabling us to estimate the effect of each covariate while adjusting for the effects of others. It helps answer questions like: "What is the impact of this new drug on survival, after accounting for differences in age and sex between the treatment and control groups?"
To see where the Cox model fits within the broader landscape of statistical methods for survival analysis, take a look at the following chart.

As you can see, the Cox model is classified as a semi-parametric method. Let's now delve into what that means by examining the model's structure.
The Cox Proportional Hazards Model Equation
The core of the Cox model is an equation that describes the hazard for an individual at a specific point in time, , as a function of a set of covariates.
Cox Proportional Hazards: Practical Guide for Data-Driven ...
The article "Cox Proportional Hazards: Practical Guide" provides a very clear breakdown of the model's mathematical form. Please read the section that introduces this formula.
Focus on the subsection The Mathematical Foundation. Pay close attention to the definition of each component in the formula: h(t|X), h_0(t), and the exponential term containing the covariates X and coefficients \beta.
To summarize, the Cox proportional hazards model is written as:
Let's break this down:
- is the hazard function for a subject with a specific set of covariate values () at time . This is the outcome our model is describing—the instantaneous risk of the event occurring at time , given survival up to that time.
- The model has two main parts multiplied together: and .
This structure is what makes the model "semi-parametric."
Explaining the Semi-Parametric Nature
The term "semi-parametric" means the model combines a non-parametric component with a parametric one.
-
The Non-Parametric Component:
The term is the baseline hazard function. This is the hazard rate when all covariates () are equal to zero. It is a function of time and can take on any shape—it can increase, decrease, or fluctuate. The Cox model does not make any assumptions about the shape of this function or the probability distribution of survival times. This is the non-parametric part of the model. This flexibility is a major advantage, as it makes the model robust; we don't risk being wrong about the underlying time-course of risk. -
The Parametric Component:
This part of the model links the covariates to the hazard. It has a specific functional form (a linear combination of covariates that is then exponentiated), and we estimate the parameters from the data. This is the parametric part. This term acts as a multiplier on the baseline hazard. The value of tells us how the hazard for an individual with covariates compares to the baseline hazard.
The following reading explains this crucial distinction clearly.
Time-To-Event (TTE) Data Analysis | Columbia Public Health
This article from Columbia Public Health offers a concise explanation of why the Cox model is considered semi-parametric.
Please read the paragraph under the heading "What is a semi-parametric approach, and why is it so commonly used?". Start from the sentence that begins "It is considered a semi-parametric approach..." and pay attention to how it defines the non-parametric baseline hazard and the parametric covariate vector.
The truly ingenious contribution by Sir David Cox was developing a method called partial likelihood estimation. This method allows us to estimate the coefficients—and thus understand the effects of the covariates—without ever needing to estimate the baseline hazard function at all.
The video below gives a great analogy for this, comparing it to finding the slope of a line without needing to know its intercept.
Survival Analysis Part 9 | Cox Proportional Hazards Model
This video from MarinStatsLectures provides an excellent intuitive explanation of the semi-parametric nature of the Cox model.
Watch the segment from What is the model?. The lecturer explains how the baseline hazard acts like a time-varying intercept and how the model's coefficients can be estimated without specifying this baseline function.
The "Proportional Hazards" Assumption
The model's name also points to its single most important assumption. Because the time-dependent part () is a common multiplier for everyone, the ratio of the hazards for any two individuals is constant over time.
For example, consider two individuals, A and B. Their hazard ratio is:
Notice that the baseline hazard cancels out. The resulting ratio does not depend on time . This is the proportional hazards assumption. If person A has twice the hazard of person B at the beginning of the study, they are assumed to have twice the hazard at any other point in time during follow-up.
This is a strong assumption, and we will dedicate a future lesson to understanding how to test for it. For now, it's important to recognize that this property is a direct consequence of the model's mathematical structure.
Conclusion
In this lesson, we have formally introduced the Cox proportional hazards model and dissected its structure. You should now be able to state the model's equation and explain why it is considered a semi-parametric method.
Here are the key takeaways:
- The Cox model is a regression model for time-to-event data that allows for the inclusion of multiple covariates.
- The model equation is .
- It is semi-parametric because it combines a non-parametric part (the unspecified baseline hazard, ) with a parametric part (the effect of covariates, ).
- This structure allows us to estimate the effects of covariates without making assumptions about the shape of the underlying hazard over time, which makes the model robust and flexible.
- The model's structure implies the proportional hazards assumption: the ratio of hazards between any two individuals is constant over time.
We have established the "what" of the Cox model. In our next lesson, we will move on to the "so what," focusing on how to interpret the model's outputs—specifically the coefficients () and their exponentiated form, the hazard ratio (HR)—to draw meaningful conclusions from data.