In our previous lesson, we learned how to calculate the fundamental measures of disease frequency—prevalence, cumulative incidence, and incidence rate—to describe the health status of a single population. Now, we'll take the next logical step: comparing these frequencies between different groups. This is the core of analytical epidemiology, where we move from description to inference, trying to understand if an exposure is associated with an outcome.
Your goal in this lesson is to learn how to calculate and interpret the three primary measures of association: the risk ratio, the rate ratio, and the odds ratio. These ratios form the quantitative backbone for determining the strength of a relationship between factors like a treatment, an environmental toxin, or a lifestyle choice, and a health outcome like disease or recovery.
Setting the Stage: The 2x2 Table
Before we can compare groups, we need a standard way to organize our data. In epidemiology, this is almost always done with a 2x2 table, also known as a contingency table. It cross-classifies individuals based on their exposure status (e.g., smoker vs. non-smoker) and their outcome status (e.g., has lung cancer vs. does not).
The standard layout is:
| Disease (Cases) | No Disease (Controls) | Total | |
|---|---|---|---|
| Exposed | a | b | a + b |
| Unexposed | c | d | c + d |
| Total | a + c | b + d | N |
- a: Number of people who were exposed and have the disease.
- b: Number of people who were exposed and do not have thedisease.
- c: Number of people who were not exposed and have the disease.
- d: Number of people who were not exposed and do not have the disease.
This simple table is the starting point for calculating all the measures of association we will discuss.
1. Risk Ratio (RR): Comparing Cumulative Incidence
The most intuitive way to compare two groups is to compare their risks. The Risk Ratio (RR), also called the Relative Risk, does exactly this. It's the ratio of the risk of an outcome in an exposed group to the risk in an unexposed group. Remember from our last lesson that "risk" here refers to the cumulative incidence.
The video below provides an excellent visual introduction to the concept of risk and how to compare it between groups. It cleverly avoids getting bogged down in formulas, focusing instead on the intuition.
This video from Global Health with Greg Martin provides a very clear, step-by-step introduction to calculating and interpreting risk and relative risk.
Please watch from the beginning until the end of the interpretation section. Pay close attention to how the risk is first calculated separately in the smoker and non-smoker groups and then compared using a ratio.
As the video explained, the formula for the Risk Ratio is:
Let's walk through another example from a CDC resource to solidify your understanding.
Principles of Epidemiology | Lesson 3 - Section 5 - CDC Archive
This section from the CDC provides a formal definition of the risk ratio and two worked-out examples using 2x2 tables.
Start by reading the brief introduction under the heading Measures of Association. Then, focus on the subsection Risk ratio. Read the definition and interpretation, and then carefully work through both examples: the tuberculosis outbreak and the chickenpox outbreak.
The interpretation of the RR is straightforward:
- RR > 1: The exposure is associated with an increased risk of the outcome. An RR of 2.4 means the exposed group has 2.4 times the risk of the outcome compared to the unexposed group.
- RR = 1: There is no association between exposure and outcome. The risk is identical in both groups. This is the "null" value.
- RR < 1: The exposure is associated with a decreased risk of the outcome. It is a "protective" factor. An RR of 0.28 means the exposed group has only 28% of the risk of the unexposed group.
2. Rate Ratio: Comparing Incidence Rates
What if our data doesn't come from a closed group followed for a fixed period? As we saw in the last lesson, when follow-up times vary, we use incidence rates with person-time in the denominator. To compare incidence rates between two groups, we use the Rate Ratio.
The concept is identical to the Risk Ratio, but we substitute incidence rates for cumulative incidences.
The interpretation is also analogous: a rate ratio of 2.2 means that the outcome is occurring at 2.2 times the speed or rate in the exposed group compared to the unexposed group.
Let's look at a practical example.
Principles of Epidemiology | Lesson 3 - Section 5 - CDC Archive
Continuing in the same CDC document, the next section explains the Rate Ratio.
Please read the section on the Rate ratio, from its definition through the example calculation regarding respiratory illness on cruise ships.
The key difference between the Risk Ratio and Rate Ratio lies in the data used to calculate them, which reflects different study designs—something we will explore in the next module. The RR uses cumulative incidence (risk), suitable for cohort studies with complete follow-up. The Rate Ratio uses incidence rates (person-time), which is more flexible and suitable for dynamic populations where follow-up times differ.
3. Odds Ratio (OR): A Necessary Alternative
Sometimes, we can't calculate risk or incidence rates. This is especially true in a case-control study, where we start with a group of people who already have the disease (cases) and a group who don't (controls), and then look backward to assess their prior exposures. In this design, we don't have the "total population at risk" to form the denominator for a risk or rate calculation.
For these situations, we use the Odds Ratio (OR). To understand the OR, we first need to distinguish "odds" from "risk" (or probability).
- Risk (Probability) = (Number of times an event happens) / (Total number of trials)
- Odds = (Probability an event happens) / (Probability an event does not happen) = P / (1 - P)
For example, if the risk of an event is 25% (or 0.25), the odds are . The following video explains this distinction and introduces the Odds Ratio.
Risk, Odds & Hazard Ratios – What’s the Difference?
This video on "Risk, Odds & Hazard Ratios" has a great segment explaining the difference between risk and odds, which can be a bit tricky at first.
Watch the section from "next, let's talk about odds ratios". Focus on the definition of odds and how it differs from risk, then see how the odds ratio is calculated and interpreted.
The Odds Ratio (OR) is calculated in two main ways, which are mathematically equivalent:
- The ratio of the odds of disease in the exposed to the odds of disease in the unexposed.
- The ratio of the odds of exposure in the cases to the odds of exposure in the controls. (This is how it's often thought of in case-control studies).
This leads to a simple formula using our 2x2 table, often called the cross-product ratio:
This calculation is explored in the CDC resource.
Principles of Epidemiology | Lesson 3 - Section 5 - CDC Archive
The final section of this CDC chapter covers the Odds Ratio, explaining its calculation and, crucially, why it is so important in epidemiology.
Read the section on the Odds ratio, from the definition and its features. Pay special attention to the part explaining why the OR is the measure of choice in a case-control study.
The interpretation of the OR is the same as for the RR: >1 indicates a harmful association, =1 indicates no association, and <1 indicates a protective association.
A critical point mentioned in the reading is that when the disease is rare, the Odds Ratio is a good approximation of the Risk Ratio. This is because if the number of cases (a, c) is very small compared to the non-cases (b, d), then and . In this scenario, the RR formula, , becomes approximately , which is the formula for the OR. This property is incredibly useful, as it allows us to use the OR from a case-control study to estimate the more intuitive RR.
You may also recall from our earlier lesson on logistic regression that the exponentiated coefficient of a predictor gives you an odds ratio. This is the same odds ratio, connecting the world of regression modeling, which is common in machine learning, directly to the foundational measures of epidemiology.
Putting It All Together: A Visual Summary
The following infographics provide a concise summary of these three key measures, how to calculate them, and when to use them. They are excellent references to consolidate your understanding.
Conclusion
In this lesson, you have learned to calculate and interpret the fundamental measures that quantify the association between an exposure and an outcome. These ratios are the end-products of many epidemiological analyses and are crucial for making evidence-based decisions in public health.
Here are your key takeaways:
- Measures of association compare the frequency of disease in two or more groups to quantify the relationship between an exposure and a disease.
- The Risk Ratio (RR) compares the cumulative incidence (risk) in exposed and unexposed groups. It is calculated as .
- The Rate Ratio compares incidence rates, accounting for person-time. It is calculated as .
- The Odds Ratio (OR) compares the odds of an outcome. It is calculated as the cross-product and is the primary measure for case-control studies where risk cannot be calculated directly.
- For all three measures, a value of 1 means no association, >1 means increased risk/odds (harmful exposure), and <1 means decreased risk/odds (protective exposure).
You are now equipped with the basic tools to both measure disease frequency and assess associations. In our next module, we will dive deeper into the study designs themselves—cross-sectional, cohort, and case-control studies—and you will see exactly why the choice between a Risk Ratio and an Odds Ratio is dictated by how the study is designed.