Unit 7, lesson 52

Risk, Odds and Relative Effects

How risks, risk differences, risk ratios and odds ratios describe one table, why the baseline risk matters, what a case-control study can estimate, and how to build a log-scale interval for a ratio.

  • Video 52
  • Risk and Odds

Suppose a report states that some outcome occurs twice as often in one group as in another. If the outcome went from 1 in 1000 people to 2 in 1000, that is one extra outcome per thousand people. If it went from 20 percent to 40 percent, it is two hundred extra outcomes per thousand. The ratio is the same and the consequences are not. This lesson builds the risk difference, the risk ratio and the odds ratio from one table, explains what each one measures and what a case-control study can estimate, and attaches a confidence interval to a ratio.

Key terms

Risk and baseline risk

Definition The risk of an outcome in a group is the probability that a member of the group has the outcome during a specified period, such as one year of follow-up. When nn people are each followed for the whole period and xx of them have the outcome, the sample proportion p^=x/n\hat{p} = x/n estimates the risk in the population those people represent. In a comparison of two groups, the baseline risk is the risk in the reference group, the one the other group is compared with, often an unexposed, untreated or usual-care group. Risks are comparable only when the outcome definition and the period are the same in both groups.

In plain words A risk counts outcomes out of everyone who could have had them, so its denominator is the whole group, including the people with the outcome. The baseline risk is the starting level that a relative comparison is measured against, and a reader needs it before a ratio says anything about numbers of people.

Example Two constructed groups of 100 people are followed over the same period with the same outcome definition. The counts are invented for teaching and say nothing about any real treatment.

GroupOutcomeNo outcomeTotal
Aa=20a = 20b=80b = 80nA=100n_A = 100
Bc=10c = 10d=90d = 90nB=100n_B = 100

The estimated risks are p^A=20/100=0.20\hat{p}_A = 20/100 = 0.20 and p^B=10/100=0.10\hat{p}_B = 10/100 = 0.10. With B as the reference group, the estimated baseline risk is 0.10, or 10 percent.

Risk difference

Definition For a risk pAp_A in group A and a risk pBp_B in a reference group B, the risk difference is

RD=pA−pB,\text{RD} = p_A - p_B ,

estimated by RD^=p^A−p^B\widehat{\text{RD}} = \hat{p}_A - \hat{p}_B. It lies between −1-1 and 11, it equals 00 exactly when the two risks are equal, and it is usually reported in percentage points. It is an absolute effect measure. Multiplied by 1000, it is the difference between the expected numbers of outcomes among 1000 people with risk pAp_A and among 1000 people with risk pBp_B. The word effect in that label names a comparison. It does not by itself mean that belonging to group A causes the difference.

In plain words The risk difference measures extra outcomes per person, and scaling it to 100 or 1000 people gives a count of extra expected outcomes. Percentage points and percent are different units. A rise from 10 percent to 20 percent adds 10 percentage points, and it is also a 100 percent increase over the starting risk, so a report of “an increase of 10 percent” leaves the reader guessing which one is meant.

Example In the table, RD^=0.20−0.10=0.10\widehat{\text{RD}} = 0.20 - 0.10 = 0.10, a difference of 10 percentage points. Among 1000 people at each risk the expected numbers of outcomes are 200 and 100, so the risks differ by 100 expected outcomes per 1000 people.

Risk ratio

Definition For a reference risk pB>0p_B > 0, the risk ratio of group A relative to group B is

RR=pApB,\text{RR} = \frac{p_A}{p_B} ,

estimated by RR^=p^A/p^B\widehat{\text{RR}} = \hat{p}_A / \hat{p}_B when p^B>0\hat{p}_B > 0. It is a relative effect measure. It is never negative, it equals 11 exactly when the two risks are equal, and the relative change from the baseline is RR−1\text{RR} - 1. When pA>0p_A > 0, reversing the reference group replaces the ratio by 1/RR1/\text{RR}. A known baseline turns a ratio back into risks, since pA=RR⋅pBp_A = \text{RR} \cdot p_B and

pA−pB=(RR−1) pB.p_A - p_B = (\text{RR} - 1)\, p_B .

Because a risk cannot exceed 1, a ratio RR\text{RR} can hold only at a baseline with RR⋅pB≤1\text{RR} \cdot p_B \le 1.

In plain words A risk ratio says how many times as large one risk is as the other. It leaves out the baseline, so the same ratio can go with very different numbers of extra outcomes. Every ratio also needs a stated direction, saying which group is on top and which is the reference.

Example In the table, RR^=0.20/0.10=2\widehat{\text{RR}} = 0.20/0.10 = 2, and with A as the reference the ratio is 0.10/0.20=0.50.10/0.20 = 0.5. Now keep a ratio of 2 and change the baseline. From 1 percent it gives 2 percent, an increase of 1 percentage point, or 10 more expected outcomes per 1000 people. From 20 percent it gives 40 percent, an increase of 20 percentage points, or 200 more per 1000. From 60 percent a ratio of 2 is impossible, because it would need a risk of 1.21.2.

Odds and odds ratio

Definition For an outcome with probability p<1p < 1, the odds of the outcome are

o=p1−p,o = \frac{p}{1 - p} ,

which can be any nonnegative number, and conversely p=o/(1+o)p = o/(1 + o). For risks pAp_A and pBp_B strictly between 00 and 11, the odds ratio of group A relative to group B is

OR=pA/(1−pA)pB/(1−pB).\text{OR} = \frac{p_A/(1 - p_A)}{p_B/(1 - p_B)} .

In a table with counts aa and bb in row A and cc and dd in row B, arranged as above, the estimate is OR^=(a/b)/(c/d)=ad/(bc)\widehat{\text{OR}} = (a/b)/(c/d) = ad/(bc) when all four counts are positive. The two ratios are linked by

OR=RR⋅1−pB1−pA.\text{OR} = \text{RR} \cdot \frac{1 - p_B}{1 - p_A} .

So if pA>pBp_A > p_B then OR>RR>1\text{OR} > \text{RR} > 1, if pA<pBp_A < p_B then OR<RR<1\text{OR} < \text{RR} < 1, and both equal 11 when the risks are equal. The odds ratio is close to the risk ratio when both risks are small, and the two can be far apart for a common outcome.

In plain words Risk divides the number of outcomes by everyone in the group. Odds divide it by the people without the outcome. Odds of 3 mean three people with the outcome for every person without it, which is a risk of 3/4, not 300 percent. Whenever the risks differ, the odds ratio is farther from 1 than the risk ratio, so reading an odds ratio as a ratio of risks makes the relative difference look larger than it is.

Example In the table the odds are 20/80=1/420/80 = 1/4 in group A and 10/90=1/910/90 = 1/9 in group B, so

OR^=1/41/9=94=2.25,\begin{aligned} \widehat{\text{OR}} &= \frac{1/4}{1/9} \\[0.4em] &= \frac{9}{4} = 2.25 , \end{aligned}

while the risk ratio is 2. Both numbers are correct, but the sentence that the risk is 2.25 times as high would be wrong. For risks of 0.02 and 0.01 the odds ratio is about 2.02, close to the risk ratio 2, because almost everyone falls in the no-outcome denominator.

Case-control study

Definition A case-control study selects people who have the outcome, the cases, and people who do not, the controls, and then compares their earlier exposure or group membership. The investigator decides how many cases and controls to include, so the fraction of cases in the sample is not an estimate of a population risk. Write aa, bb, cc and dd for the counts in the source population, arranged as in the table above, and suppose each case is selected with probability s1s_1 and each person without the outcome with probability s0s_0, with selection unrelated to exposure among the people with the outcome and among those without it. The expected sampled counts are then s1as_1 a, s0bs_0 b, s1cs_1 c and s0ds_0 d, and

(s1a)(s0d)(s0b)(s1c)=adbc.\frac{(s_1 a)(s_0 d)}{(s_0 b)(s_1 c)} = \frac{ad}{bc} .

So the cross-product of the sample estimates the odds ratio of the source population. The same cross-product is the odds of exposure among cases divided by the odds of exposure among controls, which is what the sample measures directly. Risks, risk differences and risk ratios cannot be recovered from the case-control table alone. They need outside information, such as the sampling fractions or the baseline risk in the source population.

In plain words A case-control study fixes the outcome first and looks back at exposure, so the rows of its table do not contain risks. The odds ratio survives because the sampling multipliers cancel. That cancellation is a property of the design, not a guarantee. If selection depends on exposure differently for cases and for controls, for example when exposed cases are easier to find, or if the controls do not represent the population that produced the cases, the estimate can be biased. When the outcome is rare in both groups of the source population, the odds ratio is close to the risk ratio, but that is an extra assumption about the population, not something the table shows. As in any observational study, an association found this way is not by itself a causal effect.

Example Treat the 200 people of the table as the whole source population, with 30 cases and 170 people without the outcome. An investigator keeps all 30 cases and draws a random fifth of the 170 as controls, and suppose the 34 controls drawn are 16 from group A and 18 from group B, exactly one fifth of each.

GroupCasesControls
A2016
B1018

The odds ratio is (20⋅18)/(16⋅10)=2.25(20 \cdot 18)/(16 \cdot 10) = 2.25, the same as in the population. The case fraction in row A is 20/36≈0.5620/36 \approx 0.56, far from the risk 0.200.20, and the ratio of the two case fractions is (20/36)/(10/28)≈1.56(20/36)/(10/28) \approx 1.56, not the risk ratio 22.

Log-scale interval for a ratio

Definition A log-scale interval for a ratio is a confidence interval computed for the natural logarithm of the ratio and then mapped back with the exponential function. For independent binomial samples with aa outcomes among nAn_A people and cc outcomes among nBn_B people, where a>0a > 0 and c>0c > 0, a common large-sample standard error is

SE⁡(log⁡RR^)≈1a−1nA+1c−1nB,\begin{aligned} &\operatorname{SE}(\log \widehat{\text{RR}}) \\[0.4em] &\quad \approx \sqrt{\frac{1}{a} - \frac{1}{n_A} + \frac{1}{c} - \frac{1}{n_B}} , \end{aligned}

and the approximate 95 percent interval for the risk ratio is

exp⁡(log⁡RR^±1.96 SE⁡)=RR^ e±1.96 SE⁡.\begin{aligned} &\exp\bigl(\log \widehat{\text{RR}} \pm 1.96\, \operatorname{SE}\bigr) \\[0.4em] &\quad = \widehat{\text{RR}}\, e^{\pm 1.96\, \operatorname{SE}} . \end{aligned}

For the odds ratio, with all four counts positive, the standard error of log⁡OR^\log \widehat{\text{OR}} is approximately 1/a+1/b+1/c+1/d\sqrt{1/a + 1/b + 1/c + 1/d}, and the interval is built the same way. This odds ratio formula also applies to a case-control sample, with the cases and the controls treated as two independent samples. A zero outcome count, or for the odds ratio a zero in any cell, makes the formula undefined, and the estimate itself can then be 00 or infinite. An exact, score-based or model-based method suited to the design should then be chosen and reported, rather than a constant added to the cells without comment.

In plain words Ratios live on a multiplicative scale, where 2 and 1/2 are equally far from 1. On the log scale they sit at equal distances on either side of 0, the sampling distribution of the estimate is usually closer to normal, and exponentiating keeps both endpoints positive. The resulting interval is not symmetric around the estimate, which is the geometric mean of the two endpoints. The 95 percent describes the procedure. Over repeated samples, intervals built this way capture the true ratio about 95 percent of the time, and coverage can fall short when counts are small. It is not a 95 percent probability that this particular interval contains the ratio.

Example In the table, log⁡2≈0.693\log 2 \approx 0.693 and the standard error is 0.05−0.01+0.10−0.01=0.13≈0.361\sqrt{0.05 - 0.01 + 0.10 - 0.01} = \sqrt{0.13} \approx 0.361. The interval is exp⁡(0.693±0.707)\exp(0.693 \pm 0.707), from about 0.9870.987 to about 4.054.05. It is wide and contains 11, so these counts are compatible with equal risks as well as with a risk about four times as high. With B relative to A the interval is the reciprocals, about 0.2470.247 to 1.011.01. For the odds ratio the standard error is 1/20+1/80+1/10+1/90≈0.417\sqrt{1/20 + 1/80 + 1/10 + 1/90} \approx 0.417, and the interval runs from about 0.9940.994 to 5.095.09.

Check yourself

  1. A constructed report gives a baseline risk of 4 percent in a reference group and a risk ratio of 1.5 for a second group, with the same outcome and period. Find the risk in the second group, the risk difference in percentage points and the difference in expected outcomes per 1000 people. Does the ratio alone show that belonging to the second group causes the extra outcomes?
Show the answer

The second risk is 1.5×0.04=0.061.5 \times 0.04 = 0.06, or 6 percent. The risk difference is 2 percentage points, and 0.02×1000=200.02 \times 1000 = 20, so the two risks differ by 20 expected outcomes per 1000 people. That is a difference in expected counts, not a promise of exactly 20 extra outcomes in any particular group of 1000.

The ratio alone does not show causation. That needs a design such as random assignment, or a convincing argument that confounding and selection do not explain the difference, together with comparable outcome definitions and follow-up. A complete report would also give both risks and an interval for the comparison.

  1. Two constructed groups have risks of 0.60 and 0.40 over the same period. A summary says the outcome is 2.25 times as likely in the first group. Compute the risk ratio and the odds ratio, and explain what went wrong.
Show the answer

The risk ratio is 0.60/0.40=1.50.60/0.40 = 1.5. The odds are 0.60/0.40=1.50.60/0.40 = 1.5 in the first group and 0.40/0.60=2/30.40/0.60 = 2/3 in the second, so the odds ratio is 1.5/(2/3)=2.251.5/(2/3) = 2.25. The summary reported the odds ratio as if it were a risk ratio. The outcome is common here, so the two differ a lot, and since the first risk is the larger one the odds ratio is the one farther from 1. The outcome is 1.5 times as likely, a difference of 20 percentage points.

The same odds ratio of 2.25 came from the risks 0.20 and 0.10 in the table above, where the risk ratio is 2. An odds ratio alone does not determine the risk ratio.

  1. A constructed case-control study selects 100 cases and 100 controls. Of the cases 40 were exposed, and of the controls 25 were exposed. Estimate the odds ratio with an approximate 95 percent log-scale interval. Can the risk of the outcome among exposed people be estimated as 40/6540/65, the share of cases among the exposed people in the sample?
Show the answer

The table has 40 exposed and 60 unexposed cases, and 25 exposed and 75 unexposed controls. The odds ratio is

OR^=40⋅7525⋅60=2,\widehat{\text{OR}} = \frac{40 \cdot 75}{25 \cdot 60} = 2 ,

which is also the odds of exposure among cases, 40/60=2/340/60 = 2/3, divided by the odds of exposure among controls, 25/75=1/325/75 = 1/3. The standard error of its logarithm is 1/40+1/25+1/60+1/75=0.095≈0.308\sqrt{1/40 + 1/25 + 1/60 + 1/75} = \sqrt{0.095} \approx 0.308, so the interval is exp⁡(0.693±0.604)\exp(0.693 \pm 0.604), from about 1.09 to 3.66. This rests on the cases and the controls being independent random samples of the people with and without the outcome in one source population, with selection unrelated to exposure.

The share 40/65≈0.6240/65 \approx 0.62 is not a risk. The investigator chose equal numbers of cases and controls. With 200 controls instead, 50 of them exposed in the same proportion, the exposed row would hold 40 cases and 50 controls, a case share of about 0.44, while the odds ratio would stay 2. The share reflects the design, not the population. Estimating risks needs outside information such as the baseline risk in the source population. If the outcome is rare there, the odds ratio also approximates the risk ratio, but that is an assumption the table cannot check.

How this lesson connects