The Rules of Probability

The axioms of probability and the rules that follow from them. Sample spaces, events, unions, intersections and complements; equally likely outcomes and long-run relative frequency; the three axioms; the complement rule, monotonicity, the addition rule and inclusion-exclusion, each proved; Boole's inequality behind the Bonferroni correction; and independence, for two events and for several, with a proof that mutually exclusive events cannot be independent. Worked on dice and on hypertension, obesity and diabetes among NHANES adults, with worked problems on counting the adults with exactly one, two or three conditions, bounds on a union, independence of dice events, repeated draws and inclusion-exclusion for four events.

From three axioms (nonnegativity, $P(S) = 1$ and additivity over mutually exclusive events) this article proves the complement rule, monotonicity, the addition rule $P(A \cup B) = P(A) + P(B) - P(A \cap B)$, inclusion–exclusion for any number of events, and Boole's inequality $P(\bigcup A_i) \le \sum P(A_i)$, which underlies the Bonferroni correction. It defines independence by $P(A \cap B) = P(A)\,P(B)$, shows that pairwise independence does not imply mutual independence, and proves that mutually exclusive events of positive probability are never independent. The rules hold for any probability, however its numbers are obtained. Among 5,107 NHANES adults, a share of 0.708 have hypertension, obesity or diagnosed diabetes, not the naive sum 1.108, and hypertension and diabetes occur together 1.45 times as often as independence predicts.

Of the 5,107 adults in this unit's NHANES population, 2,783 have hypertension, 2,099 are obese and 777 have been told by a doctor that they have diabetes. Choose one of them at random. What is the chance that the person has at least one of the three conditions? It is 0.708, and it is not the sum of the three shares.

Adding the three shares gives $0.545 + 0.411 + 0.152 = 1.108$. That cannot be a probability. The sum counts the 1,356 obese adults with hypertension twice, and the 361 adults with all three conditions three times. Counting each adult once gives 3,617, a probability of 0.708. The correction for the overlaps is the inclusion–exclusion rule. It is one of a handful of rules that follow from three short statements, the axioms of probability.

First we set up the language of events and ask what a probability means. Then we state the axioms and prove from them the rules a statistician uses every day, checking each on the NHANES adults. Finally we define independence, which makes most probability calculations tractable, and separate it from mutual exclusivity, with which it is often confused.

Outcomes, events and their operations

A random experiment is any process whose result is not known in advance: rolling two dice, drawing an adult at random from a population, recording whether a patient recovers. Its sample space $S$ is the set of all possible results, called outcomes. Rolling two dice, one red and one green, has 36 outcomes, the ordered pairs $(r, g)$ with $r$ and $g$ from 1 to 6. Drawing one adult from the NHANES population has 5,107 outcomes, one per adult.

An event is a set of outcomes, a subset of $S$, and it occurs when the outcome of the experiment is one of its members. "The dice sum to 7" is the event $\{(1,6), (2,5), (3,4), (4,3), (5,2), (6,1)\}$. "The adult has hypertension," written $H$, is the set of 2,783 hypertensive adults. Events combine as sets do:

Operation Notation Occurs when
Union $A \cup B$ $A$ occurs, or $B$ occurs, or both
Intersection $A \cap B$ both $A$ and $B$ occur
Complement $A^c$ $A$ does not occur

The complement is also written $\bar{A}$ or $A'$. The empty set $\varnothing$ is the impossible event, and $S$ itself is the certain event. Two events are mutually exclusive, or disjoint, when they have no outcome in common: $A \cap B = \varnothing$. "Sum 7" and "doubles" are mutually exclusive, since a double sums to an even number. "Never smoked" and "currently smokes" are mutually exclusive for any adult.

Two identities of set algebra, De Morgan's laws, are used constantly:

$$(A \cup B)^c = A^c \cap B^c, \qquad (A \cap B)^c = A^c \cup B^c.$$

The first says that "not ($A$ or $B$)" is "neither $A$ nor $B$"; the second, that "not both" is "at least one fails." Both follow by checking that an outcome belongs to one side exactly when it belongs to the other. For the first: an outcome is in $(A \cup B)^c$ exactly when it is not in $A \cup B$, that is, when it is in neither $A$ nor $B$, that is, when it is in both $A^c$ and $B^c$. For the second: an outcome is in $(A \cap B)^c$ exactly when it is not in both $A$ and $B$, that is, when it is outside $A$ or outside $B$, that is, when it is in $A^c \cup B^c$.

Events, then, are sets. The next section says what number each one gets.

What a probability is

A probability assigns to each event a number between 0 and 1 that measures how likely it is. Two interpretations give the numbers their meaning.

Equally likely outcomes. Suppose the sample space is finite and there is no reason to favor one outcome over another, as with fair dice or a draw that gives every adult the same chance. Then the probability of an event is the share of outcomes it contains:

$$P(A) = \frac{\text{number of outcomes in } A}{\text{number of outcomes in } S}.$$

For two dice, $P(\text{sum } 7) = 6/36 = 1/6$. For a random adult, $P(H) = 2{,}783/5{,}107 = 0.5449$. So the probability of hypertension for a randomly drawn adult is the proportion of the population with hypertension. This is the link between probability and the descriptive statistics of Descriptive Statistics. It is also how probability enters every later unit of the course: a population proportion is the probability that a randomly sampled member has the characteristic.

Long-run relative frequency. If the experiment is repeated many times independently, the share of repetitions in which $A$ occurs settles toward $P(A)$. Drawing adults one at a time with replacement, the running share with hypertension wanders widely at first and then closes in on 0.5449.

The share of hypertensive adults in the first n draws, for five independent sequences of draws with replacement from the 5,107 NHANES adults. Notice how wildly the share swings over the first few draws, between 0 and 1. By a thousand draws every sequence is within a few points of the population proportion 0.5449 (dashed line), and by ten thousand within one point.
The share of hypertensive adults in the first n draws, for five independent sequences of draws with replacement from the 5,107 NHANES adults. Notice how wildly the share swings over the first few draws, between 0 and 1. By a thousand draws every sequence is within a few points of the population proportion 0.5449 (dashed line), and by ten thousand within one point.

How fast does it close in? Over 30 independent sequences of draws, the median distance between the running share and 0.5449 was 0.035 after 100 draws.

Example (a hundred times the draws). After 10,000 draws, a hundred times as many, the running share is about a tenth as far from 0.5449 as after 100 draws, not a hundredth. In this experiment the median distance was 0.0085 after 1,000 draws and 0.003 after 10,000. It shrinks roughly in proportion to $1/\sqrt{n}$, the rate that the standard error $\sqrt{p(1-p)/n}$ of the normal approximation predicts. A hundred times the draws buys only ten times the accuracy.

These distances are results of one seeded experiment. The general statement of the convergence is the law of large numbers: for every margin $\varepsilon > 0$, the probability that the share after $n$ independent draws differs from $P(A)$ by more than $\varepsilon$ tends to 0 as $n$ grows. It is not proved in this article, because its statement needs the random variables of Random Variables, Expectation and Variance. Moment Generating Functions and Slutsky's Theorem proves it from Chebyshev's inequality, as Grinstead and Snell (1997, §8.1, Theorem 8.2) do. The Laws of Large Numbers proves stronger versions, among them one in which the share converges to $P(A)$ with probability 1. The statement above is convergence in probability, one of the four modes of convergence that Convergence in Distribution and the Proof of the Central Limit Theorem defines and compares, with every implication between them proved.

Neither interpretation serves as a definition for every case. Many events have no equally likely outcomes, and many cannot be repeated. Modern probability therefore defines a probability by the properties it must have, and lets either interpretation, or a model, supply the numbers.

The axioms

Here is the idea in one sentence: whatever probabilities mean, they must never be negative, must give the certain event 1, and must add up correctly over events that cannot happen together.

The formal version. A probability on a sample space $S$ is a function $P$ that assigns a number $P(A)$ to each event $A$ and satisfies three axioms:

  1. Nonnegativity. $P(A) \ge 0$ for every event $A$.
  2. Normalization. $P(S) = 1$.
  3. Additivity. If $A_1, A_2, \ldots$ are mutually exclusive (no two share an outcome), then $$P(A_1 \cup A_2 \cup \cdots) = P(A_1) + P(A_2) + \cdots.$$

This axiomatic approach is due to Kolmogorov (1933). The third axiom is stated for a finite or an infinite sequence of events. For a finite sample space, as in every example of this article, finite sequences are all that is ever needed.

The axioms say nothing about where the numbers come from. Equally likely outcomes satisfy them:

  • counts are nonnegative;
  • $S$ contains all the outcomes;
  • the count of a union of disjoint sets is the sum of their counts.

So do long-run relative frequencies, and so does any proportion of a finite population. Everything below is proved from the three axioms alone, so it holds for every one of these interpretations at once.

Rules proved from the axioms

Three such short statements are enough to prove every rule used to combine events. Each rule below is proved from the axioms and checked on the dice or the NHANES adults, and together they answer the opening question.

The complement rule

$$P(A^c) = 1 - P(A).$$

Proof. $A$ and $A^c$ are mutually exclusive and their union is $S$. By additivity and normalization, $P(A) + P(A^c) = P(S) = 1$. $\square$

Two consequences follow at once. Taking $A = S$, whose complement is $\varnothing$, gives $P(\varnothing) = 1 - 1 = 0$. And since $P(A^c) \ge 0$ by nonnegativity, $P(A) = 1 - P(A^c) \le 1$: no probability exceeds 1, a fact the axioms do not state but imply.

Example (a common misstatement: mutually exclusive means $P(A \cap B) = 0$). Mutually exclusive events are sometimes described by the condition $P(A \cap B) = 0$. The definition is $A \cap B = \varnothing$. It implies $P(A \cap B) = P(\varnothing) = 0$, but the converse fails. Take the sample space $S = \{a, b, c\}$ with probabilities $1/2$, $1/2$ and $0$ for the three outcomes, which satisfy the axioms, and the events $A = \{a, c\}$ and $B = \{b, c\}$. Then $A \cap B = \{c\}$ is not empty, so the events are not mutually exclusive, yet $P(A \cap B) = 0$. In the finite populations of this article every outcome has positive probability, so there the two conditions agree. In the continuous models of The Normal Distribution, where every single value has probability 0, they do not.

The complement rule is the standard route to "at least one" questions, which are hard to count directly and easy to count through their complement, "none." For two dice, "at least one six" has complement "no six," which happens in $5 \times 5 = 25$ of the 36 outcomes, so

$$P(\text{at least one six}) = 1 - \frac{25}{36} = \frac{11}{36}.$$

Back to the opening question. In the NHANES population, 1,490 adults have none of the three conditions, so the probability of at least one is $1 - 1{,}490/5{,}107 = 1 - 0.2918 = 0.7082$, the value found above by counting.

Monotonicity

If every outcome of $A$ is also in $B$ ($A \subseteq B$), then $P(A) \le P(B)$.

Proof. $B$ is the union of the disjoint events $A$ and $B \cap A^c$ (the outcomes of $B$ that are not in $A$). By additivity, $P(B) = P(A) + P(B \cap A^c) \ge P(A)$, since the second term is nonnegative. $\square$

An intersection is contained in each of its events, so $P(A \cap B) \le \min\{P(A), P(B)\}$; a union contains each of its events, so $P(A \cup B) \ge \max\{P(A), P(B)\}$. The share of adults with both hypertension and diabetes, 0.1204, is below the share with diabetes, 0.1521, as it must be.

The addition rule

For any two events,

$$P(A \cup B) = P(A) + P(B) - P(A \cap B).$$

The plan of the proof is to cut the union into pieces that do not overlap, so that the third axiom can add them.

Proof. Split $A \cup B$ into three disjoint pieces: the outcomes in $A$ only ($A \cap B^c$), in $B$ only ($A^c \cap B$), and in both ($A \cap B$). By additivity,

$$P(A \cup B) = P(A \cap B^c) + P(A^c \cap B) + P(A \cap B).$$

$A$ itself is the disjoint union of $A \cap B^c$ and $A \cap B$, so by additivity $P(A) = P(A \cap B^c) + P(A \cap B)$, that is, $P(A \cap B^c) = P(A) - P(A \cap B)$. In the same way $B$ is the disjoint union of $A^c \cap B$ and $A \cap B$, so $P(A^c \cap B) = P(B) - P(A \cap B)$. Substituting,

$$P(A \cup B) = P(A) - P(A \cap B) + P(B) - P(A \cap B) + P(A \cap B) = P(A) + P(B) - P(A \cap B). \qquad \square$$

The subtracted term corrects for the outcomes counted twice, once in $P(A)$ and once in $P(B)$. When $A$ and $B$ are mutually exclusive, $P(A \cap B) = P(\varnothing) = 0$, and the rule reduces to the third axiom.

Example (a common misstatement: the addition rule as an axiom). The general addition rule $P(A \cup B) = P(A) + P(B) - P(A \cap B)$ is sometimes listed as the third axiom. It is a theorem, proved above from the axioms. The axiom is its special case for mutually exclusive events, $P(A \cup B) = P(A) + P(B)$, stated for a whole sequence of events.

For two dice, "sum 7" and "doubles" are mutually exclusive, so $P(\text{sum 7 or doubles}) = 1/6 + 1/6 = 1/3$. "First die even" and "sum 7" overlap in the three outcomes $(2,5)$, $(4,3)$ and $(6,1)$, so

$$P(\text{first even or sum } 7) = \frac{1}{2} + \frac{1}{6} - \frac{1}{12} = \frac{7}{12}.$$

Example (what the two shares alone say about the union). Knowing only that $P(H) = 0.5449$ and $P(O) = 0.4110$, and nothing about how many adults have both, $P(H \cup O)$ can be anywhere from 0.5449 to 0.9559. By monotonicity the union is at least as probable as its larger event, so at least 0.5449, which happens if every obese adult is hypertensive. Dropping the subtracted term can only raise the addition rule's right side, so the union is at most $0.5449 + 0.4110 = 0.9559$, which happens if no adult has both. The overlap decides where in that range the answer falls.

In NHANES the overlap is 0.2655, and

$$P(H \cup O) = 0.5449 + 0.4110 - 0.2655 = 0.6904,$$

which agrees with the direct count of 3,526 adults with at least one of the two.

Inclusion–exclusion for three events

The opening question involves three conditions. Applying the addition rule twice extends it to three events. Write $A \cup B \cup C$ as $(A \cup B) \cup C$:

$$P(A \cup B \cup C) = P(A \cup B) + P(C) - P\big((A \cup B) \cap C\big).$$

The last intersection distributes, $(A \cup B) \cap C = (A \cap C) \cup (B \cap C)$, and the addition rule applies to it as well, with $(A \cap C) \cap (B \cap C) = A \cap B \cap C$:

$$P\big((A \cap C) \cup (B \cap C)\big) = P(A \cap C) + P(B \cap C) - P(A \cap B \cap C).$$

Substituting both expansions,

$$P(A \cup B \cup C) = P(A) + P(B) + P(C) - P(A \cap B) - P(A \cap C) - P(B \cap C) + P(A \cap B \cap C).$$

The 5,107 NHANES adults by hypertension (H), obesity (O) and diagnosed diabetes (D), with the number of adults in each of the eight regions. The totals beside the circle labels count every adult in the circle. Notice the 361 adults in the center, who lie in all three circles, and the 1,490 outside every circle. The circles show which regions exist, not their sizes.
The 5,107 NHANES adults by hypertension (H), obesity (O) and diagnosed diabetes (D), with the number of adults in each of the eight regions. The totals beside the circle labels count every adult in the circle. Notice the 361 adults in the center, who lie in all three circles, and the 1,490 outside every circle. The circles show which regions exist, not their sizes.

The figure shows why the signs alternate.

  • An adult in exactly one circle is counted once by the three single terms.
  • An adult in exactly two circles is counted twice by the singles, and removed once by the one pairwise term that contains them.
  • An adult in all three is counted three times by the singles, removed three times by the pairs, and restored once by the triple term.

Each adult in the union is counted exactly once. In counts for the NHANES population,

$$2{,}783 + 2{,}099 + 777 - 1{,}356 - 615 - 432 + 361 = 3{,}617,$$

and $3{,}617/5{,}107 = 0.7082$, the probability of at least one condition, now reached by rule.

Inclusion–exclusion for any number of events

The general rule for $n$ events alternates in the same way. Add the single probabilities, subtract those of all pairs, add those of all triples, and so on, ending with $(-1)^{n+1} P(A_1 \cap \cdots \cap A_n)$.

Theorem (inclusion–exclusion). For any events $A_1, \ldots, A_n$,

$$P(A_1 \cup \cdots \cup A_n) = \sum_{k=1}^{n} (-1)^{k+1} \sum_{i_1 < i_2 < \cdots < i_k} P(A_{i_1} \cap A_{i_2} \cap \cdots \cap A_{i_k}),$$

where the inner sum runs over all the ways of choosing $k$ of the $n$ events.

In words, the intersection of each collection of one or more of the events appears exactly once, with a plus sign if the collection has an odd number of events and a minus sign if it has an even number. This is Theorem 3.8 of Grinstead and Snell (1997). The plan of the proof is the step from two events to three, repeated: peel off the last event with the addition rule, and apply the rule for $n - 1$ events to the two unions that remain.

Proof. By induction on $n$. For $n = 1$ the formula reads $P(A_1) = P(A_1)$, and for $n = 2$ it is the addition rule. Let $n \ge 3$, and suppose the formula holds for every collection of $n - 1$ events. Write $B = A_1 \cup \cdots \cup A_{n-1}$. By the addition rule,

$$P(A_1 \cup \cdots \cup A_n) = P(B \cup A_n) = P(B) + P(A_n) - P(B \cap A_n).$$

An outcome is in $B \cap A_n$ exactly when it is in $A_n$ and in at least one of $A_1, \ldots, A_{n-1}$. So $B \cap A_n$ is the union of the $n - 1$ events $C_i = A_i \cap A_n$, for $i = 1, \ldots, n - 1$, and an intersection of several of them is $C_{i_1} \cap \cdots \cap C_{i_k} = A_{i_1} \cap \cdots \cap A_{i_k} \cap A_n$. The induction hypothesis applies to $B$, a union of $n - 1$ events, and to $B \cap A_n$, another union of $n - 1$ events:

$$P(B) = \sum_{k=1}^{n-1} (-1)^{k+1} \sum_{i_1 < \cdots < i_k \le n-1} P(A_{i_1} \cap \cdots \cap A_{i_k}),$$

$$P(B \cap A_n) = \sum_{k=1}^{n-1} (-1)^{k+1} \sum_{i_1 < \cdots < i_k \le n-1} P(A_{i_1} \cap \cdots \cap A_{i_k} \cap A_n).$$

Substitute both into the addition rule and sort the terms by the collection of events that is intersected.

  • A collection of $k$ events that does not include $A_n$ appears once, in $P(B)$, with the sign $(-1)^{k+1}$.
  • The collection consisting of $A_n$ alone appears once, as the term $P(A_n)$, with a plus sign, which is $(-1)^{1+1}$.
  • A collection of $A_n$ and $k \ge 1$ of the other events has $k + 1$ events. It appears once, in $-P(B \cap A_n)$, with the sign $-(-1)^{k+1} = (-1)^{(k+1)+1}$.

Every collection of one or more of the $n$ events is of exactly one of these three kinds. So each appears exactly once, with the sign $(-1)^{m+1}$ for a collection of $m$ events, which is the formula for $n$ events. $\square$

For a finite sample space there is a second proof, by counting, which explains the alternating signs. In a finite sample space every event is the disjoint union of its single outcomes, so by additivity its probability is the sum of the probabilities of its outcomes. Take an outcome that lies in exactly $m \ge 1$ of the events. It lies in an intersection of $k$ of the events exactly when all $k$ are among those $m$, which happens for $\binom{m}{k}$ of the collections of size $k$, and for none when $k > m$. So on the right-hand side its probability is counted

$$\binom{m}{1} - \binom{m}{2} + \cdots + (-1)^{m+1}\binom{m}{m} = 1 - \sum_{k=0}^{m} (-1)^k \binom{m}{k} = 1 - (1 - 1)^m = 1$$

time in all, by the binomial theorem. An outcome that lies in none of the events is in no intersection and is not counted. So the right-hand side is the sum of the probabilities of the outcomes of the union, each counted once, which is the left-hand side. The three bullet points above were this count for $m = 1, 2, 3$. The script checks the formula by direct count for up to five events of the NHANES adults, and Problem 5 below works a case with four.

Boole's inequality and the Bonferroni correction

The opening's naive sum, 1.108, was wrong as an answer. Is it good for anything? It is an upper bound, and in some settings a useful one.

Dropping the subtracted terms can only increase the right-hand side of the addition rule, so $P(A \cup B) \le P(A) + P(B)$. The same bound holds for any number of events:

$$P(A_1 \cup A_2 \cup \cdots \cup A_n) \le P(A_1) + P(A_2) + \cdots + P(A_n).$$

Proof. By induction on $n$. The case $n = 1$ is an equality. Let $n \ge 2$ and suppose the bound holds for $n - 1$ events. Apply the two-event inequality to $A_1 \cup \cdots \cup A_{n-1}$ and $A_n$, and then the induction hypothesis to the first term:

$$P(A_1 \cup \cdots \cup A_n) \le P(A_1 \cup \cdots \cup A_{n-1}) + P(A_n) \le \sum_{i=1}^{n-1} P(A_i) + P(A_n). \qquad \square$$

This is Boole's inequality, also called the union bound. For the three conditions it gives $P(H \cup O \cup D) \le 1.1081$, which is true and useless. Its value lies elsewhere: it needs nothing but the individual probabilities, and it is close to exact when the events rarely overlap.

That is the situation in Multiple Comparisons and the Bonferroni Correction. If $m$ tests are each run at level $\alpha/m$, the event "at least one false rejection" is a union of $m$ events, each of probability at most $\alpha/m$, so its probability is at most $m \times \alpha/m = \alpha$, whatever the dependence between the tests.

The rules so far hold for any events. The next property holds only for some pairs, and it is what makes probabilities multiply.

Independence

Two events are independent when

$$P(A \cap B) = P(A)\,P(B).$$

In words, the probability of both is the product of the separate probabilities. The next article shows that, when $P(B) > 0$, this is the same as saying that learning $B$ occurred leaves the probability of $A$ unchanged.

The product form is used here as the definition because it is symmetric in $A$ and $B$ and makes sense even when one of the events has probability 0.

Example (a common misstatement: independence defined by $P(A \mid B) = P(A)$). Independence is often defined by the condition that the probability of $A$ given $B$ equals the probability of $A$. That condition is defined only when $P(B) > 0$, so as a definition it leaves out the events of probability 0. The product rule covers every case. Grinstead and Snell (1997, §4.1) define independence through conditional probabilities, with a separate clause for events of probability 0, and prove that their definition is equivalent to the product rule (Theorem 4.1).

Example (two events that look related). Roll two fair dice. The events "first die even" and "sum 7" are independent, although the sum involves the first die. Independence is a property of the probabilities, not of how the events look, and here

$$P(\text{first even} \cap \text{sum } 7) = \frac{3}{36} = \frac{1}{12} = \frac{1}{2} \times \frac{1}{6}.$$

The reason is that whatever the first die shows, exactly one face of the second die makes the sum 7. "Doubles" and "at least one six," by contrast, are not independent. $P(\text{doubles} \cap \text{a six}) = 1/36$, the single outcome $(6,6)$, while $P(\text{doubles})\,P(\text{a six}) = (1/6)(11/36) = 11/216$.

In a real population, exact independence is rare, and what matters is how far from independence two events are. For the NHANES conditions:

Events $P(A \cap B)$ $P(A)P(B)$ Ratio
Hypertension, obesity 0.2655 0.2240 1.185
Hypertension, diabetes 0.1204 0.0829 1.452
Obesity, diabetes 0.0846 0.0625 1.353

Each pair occurs together more often than independence would predict: hypertension and diabetes about 45% more often. The ratio in the last column is one way to measure association. Relative Risk and the Odds Ratio develops the two measures epidemiology uses instead.

Complements of independent events

If $A$ and $B$ are independent, so are $A$ and $B^c$, and therefore also $A^c$ and $B^c$.

Proof. $A$ is the disjoint union of $A \cap B$ and $A \cap B^c$, so

$$P(A \cap B^c) = P(A) - P(A \cap B) = P(A) - P(A)P(B) = P(A)\,[1 - P(B)] = P(A)\,P(B^c).$$

So $A$ and $B^c$ are independent. For the second statement, $B^c$ is the disjoint union of $A \cap B^c$ and $A^c \cap B^c$, so, using the independence of $A$ and $B^c$ just proved,

$$P(A^c \cap B^c) = P(B^c) - P(A \cap B^c) = P(B^c) - P(A)\,P(B^c) = [1 - P(A)]\,P(B^c) = P(A^c)\,P(B^c). \qquad \square$$

Several events

Three events $A$, $B$, $C$ are mutually independent when every pair is independent and, in addition,

$$P(A \cap B \cap C) = P(A)\,P(B)\,P(C).$$

The last condition does not follow from the pairs. Toss two fair coins and let $A$ be "first is heads," $B$ "second is heads" and $C$ "the two agree."

  • Each event has probability $1/2$.
  • Each pair intersects in a single outcome of probability $1/4 = (1/2)(1/2)$, so the events are pairwise independent.
  • But $A \cap B \cap C$ is "both heads," of probability $1/4$, not $1/8$.

Knowing any two of the events determines the third. For $n$ events, mutual independence requires the product rule for every subcollection of two or more. It is the assumption behind the binomial distribution and behind most sampling models of the course, where the observations of a random sample are taken to be mutually independent.

Complements of mutually independent events multiply as well.

Proposition. If $A$, $B$ and $C$ are mutually independent, then $P(A^c \cap B^c \cap C^c) = P(A^c)\,P(B^c)\,P(C^c)$.

Proof. Write $a$, $b$, $c$ for the three probabilities. By De Morgan's law, $A^c \cap B^c \cap C^c = (A \cup B \cup C)^c$. By the complement rule, inclusion–exclusion for three events and the product rule for each pair and for the triple,

$$P(A^c \cap B^c \cap C^c) = 1 - (a + b + c - ab - ac - bc + abc) = (1 - a)(1 - b)(1 - c). \qquad \square$$

The last equality is the expansion of the product. This is what licenses a common calculation. If each of three mutually independent tests has a probability 0.95 of not raising a false alarm, the probability that none does is $0.95^3 = 0.857$, and the probability of at least one false alarm is $1 - 0.857 = 0.143$. Boole's inequality would have bounded the same probability by $3 \times 0.05 = 0.15$. The exact value is a little smaller, because independent false alarms can occur together.

Independence is not mutual exclusivity

The two properties are easily confused, because both describe events that "have nothing to do with each other." In fact they are close to opposites.

Example (never smokers and current smokers). In the NHANES population, 59.1% of the adults have never smoked and 17.8% currently smoke. The events "never smoked" and "currently smokes" are not independent, and the reason is general.

Proposition. If $A$ and $B$ are mutually exclusive and both have positive probability, they are not independent.

Proof. Mutual exclusivity gives $P(A \cap B) = P(\varnothing) = 0$, while $P(A)\,P(B) > 0$. The product rule fails. $\square$

Mutually exclusive events are, in fact, as dependent as two events can be: learning that one occurred makes the other impossible. Smoking status in the NHANES population is a partition of the adults into three mutually exclusive groups that together make up $S$: 59.1% have never smoked, 23.1% are former smokers and 17.8% currently smoke, shares that sum to 1. The probability that an adult is both a never smoker and a current smoker is 0, while the product of the two probabilities is $0.5910 \times 0.1776 = 0.1050$. Two events with positive probability can be independent only if they can occur together.

The dice give the same lesson: "sum 7" and "doubles" are mutually exclusive, each with probability $1/6$, so they are dependent, while "first even" and "sum 7," which overlap, are independent.

A note on the population

The probabilities in this article are exact proportions of a finite list of 5,107 examined adults, which is what makes it possible to check every rule by counting. They are not estimates for the United States. NHANES deliberately oversamples some groups, and national estimates require the survey's sampling weights, which this course sets aside, as the earlier units did. Data Collection and Sampling describes the survey's stratified, clustered design and the groups it samples at higher rates. The rules themselves do not depend on this: they hold for any probability, whether it comes from counting a finite population, from a model or from long-run frequency.

Summary

Rule Statement
Axioms $P(A) \ge 0$; $P(S) = 1$; $P(\bigcup A_i) = \sum P(A_i)$ for mutually exclusive $A_i$
Complement $P(A^c) = 1 - P(A)$; $P(\varnothing) = 0$; $P(A) \le 1$
Monotonicity $A \subseteq B \Rightarrow P(A) \le P(B)$
Addition $P(A \cup B) = P(A) + P(B) - P(A \cap B)$
Inclusion–exclusion $P(A \cup B \cup C) = \sum P(\text{single}) - \sum P(\text{pairs}) + P(A \cap B \cap C)$; for $n$ events, each intersection of $k$ events with the sign $(-1)^{k+1}$
Boole's inequality $P(\bigcup A_i) \le \sum P(A_i)$
Independence $P(A \cap B) = P(A)P(B)$; then also $A$, $B^c$ and $A^c$, $B^c$
Mutually exclusive $A \cap B = \varnothing$; with positive probabilities, never independent

Worked problems

These problems are posed on the article's own examples, the two dice and the counts of the 5,107 NHANES adults, and each is solved from the rules proved above; none is taken from the course text. The script recomputes every number from the data.

Problem 1. Of the 5,107 adults, 2,783 have hypertension, 2,099 are obese and 777 have diabetes; 1,356 have hypertension and obesity, 615 hypertension and diabetes, 432 obesity and diabetes, and 361 all three. Find the number of adults with exactly one, exactly two and all three of the conditions, and the probability of each for a randomly chosen adult.

Exactly three. 361 adults, by the data.

Exactly two. The 1,356 adults with hypertension and obesity include the 361 with all three, so $1{,}356 - 361 = 995$ have those two conditions and not diabetes. In the same way $615 - 361 = 254$ have hypertension and diabetes only, and $432 - 361 = 71$ have obesity and diabetes only. The three groups are mutually exclusive, so exactly two conditions are present in

$$995 + 254 + 71 = 1{,}320 \text{ adults.}$$

Exactly one. By inclusion–exclusion, the number with at least one condition is $2{,}783 + 2{,}099 + 777 - 1{,}356 - 615 - 432 + 361 = 3{,}617$. Those adults have exactly one, exactly two or all three, so exactly one condition is present in

$$3{,}617 - 1{,}320 - 361 = 1{,}936 \text{ adults.}$$

As a check, count each of the three groups directly. The adults with hypertension only are those with hypertension, less those who also have obesity or diabetes. By the addition rule for counts, the latter number is $1{,}356 + 615 - 361 = 1{,}610$, so hypertension only has $2{,}783 - 1{,}610 = 1{,}173$ adults. Obesity only has $2{,}099 - (1{,}356 + 432 - 361) = 672$, and diabetes only has $777 - (615 + 432 - 361) = 91$. The sum is $1{,}173 + 672 + 91 = 1{,}936$.

The probabilities. Dividing by 5,107:

Number of conditions Adults Probability
0 1,490 0.2918
1 1,936 0.3791
2 1,320 0.2585
3 361 0.0707

The first row is the complement of the union, $5{,}107 - 3{,}617 = 1{,}490$. The four events are mutually exclusive and exhaust the population, and the counts sum to 5,107. The four rounded probabilities sum to 1.0001, the excess being rounding.

Problem 2. For any three events, write $S_1 = P(A) + P(B) + P(C)$ and $S_2 = P(A \cap B) + P(A \cap C) + P(B \cap C)$. Show that $S_1 - S_2 \le P(A \cup B \cup C) \le S_1$, and evaluate both bounds for hypertension, obesity and diabetes.

By inclusion–exclusion for three events, $P(A \cup B \cup C) = S_1 - S_2 + P(A \cap B \cap C)$. The last term is nonnegative by the first axiom, so $P(A \cup B \cup C) \ge S_1 - S_2$. The upper bound is Boole's inequality for three events, proved above. So the single probabilities bound the union from above, and the singles and pairs together bound it from below. For the NHANES conditions, in counts,

$$S_1 = \frac{2{,}783 + 2{,}099 + 777}{5{,}107} = \frac{5{,}659}{5{,}107} = 1.1081, \qquad S_2 = \frac{1{,}356 + 615 + 432}{5{,}107} = \frac{2{,}403}{5{,}107} = 0.4705,$$

so

$$0.6376 = \frac{3{,}256}{5{,}107} \le P(H \cup O \cup D) \le 1.1081.$$

The true value is $3{,}617/5{,}107 = 0.7082$. The lower bound misses it by exactly the triple term, $361/5{,}107 = 0.0707$. Here the lower bound is informative and the upper one is not, because the three conditions overlap heavily.

Problem 3. Two fair dice are rolled. (a) Is "the first die shows 3" independent of "the sum is 7"? Of "the sum is 8"? (b) Let $A$ be "the first die is odd," $B$ "the second die is odd" and $C$ "the sum is odd." Are $A$, $B$ and $C$ pairwise independent? Mutually independent?

(a) "First die 3" has the six outcomes $(3, 1), \ldots, (3, 6)$, so its probability is $6/36 = 1/6$. "Sum 7" has probability $1/6$, and the two events share the single outcome $(3, 4)$, of probability $1/36 = (1/6)(1/6)$. They are independent. "Sum 8" has the five outcomes $(2,6), (3,5), (4,4), (5,3), (6,2)$, so its probability is $5/36$. It shares the single outcome $(3, 5)$ with "first die 3," of probability $1/36$, while the product is $(1/6)(5/36) = 5/216$. Since $1/36 = 6/216 \ne 5/216$, the events are not independent. The difference between the two sums is that a sum of 7 can be completed from every value of the first die, and a sum of 8 cannot: if the first die shows 1, a sum of 8 is impossible.

(b) Each die is odd in 3 of its 6 faces, so $P(A) = P(B) = 1/2$. The sum is odd exactly when one die is odd and the other even, which happens in $3 \times 3 + 3 \times 3 = 18$ outcomes, so $P(C) = 1/2$.

  • $A \cap B$: both dice odd, $3 \times 3 = 9$ outcomes, probability $1/4$.
  • $A \cap C$: first die odd and sum odd, that is, first odd and second even, 9 outcomes, probability $1/4$.
  • $B \cap C$: second odd and first even, 9 outcomes, probability $1/4$.

Each equals $(1/2)(1/2)$, so the three events are pairwise independent. They are not mutually independent: if both dice are odd the sum is even, so $A \cap B \cap C = \varnothing$ and $P(A \cap B \cap C) = 0$, not $1/8$. This is the pattern of the two coins above, on a different sample space.

Problem 4. Adults are drawn from the NHANES population one at a time, with replacement. (a) Find the probability that at least one of 5 draws is an adult with diabetes. (b) Find the smallest number of draws for which that probability is at least 0.95.

(a) The sample space is the set of ordered lists of 5 adults, $5{,}107^5$ equally likely outcomes. The complement of "at least one has diabetes" is "none has." There are $5{,}107 - 777 = 4{,}330$ adults without diabetes, so $4{,}330^5$ of the lists contain none with diabetes. By the complement rule,

$$P(\text{at least one}) = 1 - \left(\frac{4{,}330}{5{,}107}\right)^5 = 1 - 0.84786^5 = 1 - 0.4381 = 0.5619.$$

Boole's inequality bounds the same probability by $5 \times 777/5{,}107 = 0.7607$. That is true but loose, because lists with two or more diabetic adults are counted more than once in the sum.

(b) For $n$ draws the same count gives $1 - (4{,}330/5{,}107)^n$. This is at least 0.95 exactly when $(4{,}330/5{,}107)^n \le 0.05$. Taking logarithms, and dividing by $\ln(4{,}330/5{,}107)$, which is negative and so reverses the inequality,

$$n \ge \frac{\ln 0.05}{\ln (4{,}330/5{,}107)} = 18.15.$$

The smallest whole number is $n = 19$. Checking: 18 draws give 0.9487, just short, and 19 draws give 0.9565.

Problem 5. Let $F$ be the event that the adult is a former smoker; 1,182 adults are. The counts of the intersections of $F$ with the other three events are: $H \cap F$ 776, $O \cap F$ 553, $D \cap F$ 271, $H \cap O \cap F$ 394, $H \cap D \cap F$ 228, $O \cap D \cap F$ 167, and $H \cap O \cap D \cap F$ 145. Find the probability that a randomly chosen adult has at least one of the three conditions or is a former smoker.

Inclusion–exclusion for four events has $4$ single terms, $\binom{4}{2} = 6$ pairs, $\binom{4}{3} = 4$ triples and one quadruple. In counts:

Collections of Counts Sum Sign
one event 2,783, 2,099, 777, 1,182 6,841 $+$
two events 1,356, 615, 776, 432, 553, 271 4,003 $-$
three events 361, 394, 228, 167 1,150 $+$
four events 145 145 $-$

So the union has

$$6{,}841 - 4{,}003 + 1{,}150 - 145 = 3{,}843 \text{ adults,}$$

and the probability is $3{,}843/5{,}107 = 0.7525$. The script counts the same 3,843 adults directly. By the complement rule, $5{,}107 - 3{,}843 = 1{,}264$ adults, a share of 0.2475, have none of the three conditions and are not former smokers. The union of the three conditions alone had 3,617 adults, so adding $F$ brings in $3{,}843 - 3{,}617 = 226$ former smokers who have none of the three conditions.

What we have learned

Three axioms are enough to prove every rule for combining events. Inclusion–exclusion corrects the naive sum for overlaps: 0.708 of the NHANES adults, not 1.108, have at least one of the three conditions. The naive sum survives as Boole's inequality, the bound behind the Bonferroni correction. Independence means that probabilities multiply; it is a fact about the numbers, not about how events look, and disjoint events with positive probability are never independent.

The NHANES conditions are far from independent: hypertension and diabetes occur together 45% more often than independence predicts. How much learning one condition changes the chance of another is measured by a conditional probability. Conditional Probability and the Law of Total Probability defines it and finds, for example, that the probability of diabetes is 0.2210 among the adults with hypertension and 0.0697 among the others.

In Python

import itertools
from fractions import Fraction

S = list(itertools.product(range(1, 7), repeat=2))      # two dice
P = lambda ev: Fraction(sum(1 for w in S if ev(w)), len(S))
seven = lambda w: w[0] + w[1] == 7
even1 = lambda w: w[0] % 2 == 0
print(P(lambda w: 6 in w))                             # 11/36
print(P(lambda w: even1(w) and seven(w)), P(even1) * P(seven))  # 1/12 1/12

# inclusion-exclusion from the NHANES counts
H, O, D, HO, HD, OD, HOD, N = 2783, 2099, 777, 1356, 615, 432, 361, 5107
print((H + O + D - HO - HD - OD + HOD) / N)            # 0.7082

Every number in this article is computed by tools/experiments/applied-statistics/rules-of-probability.py in the site's repository, from the NHANES files loaded by probdata.py. Probability Fundamentals checks the same rules in pandas, with events as Boolean masks on a table, and shows how missing values can silently turn into "not obese."

References

  • Grinstead, C. M., and Snell, J. L. (1997). Introduction to Probability (2nd rev. ed.), §1.2 (Theorems 1.1 to 1.4), §3.2 (Theorem 3.8), §4.1 (Definition 4.1, Theorem 4.1) and §8.1 (Theorem 8.2, the law of large numbers). 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
  • National Center for Health Statistics (2020). National Health and Nutrition Examination Survey 2017–2018: DEMO_J, BPX_J, BPQ_J, BMX_J, DIQ_J and SMQ_J data files. Centers for Disease Control and Prevention. https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2017 record · 109 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, 23 Nov 2026 · 8 revisions