Risk, relative risk and odds ratio: how much more often it happens
"Twice the risk." "An odds ratio of 2.25." Studies and news stories use these numbers all the time. Do they say the same thing? Draw two groups of 100 people and count for yourself. All the data on this page is made up. This page explains statistics ideas and is not health advice.
Short answer. Risk is the share of people the thing happened to. Subtract the risks of two groups and you get the risk difference. Divide them and you get the relative risk. Odds are "people it happened to ÷ people it did not happen to", and dividing the odds of two groups gives the odds ratio. When the event is rare, the odds ratio and the relative risk are almost the same. When it is common, the odds ratio looks bigger.
| had it | did not | total | risk | odds | |
|---|---|---|---|---|---|
| exposed | a = | b = | 100 | ||
| unexposed | c = | d = | 100 | ||
| total | 200 |
| comparison | calculation | value |
|---|---|---|
| risk difference | ||
| relative risk | ||
| odds ratio | ||
| one in how many (NNT) |
Drag a slider or type a number (0 to 100 people). Filled circles are people it happened to, hollow squares are people it did not happen to. Green is the exposed group and blue is the unexposed group. The bar under each grid is that group's risk. The data is made up.
Definitions
Follow an exposed group and an unexposed group for a set period and fill a 2×2 table. In the exposed group, a people had the event and b did not. In the unexposed group, c people had the event and d did not. With this table we define the following.
- risk
- The share of the people followed for a set period who had the event. We write p₁ for the risk in the exposed group and p₀ for the risk in the unexposed group.
- risk difference
- The risk in the exposed group minus the risk in the unexposed group. It is 0 when there is no difference.
- relative risk
- The risk in the exposed group divided by the risk in the unexposed group. It is 1 when there is no difference.
- odds
- For an event with probability p, the probability that it happens divided by the probability that it does not. In a 2×2 table, this is the number of people who had the event divided by the number who did not, in each group.
- odds ratio
- The odds in the exposed group divided by the odds in the unexposed group. It is 1 when there is no difference.
- number needed to treat (NNT)
- One over the size of the risk difference, |p₁ − p₀|. When the exposure is a treatment that lowers the risk, it is how many people you need to treat, on average, to prevent one more event.
1. Risk: the share of people it happened to
Start with a made-up example. Follow 100 people who were exposed to some substance and 100 people who were not, for one year, and count the people who got a certain illness in that time.
Risk is the share of people something happened to within a set time. In everyday English "risk" sounds like danger, but in statistics it is just a share (a probability). If 20 out of 100 people got the illness in a year, the risk is 20 ÷ 100 = 0.2, or 20%.
Always give the time span. A 20% risk over one year and a 20% risk over ten years are very different statements.
Exposure is a broad word. Drinking some substance, taking a drug or having some habit are all called exposures. The thing you watch for (an illness, getting better, coming back) is called the outcome or the event. To compare two groups, write a 2×2 table. The rows are exposed or not, the columns are whether it happened. The cell names a, b, c and d mean the same thing all through this page.
| had it | did not | total | |
|---|---|---|---|
| exposed | a | b | a + b |
| unexposed | c | d | c + d |
The risk in the exposed group is a ÷ (a + b), and in the unexposed group it is c ÷ (c + d).
2. Risk difference and relative risk: subtract or divide
There are two ways to compare the risks of two groups.
With the starting numbers, the risk difference is 0.2 − 0.1 = 0.1 and the relative risk is 0.2 ÷ 0.1 = 2. The risk difference, "10 more in every 100", is an absolute number. The relative risk, "twice as much", is a relative number. With no difference, the risk difference is 0 and the relative risk is 1.
A risk difference is written in percentage points. Going from 10% to 20% is a rise of 10 percentage points, and in relative terms a rise of 100%.
One in how many. Flip the risk difference over and you get "for every how many exposed people, one more has it". With the starting numbers that is 1 ÷ 0.1 = 10. If the exposure is a treatment and the risk went down, it reads "how many people you treat for one of them to benefit". Books call this the number needed to treat (NNT). It is an average: it does not mean exactly one in every 10. Always say over what time and compared with what.
3. Odds: people it happened to ÷ people it did not
Odds are "people it happened to ÷ people it did not happen to". Risk (probability) divides the people it happened to by everyone. Odds divide them by the people it did not happen to.
If it happened to 1 person out of 4, the probability is 1/4 = 0.25, and the odds are "1 to 3", or 1 ÷ 3 ≈ 0.333. For every person it happens to, 3 people are spared. Betting phrases like "3 to 1" are odds.
| probability p | odds | meaning |
|---|---|---|
| 0.01 | 0.0101 | 1 has it for every 99 who do not |
| 0.1 | 0.111 | 1 to 9 |
| 0.2 | 0.25 | 1 to 4 |
| 0.5 | 1 | even |
| 0.8 | 4 | 4 to 1 |
| 0.9 | 9 | 9 to 1 |
A probability stays between 0 and 1, but odds go from 0 up without limit. When the probability is small, odds and probability are almost the same (0.01 and 0.0101). As the probability grows, they move far apart (0.9 and 9). This gap is why the odds ratio looks inflated in section 7. The "disease : no disease" ratio on the probability and Bayes' theorem page is exactly the odds.
4. Odds ratio: one odds divided by another
With the starting numbers, the odds in the exposed group are 20 ÷ 80 = 0.25, the odds in the unexposed group are 10 ÷ 90 ≈ 0.111, and the odds ratio is 0.25 ÷ 0.111 = 2.25. Close to the relative risk of 2, but not the same.
An odds ratio of 1 means no difference. Above 1 means it happened more in the exposed group, below 1 means less. Tidied up, the formula becomes (a × d) ÷ (b × c). The next section shows how, with pictures.
Try this. (the lab at the top) ① At the start (20 exposed, 10 unexposed) you get a risk difference of 0.1 (10 percentage points), a relative risk of 2, an odds ratio of 2.25 and "one in every 10". ② Lower the exposed group to 2 people. The relative risk becomes 0.2 and the odds ratio 0.184, both below 1. The risk difference is −0.08, so it reads "one fewer for every 12.5 people". ③ Set the groups to 60 and 30. The relative risk is still 2, but the odds ratio is 3.5. ④ Set them to 2 and 1. The relative risk is 2 and the odds ratio 2.02, almost the same. ⑤ Set the exposed group to 5 and the unexposed group to 0. Because one cell is 0, a note says 0.5 was added to all four cells, and you get a relative risk of 11 and an odds ratio of 11.6.
5. How the formula is built: odds ratio = (a × d) ÷ (b × c)
Step by step, see how the formula (a ÷ b) ÷ (c ÷ d) from section 4 becomes (a × d) ÷ (b × c), and why that shape is useful. The data is the starting table of the lab at the top (a = 20, b = 80, c = 10, d = 90).
Press "Next" to move one step at a time. A piece is added to the formula above (the orange background marks the new piece), the people move, and the reason appears below. Each dot is one person, and the rows stand two people deep.
Written only as equations, the steps above look like this.
- Four cells:
a, b, c, d. The 100 exposed people split into a = 20 who had it and b = 80 who did not. The 100 unexposed people split into c = 10 and d = 90. Why: every number that compares the two groups is worked out from these four. - Odds in the exposed group:
a ÷ b. Line up the exposed group as one row of people who had it and one row of people who did not. The first row (20 people) is a quarter as long as the second (80 people). That ratio, 20 ÷ 80 = 0.25, is the odds. Why: risk divides the people it happened to by everyone, while odds set the two sides against each other. - Odds in the unexposed group:
c ÷ d. The same way, 10 ÷ 90 ≈ 0.111. One person had it for every 9 who did not. Why: you need a baseline before you can say whether the exposed group has more or less. - Divide:
(a ÷ b) ÷ (c ÷ d). 0.25 ÷ 0.111 = 2.25. The odds in the exposed group are 2.25 times as big. That is the odds ratio. Why: dividing instead of subtracting makes "no difference" equal 1. - Tidy up:
OR = (a × d) ÷ (b × c). Dividing by a fraction is the same as multiplying by it flipped over: (a ÷ b) × (d ÷ c) = (a × d) ÷ (b × c). In the table, a sits across the diagonal from d, and b across from c. 20 × 90 = 1800, 80 × 10 = 800, 1800 ÷ 800 = 2.25. That is why the odds ratio is also called the cross-product ratio. Why: three divisions become two multiplications and one division, and you only need the diagonals of the table. - Turn the table, same answer:
= (a ÷ c) ÷ (b ÷ d). Swap rows and columns, and compare the odds of being exposed among cases (people who had it) with the odds of being exposed among controls (people who did not). 20 ÷ 10 = 2, 80 ÷ 90 ≈ 0.889, and 2 ÷ 0.889 = 2.25, the same. Turning the table makes b and c trade places, but they stay on the same diagonal, so the cross product does not change. Why: this is why a case-control study, which first gathers cases and controls and then asks about past exposure, can still find the odds ratio (section 10).
Try this. ① In the second step, the row of 20 green circles is a quarter as long as the row of 80 hollow squares. ② The odds ratio of 2.25 in the fourth step is the same as the starting odds ratio of the lab at the top. ③ In the last step, the light green squares (b) and the blue circles (c) trade places but stay on the orange diagonal. a and d on the dark diagonal do not move.
6. Work it out by hand: every measure from one table
Use the starting table of the lab at the top to work out every measure on this page.
| had it | did not | total | |
|---|---|---|---|
| exposed | a = 20 | b = 80 | 100 |
| unexposed | c = 10 | d = 90 | 100 |
- Risks. Exposed 20 ÷ 100 = 0.2, unexposed 10 ÷ 100 = 0.1.
- Risk difference. 0.2 − 0.1 = 0.1, or 10 percentage points.
- Relative risk. 0.2 ÷ 0.1 = 2.
- One in how many. 1 ÷ 0.1 = 10. One more person has it for every 10 exposed people.
- Odds. Exposed 20 ÷ 80 = 0.25, unexposed 10 ÷ 90 ≈ 0.111.
- Odds ratio. 0.25 ÷ 0.111 = 2.25. With the cross product: (20 × 90) ÷ (80 × 10) = 1800 ÷ 800 = 2.25.
- 95% confidence interval of the odds ratio (section 9). Take the log: ln 2.25 ≈ 0.811. The standard error is √(1/20 + 1/80 + 1/10 + 1/90) = √0.174 ≈ 0.417. 0.811 ± 1.96 × 0.417 = −0.00572 to 1.63. Back again: e^−0.00572 ≈ 0.994 and e^1.63 ≈ 5.09. The interval 0.994 to 5.09 only just contains 1.
Here is the same arithmetic written as equations.
7. Rare and common events: why the odds ratio looks inflated
Hold the relative risk at 2 and change only the baseline risk (the risk in the unexposed group).
Drag the slider or type a number (0.1 to 80%). The horizontal axis is a log scale, so 0.1%, 1% and 10% are evenly spaced. The dashed green line is the relative risk and the blue curve is the odds ratio. With a relative risk of 2 the baseline risk cannot pass 50%, because the exposed risk would pass 100%. This lab stops at an exposed risk of 90%, which is a baseline risk of 45%.
Call the baseline risk p₀ and the exposed risk p₁. The odds ratio is the relative risk times one extra piece.
When p₀ and p₁ are both small, (1 − p₀) ÷ (1 − p₁) is close to 1, so the odds ratio ≈ the relative risk. When the relative risk is above 1, p₁ is bigger than p₀, so the extra piece is above 1 and the odds ratio is bigger than the relative risk. Below 1 it goes the other way and the odds ratio is smaller. Either way, the odds ratio is farther from 1 than the relative risk.
When an odds ratio of 2 does not mean "twice the risk"
If you only know the odds ratio, you can still turn it back into a relative risk when you know the baseline risk p₀ (Zhang and Yu in the sources). Here it is used only for a plain comparison of two groups, with no adjustment for other variables.
| baseline risk p₀ | relative risk when the odds ratio is 2 | odds ratio when the relative risk is 2 |
|---|---|---|
| 0.1% | 2 | 2 |
| 1% | 1.98 | 2.02 |
| 10% | 1.82 | 2.25 |
| 20% | 1.67 | 2.67 |
| 40% | 1.43 | 6 |
| 50% | 1.33 | not possible (exposed risk 100%) |
In a group with a baseline risk of 20%, an odds ratio of 2 is not twice the risk but 1.67 times. "When the event is rare you can read the odds ratio like a relative risk" is only true in the top rows of this table. The other way round, with a high baseline risk the relative risk cannot be large. With a baseline risk of 50%, the relative risk cannot pass 2.
Try this. ① At the start (baseline risk 10%) the exposed risk is 20%, the relative risk 2 and the odds ratio 2.25, which is 12.5% bigger. ② Lower the baseline risk to 1% and the odds ratio is 2.02 (1.02% bigger). At 0.1% it is 2, almost on top of the line. ③ At 20% it is 2.67, at 40% it is 6, and at the end, 45%, it is 11. ④ Press "Relative risk 0.5" and raise the baseline risk to 80%. The odds ratio is 0.167. Below 1, too, the odds ratio moves farther from 1.
8. Same relative risk, different weight: look at absolute numbers too
Even with the same relative risk, a different baseline risk changes how many extra people it actually happens to. Here are two made-up cases side by side.
Drag the slider or type a number (1 to 5). Each picture is 10,000 exposed people, one dot per person. Dark dots are people who would have had it even without the exposure, orange dots are extra people who had it because of the exposure. When there are only a few, they are ringed. The pictures round to whole people.
The relative risk of 2 is the same in both cases. But in the rare case 1 extra person in 10,000 has it (risk difference 0.01 percentage points, one in every 10,000), while in the common case 1,000 extra people do (risk difference 10 percentage points, one in every 10). The same "twice" means 1,000 times as many extra people.
So do not be alarmed by a relative number alone. Look at the absolute numbers too: the baseline risk, the risk difference, and "one in how many". The other way round, a relative risk that looks small can still mean many extra people when the baseline risk is high.
Reading "risk up 50%" in the news
"Risk up 50%" means a relative risk of 1.5. That could be 2 in 10,000 people becoming 3, or 20 in 100 becoming 30. The first is a risk difference of 0.01 percentage points (one in every 10,000), the second 10 percentage points (one in every 10). When you see a headline like that, look for these.
- From what to what? The baseline risk and the exposed risk, which are the absolute numbers.
- Percent or percentage points? Going from 2% to 3% is "up 1 percentage point" and also "up 50%".
- Relative risk or odds ratio? If it is an odds ratio and the event is common, "how many times" is inflated (section 7).
- What is the interval? With few people, the interval around "1.5 times" may contain 1 (section 9).
- What kind of study? A difference seen in an observational study may come from something other than the exposure (confounding and bias).
Try this. ① At the start (relative risk 2), 1 extra person has it in the rare case and 1,000 in the common case. "One in how many" is 10,000 and 10. ② Lower the relative risk to 1.5. The rare case adds 0.5 people (drawn as 1 after rounding) and the common case 500, which is one in every 20,000 and one in every 20. ③ Raise it to 3. The rare case still adds only 2 people, and the common case adds 2,000.
9. Intervals and significance
The numbers so far are estimates from one set of data. Run the same study again and you get slightly different numbers. A confidence interval describes that wobble.
Ratios (relative risk, odds ratio) run from 0 up without limit and are lopsided around 1. Twice (2) and half (0.5) are the same distance from 1, but on an ordinary scale the distance from 1 to 2 is twice the distance from 1 to 0.5. So we take the log. ln 2 ≈ 0.693 and ln 0.5 ≈ −0.693, so on the log scale both are the same distance from 0.
1.96 is the point on the normal distribution that leaves the middle 95%. The lab does not copy 1.96 from a table: it finds it by working out the area under the normal curve (about 1.95996). The more people in each cell, the smaller pieces like 1/a get, and the narrower the interval. The interval is symmetric on the log scale, so after turning it back, the part above the estimate is longer (the interval around 2.25 is 0.994 to 5.09).
Drag a slider or type a number. Each group has 10 to 5,000 people, and that slider is on a log scale. The people in each cell are "people × risk", rounded. The square is the estimate, the line is the 95% confidence interval, and the dashed line is 1 (no difference). The horizontal axis is a log scale, so 0.5 and 2 are the same distance from 1. Interval ends that run off the picture are drawn as arrowheads.
Reading significance. If the interval contains 1, we say "at the 5% level we cannot say there is a difference". If the whole interval is on one side of 1, we say it is "significant at the 5% level" (hypothesis testing and p-values). The p-values on this page come from a test that uses the same standard error (the Wald test), so "the interval contains 1" and "p ≥ 0.05" always match. The same table can give slightly different p-values with other tests. The starting table under a chi-square test without continuity correction gives p ≈ 0.048, while the lab's odds ratio p is 0.052. Results near 0.05 can land on either side depending on the method, so do not use 0.05 alone to decide "effect" or "no effect".
Readings that are wrong
- "There is a 95% chance the true value is between 0.994 and 5.09." Wrong. The 95% is a property of the method that builds intervals. If you ran the study many times the same way, about 95% of the intervals built would contain the true value. One interval you already have either contains it or does not.
- "The interval contains 1, so there is no effect." Wrong. 0.994 to 5.09 fits no effect and also fits five times the odds. There was not enough data to tell. With the same shares and 200 people per group, the interval becomes 1.26 to 4.01.
- "p is small, so the effect is big." Wrong. With many people, even a small difference gives a small p. Judge the size of the effect from the estimate and the interval, and its real weight from the risk difference.
- "p = 0.052 and p = 0.048 are opposite results." Wrong. They are almost the same evidence.
A cell with 0. If one cell is 0, you would divide by 0 or take the log of 0, so it cannot be worked out. A common fix is to add 0.5 to all four cells. The Cochrane Handbook notes that many meta-analysis programs add a fixed value (often 0.5) to all four cells of a table with a 0. The labs on this page do the same and tell you on screen. The interval then comes out very wide.
Try this. ① At the start (risks 20% and 10%, 100 people per group) the odds ratio is 2.25 (0.994 to 5.09, p = 0.052) and the relative risk is 2 (0.987 to 4.05, p = 0.055). Both only just contain 1. ② Raise the number of people to 200. The odds ratio interval narrows to 1.26 to 4.01 and leaves 1 behind (p = 0.006). At 1,000 it is 1.74 to 2.91. ③ Lower it to 20 and it widens to 0.362 to 14. Four times the people halves the width of the interval on the log scale. ④ With 100 people, set the exposed risk to 5% and the unexposed risk to 0%. c is 0, so 0.5 is added, and the odds ratio is 11.6 with an interval of 0.632 to 212. ⑤ Set the exposed risk to 2% and the unexposed risk to 10%. The odds ratio is 0.184 (0.0392 to 0.861), and the whole interval is below 1.
10. Different study designs give different measures
Which numbers you can work out depends on how the data was gathered.
| study design | how the data is gathered | what you can work out |
|---|---|---|
| cohort study | gather exposed and unexposed people, follow them forward and count who it happens to | risk, risk difference, relative risk, odds ratio |
| randomized controlled trial | split people into a treatment group and a control group by lot, then follow them (randomization, clinical trial design) | the same as a cohort study. Because of the lottery, the two groups start out alike |
| case-control study | gather people it already happened to (cases) and people it did not (controls) separately, then ask about past exposure | odds ratio |
In a case-control study, the researcher decides how many cases and how many controls to gather. So dividing "the share of people it happened to" in the table does not give a risk.
For example, take the groups of section 6 (20 of 100 exposed people and 10 of 100 unexposed people had it). Gather all 30 cases, and pick controls from the 170 people who did not have it, one in every 10. If exposed and unexposed people were picked at the same rate, the controls are 8 exposed and 9 unexposed.
| cases (had it) | controls (did not) | |
|---|---|---|
| exposed | a = 20 | b = 8 |
| unexposed | c = 10 | d = 9 |
Divide "risks" from this table and you get 20 ÷ 28 ≈ 0.714 and 10 ÷ 19 ≈ 0.526, a ratio of 1.36, not the true 2. That value changes with however many controls you pick. The odds ratio is (20 × 9) ÷ (8 × 10) = 180 ÷ 80 = 2.25, the same as for the whole groups. The sampling rate of the controls (one in 10) multiplies b and d alike, so it cancels in (a × d) ÷ (b × c). That is the "turn the table, same answer" from the last step of section 5. And since odds ratio ≈ relative risk when the event is rare (section 7), case-control studies of rare illnesses use the odds ratio to estimate the relative risk.
A difference seen in an observational study (cohort or case-control) may come from some other difference between the groups rather than the exposure. The confounding and bias page covers this.
11. Values below 1, and reading things the other way round
A relative risk of 0.5 means the exposed group has half the risk. It is also written "risk down 50%", and that 50% is called the relative risk reduction (1 − relative risk). When the exposure is a treatment it is often reported this way, and a value below 1 is called a protective effect. Try this ② of the lab at the top is an example.
0.5 and 2 are "the same distance" from 1. Swap the groups (exposed and unexposed) and both the relative risk and the odds ratio turn into their reciprocals. 2 becomes 0.5, and 2.25 becomes 0.444. That is why ratios are compared on a log scale. On an ordinary scale, the average of 0.5 and 2 is 1.25, not the "no difference" value of 1 (an example from chapter 6 of the Cochrane Handbook).
Swapping "had it" and "did not" is different. The odds ratio turns into its reciprocal (2.25 becomes 0.444), but the relative risk does not. In the starting table, the ratio of the risks of "not having it" is 0.8 ÷ 0.9 ≈ 0.889, not 1 ÷ 2 = 0.5. The relative risk depends on which outcome you count as "the event". The odds ratio does not.
12. How this links to other methods
- Logistic regression coefficients. Logistic regression writes the log of the odds (the logit) as a straight line:
ln(odds) = β₀ + β₁ × x. Let x = 1 for exposed and 0 for unexposed. The unexposed group gives ln(10 ÷ 90) = β₀ ≈ −2.2 and the exposed group gives ln(20 ÷ 80) = β₀ + β₁ ≈ −1.39. Subtract: β₁ ≈ 0.811 = ln 2.25. So e to the power of the coefficient, e^β₁ = 2.25, is the odds ratio. Put other variables in the model too, and e^β₁ becomes the odds ratio "with the other variables held the same" (an adjusted odds ratio). Most odds ratios in papers come from here. - Hazard ratio. Comparisons that also care about how soon it happens use the hazard ratio from survival analysis. It is the ratio of "how fast it happens at a given moment, among people it has not happened to yet". The name is similar, but it is a different value from the relative risk.
- Chi-square test. To test whether the shares in a 2×2 table differ, see the chi-square test.
- Bayes' theorem. Written with odds, Bayes' theorem becomes a single multiplication: "odds after the test = odds before the test × likelihood ratio".
- Sample size. How many people you need for an interval of the width you want is on the sample size page.
13. Comparing the measures, and key properties
| measure | meaning | range (no difference) | when to use | watch out |
|---|---|---|---|---|
| risk | people it happened to ÷ people followed | 0 to 1 | how often in one group | give the time span |
| risk difference | one risk minus the other | −1 to 1 (0) | how many more (or fewer) people it really happens to. Good for decisions | changes a lot with the baseline risk |
| relative risk | one risk divided by the other | 0 to ∞ (1) | cohort studies, randomized controlled trials | for rare events a big ratio can still be few people. With a high baseline risk a big value is impossible |
| odds | people it happened to ÷ people it did not | 0 to ∞ | logistic regression, betting | not the same as probability (a probability of 0.9 is odds of 9) |
| odds ratio | one odds divided by the other | 0 to ∞ (1) | case-control studies, logistic regression | for common events it is farther from 1 than the relative risk. Do not read it as "times the risk" |
| number needed to treat (NNT) | 1 ÷ |risk difference| | 1 to ∞ (∞) | the weight of a treatment, in people | an average. Give the time span and what it is compared with |
| property | in plain words | where to see it |
|---|---|---|
| the odds ratio is farther from 1 than the relative risk | almost the same for rare events, further apart the more common the event | section 7, lab ② |
| turning the table keeps the odds ratio | swap rows and columns and (a × d) ÷ (b × c) stays the same. That is why case-control studies can find it | section 5 ⑥, section 10 |
| swapping the groups gives the reciprocal | swap exposed and unexposed and both the relative risk and the odds ratio flip. Swap "had it" and "did not" and only the odds ratio flips | section 11 |
| same relative number, different absolute number | with the same relative risk, the risk difference can differ 1,000 times depending on the baseline risk | section 8, lab ③ |
| intervals are symmetric on the log scale | turned back, the part above the estimate is longer. Four times the people halves the width on the log scale | section 9, lab ⑤ |
Where it is used
- Reading clinical trial results. How much a treatment changes the outcome is reported as a risk difference, a relative risk and "one in how many" (clinical trial design).
- Finding causes of rare illnesses. When an illness is rare, following exposed people for a long time still turns up only a few cases. So researchers gather cases first in a case-control study and report an odds ratio.
- Looking at many variables at once. Logistic regression with other variables such as age and sex reports adjusted odds ratios.
- Pooling many studies. A picture that stacks the intervals of many studies on a log scale, one line each, is called a forest plot. Lab ⑤ is one line of it.
- Product experiments (A/B tests). A conversion rate going from 2% to 3% is up 50% in relative terms and up 1 percentage point in absolute terms: one more click for every 100 visitors. Report both.
- Reading news and reports. When you see "times" or "up some percent", look for the baseline risk and the risk difference (section 8).
Frequently asked questions
Should I use the odds ratio or the relative risk?
If the study lets you count risks directly (a cohort study or a randomized controlled trial), relative risk and risk difference are easier to read. Case-control studies and logistic regression give odds ratios. When you report an odds ratio, also give the baseline risk so readers can turn it back into risk.
Does an odds ratio of 2 mean twice the risk?
Only roughly, and only when the event is rare. With a baseline risk of 1%, an odds ratio of 2 is a relative risk of 1.98. At 20% it is 1.67, and at 50% it is 1.33. The odds ratio is always farther from 1 than the relative risk.
A news story says the risk went up 50%. How should I read that?
It means a relative risk of 1.5. That could be 2 in 10,000 people becoming 3, or 20 in 100 becoming 30. Look for the baseline risk (from what to what) and the risk difference. Also tell percent (%) apart from percentage points.
If the confidence interval contains 1, does that mean there is no effect?
No. It means this data cannot rule out "no difference". A wide interval like 0.994 to 5.09 fits no effect and also fits five times the odds. To say there is no effect, the interval has to sit tightly around 1.
What if one cell of the table is 0?
You cannot divide by 0 or take the log of 0, so a common fix is to add 0.5 to all four cells. The labs on this page do that and tell you on screen. The 0.5 is a convention, so read a table with a 0 in it carefully: the interval comes out very wide. With very few people, use another method such as an exact test.
Words
| Words on this page | What books call it |
|---|---|
| the share of people it happened to | risk, absolute risk, incidence proportion |
| the risk in the unexposed group | baseline risk, control event rate |
| what you are exposed to, what you watch for | exposure, outcome, event |
| one risk minus the other | risk difference. When it goes down, absolute risk reduction (ARR). Also attributable risk |
| one risk divided by the other | relative risk, risk ratio (RR). Not to be confused with the hazard ratio of survival analysis |
| 1 − relative risk | relative risk reduction (RRR) |
| people it happened to ÷ people it did not | odds |
| one odds divided by another | odds ratio (OR), cross-product ratio |
| the log of the odds | log-odds, logit |
| one in how many | number needed to treat (NNT). For harm, some write NNH (number needed to harm), but the Cochrane Handbook says it can mislead and suggests NNTB and NNTH (number needed to treat for one more beneficial or harmful outcome) |
| 2×2 table | contingency table, two-by-two table |
| a study that follows people forward | cohort study |
| a trial that splits people by lot | randomized controlled trial (RCT) |
| a study that gathers cases and controls and asks about the past | case-control study |
| odds ratio ≈ relative risk when the event is rare | rare disease assumption |
| percentage points | percentage points (pp) |
| how much an estimate wobbles | standard error, 95% confidence interval |
| the standard error formula for the log odds ratio | Woolf's method |
| a test that uses the same standard error | Wald test |
| adding 0.5 to cells when one is 0 | Haldane-Anscombe correction, zero-cell correction |
| a picture of intervals stacked on a log scale | forest plot |
| an odds ratio with other variables held the same | adjusted odds ratio |
| a ratio of how fast it happens at each moment | hazard ratio (HR) |
Sources
- Cochrane Handbook for Systematic Reviews of Interventions, Chapter 6: Choosing effect measures and computing estimates of effect (risk, odds, relative risk, odds ratio, risk difference, log scale), Chapter 10 (adding a fixed value to cells with 0), Chapter 15 (what NNT means and what to call it).
- J. Martin Bland, Douglas G. Altman (2000). Statistics Notes: The odds ratio. BMJ. Odds ratios, case-control studies, the standard error of the log odds ratio.
- Douglas G. Altman, Jonathan J. Deeks, David L. Sackett (1998). Odds ratios should be avoided when events are common. BMJ.
- Jun Zhang, Kai F. Yu (1998). What's the Relative Risk? JAMA. The formula that turns an odds ratio and a baseline risk into a relative risk.
- Andreas Laupacis, David L. Sackett, Robin S. Roberts (1988). An Assessment of Clinically Useful Measures of the Consequences of Treatment. NEJM. The paper that introduced the number needed to treat.
- Richard J. Cook, David L. Sackett (1995). The number needed to treat: a clinically useful measure of treatment effect. BMJ.
- Barnet Woolf (1955). On estimating the relation between blood group and disease. Annals of Human Genetics. The standard error of the log odds ratio.
- Sander Greenland and others (2016). Statistical tests, P values, confidence intervals, and power: a guide to misinterpretations. European Journal of Epidemiology. Common wrong readings of p-values and confidence intervals.
- Abramowitz, Stegun, Handbook of Mathematical Functions, formula 7.1.26 (an approximation of the error function, used to work out 1.96). The definition of erf is in NIST DLMF §7.2.