Pick one adult at random from the 5,107 adults examined in the National Health and Nutrition Examination Survey (NHANES) of 2017 to 2018 who answered the survey's questions on diabetes and smoking. The chance that this person has hypertension is 0.545. The chance that the person is obese is 0.411, and the chance that a doctor has told the person they have diabetes is 0.152. Every result in this unit is a statement about such chances:
- The chance that the person has at least one of the three conditions is 0.708, not the sum of the three chances, which exceeds 1.
- Learning that the person is obese raises the chance of diabetes from 0.152 to 0.206.
- Diabetes is 1.76 times as common among former smokers as among adults who never smoked, and most of that excess is explained by their greater age.
- A study that starts from people who already have a disease, and compares them with people who do not, cannot estimate the risk an exposure carries, but it can estimate the odds ratio.
Probability is the set of rules for reasoning about uncertain events. Every other rule follows from three short statements, the axioms. This unit sets out the rules, uses them to compare the risk of disease between groups, and checks each one by counting real people.
The unit runs in three steps:
- First, the axioms and the rules proved from them, and the property called independence, a different idea from mutual exclusivity, with which it is often confused.
- Then, conditional probability, the probability of one event among the cases where another has occurred: how a probability changes when we learn something. Three results follow from it, and one of them explains how an association can appear, shrink, vanish or reverse when a population is split into groups.
- Finally, the two measures epidemiology uses to compare risks, why one of them is the measure a case-control study can estimate, and how both are given confidence intervals and adjusted for a confounder.
The examples use one population throughout: the nonpregnant adults examined in NHANES 2017 to 2018 with blood pressure, body mass index, a diabetes answer and a smoking answer on record. The same adults appear in Inference on Proportions. Their conditions follow the definitions of the National Center for Health Statistics:
- hypertension: a mean systolic pressure of at least 130 mm Hg, a mean diastolic pressure of at least 80 mm Hg, or current use of blood pressure medication;
- obesity: a body mass index of 30 or more;
- diabetes: a doctor's diagnosis, with answers of "borderline" counted as no;
- smoking: adults who have smoked at least 100 cigarettes in their lives are current smokers if they now smoke on every day or some days, and former smokers if they do not smoke at all; the others never smoked.
We treat these adults as a finite population. Then every probability can be computed exactly by counting, and each rule can be checked against the data rather than illustrated with invented numbers. Every number comes from a script in the site's repository.
Articles
- The Rules of Probability: the three chances cannot simply be added, and inclusion–exclusion replaces the addition. Sample spaces, events and their operations. The classical and relative-frequency views of probability, and Kolmogorov's axioms. The complement rule, monotonicity, the addition rule and inclusion–exclusion for three and for $n$ events, each proved from the axioms and checked on hypertension, obesity and diabetes. Boole's inequality and its use in the Bonferroni correction. Independence of two and of several events, and why mutually exclusive events with positive probability can never be independent. Five worked problems on the dice and the NHANES counts.
- Conditional Probability and the Law of Total Probability: learning one fact changes the chance of another by restricting the population to the cases where the fact holds. The definition, and why a conditional probability obeys the axioms. The difference between $P(D \mid O)$ and $P(O \mid D)$. The multiplication and chain rules, with draws without replacement, and independence restated. The law of total probability as a tree over age groups, and Bayes' theorem for reversing a conditional probability. The crude rate and direct standardization as total probability with different weights. Confounding by age and Simpson's paradox, worked on diabetes among former and never smokers. Four worked problems, including the age adjustment made in both directions.
- Relative Risk and the Odds Ratio: two risks are compared by their difference, their ratio or the ratio of their odds, and a study that starts from the cases can estimate only the last. Risk, risk difference, relative risk, odds and the odds ratio from a $2 \times 2$ table. The identity linking the two ratios, and why the odds ratio approximates the relative risk only for rare outcomes. Cohort, cross-sectional and case-control designs, with proofs that a case-control study estimates the odds ratio and cannot estimate the relative risk, and a simulation showing both. Which measure to report. Two worked problems.
- Intervals and Adjustment for Relative Risks and Odds Ratios: an estimated ratio gets its confidence interval on the log scale, and a comparison is adjusted for a confounder by averaging the ratios within its groups. The delta method stated as a theorem, and the Katz and Woolf intervals derived from it, with their exact coverage. Adjustment for a confounder with the Mantel–Haenszel estimators, their standard errors and the Mantel–Haenszel test. Three worked problems.
Related topics
This unit builds on the previous one and prepares several later ones.
- The previous unit, Rates and Standardization, adjusts rates for age. Its direct standardization is the law of total probability with a chosen set of weights.
- The next unit, Screening and Diagnostic Tests, applies conditional probability and Bayes' theorem to the accuracy of medical tests.
- Theoretical Probability Distributions builds random variables and their distributions on the rules developed here.
- The measures of this unit are proportions. The inference for them, including the test that two proportions are equal and the chi-square test of a $2 \times 2$ table, is in Comparing Two Proportions.
- The information retrieval wiki's Probability for Information Retrieval covers the same rules for ranking documents. The library's Logistic Regression estimates odds ratios that adjust for several variables at once.
References
- Breslow, N. E., and Day, N. E. (1980). Statistical Methods in Cancer Research, Volume I: The Analysis of Case-Control Studies. IARC Scientific Publications No. 32. International Agency for Research on Cancer. record · 6 pages
- Centers for Disease Control and Prevention (2006). Principles of Epidemiology in Public Health Practice: An Introduction to Applied Epidemiology and Biostatistics (3rd ed., updated 2011), Lesson 3: Measures of Risk. SS1978. Office of Workforce and Career Development, CDC. https://archive.cdc.gov/www_cdc_gov/csels/dsepd/ss1978/index.html record · 2 pages
- Grinstead, C. M., and Snell, J. L. (1997). Introduction to Probability (2nd rev. ed.). American Mathematical Society. record · 22 pages
- Kolmogorov, A. N. (1956). Foundations of the Theory of Probability (2nd English ed., N. Morrison, Trans.). Chelsea. Originally published in German in 1933. record · 2 pages
- Pagano, M., Gauvreau, K., and Mattie, H. (2022). Principles of Biostatistics (3rd ed.). CRC Press. The course text. record · 48 pages
Reviewed: verified, 16 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 16 Nov 2026 · 5 revisions