Odds Ratio (OR) is a fundamental concept in epidemiology and statistics, providing a measure of association between exposure and outcome across different groups. This concept is pivotal in fields like medicine, public health, and social sciences, where understanding the relationship between risk factors and outcomes can guide critical decisions. This edition of Epi Explained delves into the intricacies of Odds Ratio, elucidating its definition, calculation, and interpretation, supplemented by historical context, real-world applications, and an example problem to enhance comprehension.
Introduction to Odds Ratio
The Odds Ratio is a measure that compares the odds of an outcome occurring in the presence of a particular exposure, to the odds of the same outcome occurring without that exposure. It’s a metric that helps researchers understand the strength and direction of the association between two binary variables.
Historical Context and Importance
The concept of odds and their ratios has been around for centuries, primarily in gambling contexts. However, its application in epidemiology and statistics gained prominence in the 20th century as researchers sought quantifiable measures to investigate the link between potential risk factors and disease outcomes. The OR became especially crucial in case-control studies, where direct risk estimation is not feasible due to the study’s retrospective nature.
Mathematical Definition
The odds of an event is defined as the probability of the event occurring divided by the probability of the event not occurring. Mathematically, if
is the probability of an event, the odds is given by:
Simply put, this equation reads as “Odds can be calculated as the probability of an event occurring , divided by the probability of the event not occurring “.
The Odds Ratio (OR) is then calculated as the ratio of two odds:
Calculation of Odds Ratio
To calculate the OR, data is often arranged in a 2×2 contingency table based on two binary variables: exposure (yes/no) and outcome (yes/no).
It is then fed into the above equation to calculate a value. If your value is higher than 1, then those in an exposed condition have higher odds of developing the outcome, and the reverse is true if the value is between 0 and 1. Do keep in mind though that this does not mean that the odds are significantly higher or lower, as that depends on how you are calculating significance.
Interpretation of Odds Ratio
OR = 1: No association between exposure and outcome.
OR > 1: Positive association; exposure is associated with higher odds of the outcome.
OR < 1: Negative association; exposure is associated with lower odds of the outcome.
Practice Problem
Consider a study investigating the association between smoking (exposure) and lung cancer (outcome). The data might look something like this:
Get the Odds Ratio for the above table.
A. 3.5
B. 0.22
C. 18
D. 4.5
Answer Key, click to reveal
D. 4.5
This OR of 4.5 suggests that smokers have 4.5 times the odds of developing lung cancer compared to non-smokers.
Limitations and Considerations
While the OR provides valuable insights, it has limitations. It can overestimate the risk, especially for common outcomes. Moreover, it does not imply causation and can be influenced by confounding variables. Understanding the context and design of the study is crucial for accurate interpretation.
Conclusion
The Odds Ratio is a versatile and powerful statistical tool in epidemiological studies, offering insights into the relationship between exposures and outcomes. Its calculation and interpretation require careful consideration of study design and context.In this edition of Epi Explained, we have:
Defined Odds Ratios.
Learned how to calculate Odds Ratios.
Attempted a Practice Problem.
Come by again next week for another edition of Epi Explained.
Humanities Moment
This articles featured artwork is Woman Reading (1913) by Rik Wouters (Belgian, 1882 – 1916). Wouters, though short lived (dying at the age of 34 due to illness during World War 1), created over 200 paintings and sculptures and is known for a simplistic, straightforward style with warm colours and simple motifs. This simplistic and elegant approach also tended to shy away from any symbolism within his art; What you see is what you got, without the need of some grand narrative.
Understanding Correlation
Why correlation matters in public health
Public-health datasets often contain variables that move together: temperature and heat illness, age and blood pressure, vaccination coverage and disease incidence, or deprivation and access to care. Correlation gives analysts a compact way to describe one aspect of that pattern. It is often a useful beginning for exploration—but it is not a study design, a causal estimate, or an explanation by itself.
Read the scatterplot before the coefficient
A coefficient compresses many paired observations into one number. Before calculating it, plot the data. A scatterplot can reveal whether the relationship is roughly linear, whether one observation dominates the result, whether groups differ, or whether a curved pattern would be hidden by a coefficient near zero.
Example data show a strong positive linear association. The dashed line summarizes the pattern; it does not prove what caused the differences among neighborhoods.
Worked example: heat and emergency visits
Suppose an analyst compares the maximum summer temperature with heat-related emergency-department visits across six fictional neighborhoods. Each row is one paired observation.
Neighborhood
Maximum temperature (°F)
Heat-related ED visits per 10,000
A
78
3
B
82
4
C
85
5
D
88
7
E
91
8
F
94
10
Small fictional dataset used consistently through the worked example.
For these six pairs, Pearson’s r is approximately 0.987. That is a very strong positive linear association in this small dataset: neighborhoods with higher maximum temperatures also had higher rates of heat-related emergency visits.
A correct interpretation stops there. The calculation alone does not show how much of the difference was caused by temperature. Tree canopy, housing quality, air conditioning, age distribution, occupational exposure, measurement differences, and other factors may influence both the observed temperatures and emergency visits. Because the rows describe neighborhoods, the result also cannot establish that the individuals with greater heat exposure were the individuals who visited an emergency department.
What Pearson’s r measures
Pearson correlation coefficient
What every symbol means
r
The correlation coefficient you are calculating. It will be between −1 and +1.
x
The first variable. Here, x is maximum temperature.
y
The second variable. Here, y is heat-related emergency visits.
i
The row you are working on. For example, row 1 is neighborhood A.
x̄ and ȳ
The mean, or ordinary average, of all the x values and all the y values.
∑
Capital sigma means “add all of these up.” It is an instruction, not another variable.
²
Square the number: multiply it by itself. For example, 3² = 3 × 3 = 9.
√
Find the square root: the number that, multiplied by itself, gives the value inside the symbol.
The basic idea: first ask whether each pair is above or below its two averages. Then combine those movements and scale the result so different datasets can be compared on the same −1-to-+1 range.
Calculate it yourself
Use the formula with the six neighborhoods
You can follow these steps with paper and a basic calculator. Keep two decimal places while you work; the tiny rounding difference at the end is expected.
Step 1: Find the two averages
Add the six temperatures and divide by 6. Then do the same for the six visit rates.
Subtract the appropriate average from each value. For neighborhood A, the temperature difference is 78 − 86.33 = −8.33 and the visit-rate difference is 3 − 6.17 = −3.17. Multiply those differences, then square each difference. Repeat for every row.
Area
x − x̄
y − ȳ
Multiply the differences
Square the x difference
Square the y difference
A
−8.33
−3.17
26.39
69.44
10.03
B
−4.33
−2.17
9.39
18.78
4.69
C
−1.33
−1.17
1.56
1.78
1.36
D
1.67
0.83
1.39
2.78
0.69
E
4.67
1.83
8.56
21.78
3.36
F
7.67
3.83
29.39
58.78
14.69
Add each column
0.00
0.00
76.67
173.33
34.83
The first two columns add to zero because differences above and below an average balance one another. The last three totals are the numbers the formula needs.
Step 3: Put the totals into the formula
r = 76.67 ÷ √(173.33 × 34.83) r = 76.67 ÷ √6037.78 r = 76.67 ÷ 77.70
r ≈ 0.987
The positive sign tells us the two variables tend to rise together. The value is close to +1, so the six points follow a strong straight-line pattern. It still does not tell us that temperature alone caused the differences.
Try changing one value
Replace neighborhood F’s visit rate of 10 with a much lower number, such as 4. Recalculate the y average and the affected columns. The coefficient will become smaller because the last point no longer follows the upward pattern as closely. This is a useful way to see how one observation can change a correlation.
Pearson’s r ranges from −1 to +1. The sign gives the direction of the linear association. The absolute value summarizes how closely the points follow a straight-line pattern. A value near +1 indicates a strong positive linear association; a value near −1 indicates a strong negative linear association; and a value near 0 indicates little linear association.
Near zero does not mean “no relationship.” A strong U-shaped or other nonlinear pattern can produce a Pearson correlation close to zero. A large coefficient also does not guarantee that a straight line is the most useful summary. Always interpret the coefficient beside a plot and the study context.
How strong is strong?
There is no universal threshold that turns a coefficient into “weak,” “moderate,” or “strong” for every field. The practical meaning depends on measurement reliability, expected biological or social variation, sample size, the range of values studied, and the decision the analysis must support. Report the coefficient, show the data, and explain the context instead of relying on a label alone.
When Spearman rank correlation is useful
Spearman’s rank correlation describes a monotonic relationship: as one variable increases, the other tends consistently to increase or decrease, even when the pattern is not a straight line. It operates on ranks and can be useful for ordinal data or monotonic relationships that do not meet Pearson’s linear framing. Tied ranks require the standard tie-aware calculation used by statistical software; the familiar shortcut formula without a correction is not generally exact when ties are present.
Four common interpretation mistakes
Calling association causation. Confounding, reverse causation, selection, and measurement can all produce or distort correlation.
Skipping the plot. Outliers, clusters, curved patterns, and data errors can disappear inside one number.
Assuming zero means unrelated. Pearson’s r can miss strong nonlinear relationships.
Comparing coefficients without context. Restricting the observed range or changing how variables are measured can change the coefficient.
Knowledge check
Across several counties, vaccination coverage and disease incidence have a Pearson correlation of −0.72. Which conclusion is best supported?
Vaccination caused incidence to fall by 72%.
Higher coverage was associated with lower incidence in a fairly strong linear pattern.
Seventy-two percent of disease cases occurred in unvaccinated people.
No other county-level factor could explain the pattern.
Show the answer and reasoning
B is the supported interpretation. The sign indicates that higher coverage tended to occur with lower incidence, and the magnitude describes a fairly strong linear association in these data. The coefficient is not a percentage, does not estimate an individual vaccine effect, and does not rule out confounding or ecological bias.
A brief history—and an ethical boundary
Francis Galton and Karl Pearson helped develop correlation while studying heredity, and both were central advocates of eugenics. University College London’s institutional history documents how early biometry and eugenics developed together. That history is not a decorative footnote: it shaped institutions, human classifications, and the questions the methods were built to answer. Using correlation today does not endorse eugenics, but responsible analysis requires scrutiny of how variables are defined, whose data are collected, and which decisions a result may support.
Humanities Moment
Johann Carl Loth
German painter · 1632–1698
Loth was a seventeenth-century painter whose Diogenes shows the ancient philosopher raising a lamp while searching for an honest person. The work is the article’s featured image and was sourced from Artvee by Broadly Epi.
Why this work: the lamp offers a modest visual metaphor for careful inquiry. A correlation can illuminate a pattern, but an honest analysis keeps searching for alternative explanations, limitations, and what the calculation cannot establish. The painting provides context; it is not statistical evidence.
Websites store cookies to enhance functionality and personalise your experience. You can manage your preferences, but blocking some cookies may impact site performance and services.
Essential cookies enable basic functions and are necessary for the proper function of the website.
Name
Description
Duration
Cookie Preferences
This cookie is used to store the user's cookie consent preferences.