Lably
Skip to content

Odds ratio

Statistic quantifying the association between two events

  • 21 min read
  • 13 chapters

Related on Lably

Through Statistic, Correlation and Ratio

Note that the odds ratio is symmetric in the two events, and no causal direction is implied (correlation does not imply causation): an OR greater than 1 does not establish that B causes A, or that A causes B.

Two similar statistics that are often used to quantify associations are the relative risk (RR) and the absolute risk reduction (ARR). Often, the parameter of greatest interest is actually the RR, which is the ratio of the probabilities analogous to the odds used in the OR. However, available data frequently do not allow for the computation of the RR or the ARR, but do allow for the computation of the OR, as in case-control studies, as explained below. On the other hand, if one of the properties (A or B) is sufficiently rare (in epidemiology this is called the rare disease assumption), then the OR is approximately equal to the corresponding RR.

The OR plays an important role in the logistic model.

Definition and basic properties

Intuition from an example for laypeople

If we flip an unbiased coin, the probability of getting heads and the probability of getting tails are equal — both are 50%. Imagine we get a biased coin such that, if one flips it, one is twice as likely to get heads than tails (i.e., the odds double: from 1:1 to 2:1). The new probabilities would be 66.666...% for heads and 33.333...% for tails.

A motivating example, in the context of the rare disease assumption

Suppose a radiation leak in a village of 1,000 people increased the incidence of a rare disease. The total number of people exposed to the radiation was VE=400, out of which DE=20 developed the disease and HE=380 stayed healthy. The total number of people not exposed was VN=600, out of which DN=6 developed the disease and HN=594 stayed healthy. We can organize this in a contingency table:

 Diseased  Healthy  Exposed 20380 Not exposed 6594

The risk of developing the disease given exposure is DE/VE=20/400=.05 and of developing the disease given non-exposure is DN/VN=6/600=.01. One obvious way to compare the risks is to use the ratio of the two, the relative risk.

Relative risk=DE/(DE+HE)DN/(DN+HN)=DE/VEDN/VN=20/4006/600=.05.01=5.

The odds ratio is different. The odds of getting the disease if exposed is DE/HE=20/380≈.0526, and the odds if not exposed is DN/HN=6/594≈.0101. The odds ratio is the ratio of the two,

Odds ratio=DE/HEDN/HN=20/3806/594≈.0526.0101=5.2.

As illustrated by this example, in a rare-disease case like this, the relative risk and the odds ratio are almost the same. By definition, rare disease implies that VE≈HE and VN≈HN. Thus, the denominators in the relative risk and odds ratio are almost the same (400≈380 and 600≈594).

Relative risk is easier to understand than the odds ratio, but one reason to use odds ratio is that usually, data on the entire population is not available and random sampling must be used. In the example above, if it were very costly to interview villagers and find out if they were exposed to the radiation, then the prevalence of radiation exposure would not be known, and neither would the values of VE or VN. One could take a random sample of fifty villagers, but quite possibly such a random sample would not include anybody with the disease, since only 2.6% of the population are diseased. Instead, one might use a case-control study in which all 26 diseased villagers are interviewed as well as a random sample of 26 who do not have the disease. The results might turn out as follows ("might", because this is a random sample):

 Diseased  Healthy  Exposed 2010 Not exposed 616

The odds in this sample of getting the disease given that someone is exposed is 20/10 and the odds given that someone is not exposed is 6/16. The odds ratio is thus 20/106/16≈5.3, quite close to the odds ratio calculated for the entire village. The relative risk, however, cannot be calculated, because it is the ratio of the risks of getting the disease and we would need VE and VN to figure those out. Because the study selected for people with the disease, half the people in the sample have the disease and it is known that that is more than the population-wide prevalence. Therefore, the numbers of diseased and healthy within exposed, and diseased and healthy within non-exposed, are not addable.

It is standard in the medical literature to calculate the odds ratio and then use the rare-disease assumption (which is usually reasonable) to claim that the relative risk is approximately equal to it. This not only allows for the use of case-control studies, but makes controlling for confounding variables such as weight or age using regression analysis easier and has the desirable properties discussed in other sections of this article of invariance and insensitivity to the type of sampling.

Definition in terms of group-wise odds

The odds ratio is the ratio of the odds of an event occurring in one group to the odds of it occurring in another group. The term is also used to refer to sample-based estimates of this ratio. These groups might be men and women, an experimental group and a control group, or any other dichotomous classification. If the probabilities of the event in each of the groups are p1 (first group) and p2 (second group), then the odds ratio is:

OR=p1/(1−p1)p2/(1−p2)=p1/q1p2/q2=p1q2p2q1,

where qx = 1 − px. An odds ratio of 1 indicates that the condition or event under study is equally likely to occur in both groups. An odds ratio greater than 1 indicates that the condition or event is more likely to occur in the first group. And an odds ratio less than 1 indicates that the condition or event is less likely to occur in the first group. The odds ratio must be nonnegative if it is defined. It is undefined if p2q1 equals zero, i.e., if p2 equals zero or q1 equals zero.

Definition in terms of joint and conditional probabilities

The odds ratio can also be defined in terms of the joint probability distribution of two binary random variables. The joint distribution of binary random variables X and Y can be written

Y=1Y=0X=1p11p10X=0p01p00

where p11, p10, p01 and p00 are non-negative "cell probabilities" that sum to one. The odds for Y within the two subpopulations defined by X = 1 and X = 0 are defined in terms of the conditional probabilities given X, i.e., P(Y |X):

Y=1Y=0X=1p11p11+p10p10p11+p10X=0p01p01+p00p00p01+p00

Thus, the odds ratio is:

OR=p11/(p11+p10)p10/(p11+p10)/p01/(p01+p00)p00/(p01+p00)=p11p00p10p01

Note that the odds ratio is also the product of the probabilities of the "concordant cells" (X = Y) divided by the product of the probabilities of the "discordant cells" (X ≠ Y). However, in some applications the labelling of categories as zero and one is arbitrary, so there is nothing special about concordant versus discordant values in these applications.

Symmetry

If we had calculated the odds ratio based on the conditional probabilities given Y,

Y=1Y=0X=1p11p11+p01p10p10+p00X=0p01p11+p01p00p10+p00

we would have obtained the same result

p11/(p11+p01)p01/(p11+p01)/p10/(p10+p00)p00/(p10+p00)=p11p00p10p01.

Other measures of effect size for binary data such as the relative risk do not have this symmetry property.

Relation to statistical independence

If X and Y are independent, their joint probabilities can be expressed in terms of their marginal probabilities px = P(X = 1) and py = P(Y = 1), as follows

Y=1Y=0X=1pxpypx(1−py)X=0(1−px)py(1−px)(1−py)

In this case, the odds ratio equals one, and conversely the odds ratio can only equal one if the joint probabilities can be factored in this way. Thus the odds ratio equals one if and only if X and Y are independent.

Recovering the cell probabilities from the odds ratio and marginal probabilities

The odds ratio is a function of the cell probabilities, and conversely, the cell probabilities can be recovered given knowledge of the odds ratio and the marginal probabilities P(X = 1) = p11 + p10 and P(Y = 1) = p11 + p01. If the odds ratio R differs from 1, then

p11=1+(p1⋅+p⋅1)(R−1)−S2(R−1)

where p1• = p11 + p10, p•1 = p11 + p01, and

S=(1+(p1⋅+p⋅1)(R−1))2+4R(1−R)p1⋅p⋅1.

In the case where R = 1, we have independence, so p11 = p1•p•1.

Once we have p11, the other three cell probabilities can easily be recovered from the marginal probabilities.

Sign in to keep reading

12 more chapters are free with a Lably account.

More in Statistics