Tutorials › Introduction to Statistics › Comparing Risks With the Relative Risk

Two-Proportion Inference · Tutorial 713 of 996

Comparing Risks With the Relative Risk

Learn to calculate and interpret relative risk while keeping the comparison groups and outcome clear.

Intermediate 9 min read

What You'll Learn

  • Define population relative risk as a ratio of two group risks.
  • Estimate relative risk using the two sample proportions.
  • Interpret relative risks below, equal to, and above one.
  • Translate a relative risk into a proportional increase or decrease.
  • Explain why the order of the groups matters.
  • Distinguish a relative comparison from a difference in percentage points.

Why Compare Risks as a Ratio?

Suppose two groups experience the same outcome, such as an infection within 30 days of treatment. One group might have a risk of 3%, and another a risk of 6%. The difference is 3 percentage points, while the second risk is twice the first. These describe the same data on different scales: a difference gives an absolute change, and a ratio gives a relative comparison.

The relative risk (also called the risk ratio) is the ratio of the outcome risk in one population group to the outcome risk in another. Its interpretation depends on which group is placed in the numerator and which is used as the reference. It is therefore essential to name the groups in the same order when defining, calculating, and interpreting it.

Definition: Let \(p_1\) be the population risk of a specified outcome in group 1, and let \(p_2\) be the population risk of the same outcome in group 2. Provided \(p_2>0\), the relative risk comparing group 1 with group 2 is
$$ RR=\frac{p_1}{p_2}. $$
The relative risk is a unitless ratio. Group 2 is the reference group in this comparison.

A risk here means the probability or proportion of individuals who experience the specified outcome over a defined period or under a defined observation scheme. For example, “risk of infection within 30 days” names both an outcome and a time window. Comparisons are meaningful only when the groups’ outcomes and time windows are defined consistently.

Estimating Relative Risk From Samples

Population risks are usually unknown. Suppose a sample from group 1 contains \(x_1\) individuals with the outcome out of \(n_1\), and a sample from group 2 contains \(x_2\) individuals with the outcome out of \(n_2\). The sample risks are \(\hat{p}_1=x_1/n_1\) and \(\hat{p}_2=x_2/n_2\). The sample relative risk is obtained by replacing each population risk in the definition with its sample estimate.

Definition: The estimated relative risk comparing group 1 with group 2 is
$$ \widehat{RR}=\frac{\hat{p}_1}{\hat{p}_2} =\frac{x_1/n_1}{x_2/n_2}, $$
provided \(\hat{p}_2>0\). It estimates \(RR=p_1/p_2\); it is not generally equal to the unknown population relative risk.

For the usual two-group setup, each individual has a binary outcome—either the specified event occurs or it does not. Within each group, outcomes can be represented by Bernoulli observations with that group’s event probability. To interpret the sample proportions as estimates for defined populations, the samples or group assignments must represent the groups of interest; the two groups should also be formed and observed in a way that supports a valid comparison. The formula itself is descriptive, but these design features matter when drawing conclusions beyond the observed samples.

Worked Example: A Relative Risk Below One

Consider hypothetical data on infection within 30 days among two groups of patients. In a group receiving a preventive intervention, 12 of 400 patients develop an infection. In a reference group, 30 of 400 develop an infection. Calculate and interpret the estimated relative risk of infection for the intervention group compared with the reference group.

Check what is being compared. Both counts refer to the same outcome, infection within 30 days, and the same observation period. The first group is in the numerator, and the reference group is in the denominator.

The sample risks are

$$ \hat{p}_1=\frac{12}{400}=0.030,\qquad \hat{p}_2=\frac{30}{400}=0.075. $$

Therefore,

$$ \widehat{RR} =\frac{0.030}{0.075} =0.40. $$

The estimated 30-day infection risk in the intervention group is 0.40 times the risk in the reference group. Equivalently, the sample risk is 40% of the reference-group risk, or 60% lower relative to that risk, since \(1-0.40=0.60\). This is a relative comparison of the observed risks; it does not by itself show that the intervention caused the difference.

How to Read the Value

The value one is the benchmark for equal risks: dividing a positive risk by itself gives one. Values on either side of one indicate the direction of the comparison, as long as the group order is kept fixed.

Estimated or population relative riskMeaning for group 1 compared with group 2
Below 1The risk in group 1 is lower than the risk in group 2.
Equal to 1The risks in groups 1 and 2 are equal.
Above 1The risk in group 1 is higher than the risk in group 2.

For a value above one, the amount above one can be expressed as a proportional increase relative to the reference risk. For example, a relative risk of 1.5 means the first risk is 1.5 times the second risk, or 50% higher. For a value below one, the reduction relative to the reference risk is \(1-RR\) as a proportion. A relative risk of 0.80 means the first risk is 80% of the second, or 20% lower. These percentages compare risks proportionally; they are not percentage-point changes.

Worked Example: A Relative Risk Above One

In a hypothetical comparison, 48 of 600 people in group 1 experience a specified outcome, while 24 of 600 people in group 2 experience it. Calculate the estimated relative risk for group 1 compared with group 2.

The two sample risks are

$$ \hat{p}_1=\frac{48}{600}=0.080,\qquad \hat{p}_2=\frac{24}{600}=0.040. $$

The estimated relative risk is

$$ \widehat{RR}=\frac{0.080}{0.040}=2.00. $$

In this hypothetical sample, the outcome risk in group 1 is twice the risk in group 2. It is 100% higher relative to group 2 because \(2.00-1=1.00\). The actual risks are 8% and 4%, so their difference is 4 percentage points. “Twice the risk” and “4 percentage points higher” are both valid descriptions here, but they express different comparisons.

Worked Example: Equal Sample Risks

Suppose hypothetical data show the outcome in 18 of 300 people in group 1 and 18 of 300 people in group 2. Find and interpret the sample relative risk.

The sample risks are

$$ \hat{p}_1=\frac{18}{300}=0.060,\qquad \hat{p}_2=\frac{18}{300}=0.060. $$

Thus,

$$ \widehat{RR}=\frac{0.060}{0.060}=1.00. $$

The observed outcome proportions are equal, so the estimated relative risk is one. This describes equality of the sample risks. It does not establish that the population risks are exactly equal: other samples from the same populations could yield different proportions because of sampling variation.

Why the Group Order Matters

A relative risk is directional in the sense that the numerator and denominator determine the question being answered. If \(p_1\) is divided by \(p_2\), the result compares group 1 with group 2. Reversing the comparison gives \(p_2/p_1\). When both risks are positive, this is the reciprocal of the original relative risk:

$$ \frac{p_2}{p_1}=\frac{1}{p_1/p_2}=\frac{1}{RR}. $$

For example, if group 1’s risk is twice group 2’s, then group 2’s risk is half group 1’s. The values 2 and 0.5 do not conflict; they answer comparisons with opposite group orders. Always state the numerator group and reference group in words alongside the numerical result.

Worked Example: Reversing the Reference Group

Use the hypothetical risks from the earlier intervention comparison: 12 of 400 in the intervention group and 30 of 400 in the reference group experienced infection within 30 days. Find the estimated relative risk when the reference group is instead placed in the numerator.

The comparison is now reference group divided by intervention group:

$$ \widehat{RR}_{\text{reference vs intervention}} =\frac{30/400}{12/400} =\frac{0.075}{0.030} =2.50. $$

The estimated 30-day infection risk in the reference group is 2.50 times the risk in the intervention group. This is the reciprocal of the first comparison, because \(1/0.40=2.50\). It is not a changed finding; the groups’ order has been reversed.

A Short Algebraic Connection to Risk Differences

Relative risk and risk difference use the same two population risks but summarize their relationship differently. The following identity makes the connection explicit. Starting from \(RR=p_1/p_2\), with \(p_2>0\), subtract one:

$$ RR-1 =\frac{p_1}{p_2}-1 =\frac{p_1-p_2}{p_2}. $$

Thus, the relative amount by which \(p_1\) exceeds or falls below \(p_2\) is the risk difference divided by the reference risk. This also explains why the same absolute difference can correspond to different relative risks when the reference risk changes. For instance, a difference of 0.02 is half of a reference risk of 0.04, but only one-fifth of a reference risk of 0.10. The relative comparison depends on its denominator, so a relative risk should not be reported without identifying the reference group.

Common Mistakes and Careful Interpretation

  • Reversing the groups without changing the wording. If the calculation is intervention risk divided by reference risk, describe the intervention group relative to the reference group. Reversing the order changes the result to its reciprocal when both risks are positive.
  • Calling a relative change a percentage-point change. A relative risk of 2 means twice the risk, not a difference of two percentage points. Calculate the two risks separately if an absolute difference is needed.
  • Treating a sample estimate as a known population value. The estimated relative risk summarizes observed sample proportions. Sampling variability means another sample may produce a different estimate; a point estimate alone does not quantify that uncertainty.
  • Interpreting an association as a cause. A relative risk describes a comparison of outcome risks. It does not, by itself, show that membership in one group caused the outcome risk to change. Causal conclusions require a design and assumptions that support them.

The denominator must also be positive for the relative risk to be defined. If the reference-group sample risk is zero, the sample ratio cannot be calculated by ordinary division. That is a limitation of this estimate, not evidence that the relative risk has some finite numerical value.

Key takeaway: Define the event, time period, numerator group, and reference group before calculating. Then divide the first group’s risk by the reference group’s risk and interpret the result relative to one, in context.

Check Your Understanding

Answer each question using the group order stated.

  1. Group A has a sample risk of 0.12 and group B has a sample risk of 0.08. What is the estimated relative risk for A compared with B, and how should it be interpreted?
  2. A relative risk comparing group 1 with group 2 is 0.70. What percentage lower is the risk in group 1 relative to group 2?
  3. Why can equal sample risks, and therefore an estimated relative risk of one, fail to establish that the population risks are exactly equal?
  4. If the estimated relative risk for group A compared with group B is 0.25, what is the estimated relative risk for group B compared with group A?
  5. Explain why a relative risk of 1.5 is not the same statement as a risk difference of 1.5 percentage points.