BIOSTATISTICS • PROBABILITY & DISTRIBUTIONS

Basic Probability Rules — Apply basic probability rules and conditional probability

Master the foundational rules that govern uncertainty in biological and health sciences research.

Historical Context & Motivation

The formal study of probability emerged not from the laboratory bench but from the gaming table. In the mid-seventeenth century, a correspondence between Blaise Pascal and Pierre de Fermat laid the groundwork for quantifying uncertainty, addressing a seemingly simple question about how to divide stakes in an interrupted game of chance. Over the following centuries, mathematicians and scientists transformed these intuitions into a rigorous axiomatic framework that now underpins modern biostatistics—from calculating the likelihood that a diagnostic test yields a false positive to estimating the probability that a new pharmaceutical intervention outperforms a placebo.

In the biological and health sciences, probability is not merely a mathematical abstraction; it is the language through which we express the inherent variability of living systems. Whether we are modeling disease transmission in an epidemiological study, assessing genetic risk factors, or interpreting the results of a randomized controlled trial, probability provides the scaffolding for principled inference under uncertainty. The rules we explore in this lesson—complementation, addition, multiplication, and conditional probability—form the essential toolkit that every biostatistician must internalize before advancing to distributions, hypothesis testing, and regression modeling.

1654
Pascal–Fermat Correspondence
Blaise Pascal and Pierre de Fermat exchange letters on the problem of points, establishing the combinatorial foundations of probability theory.
1763
Bayes' Theorem Published Posthumously
Thomas Bayes' essay, published by Richard Price, introduces the concept of inverse probability—reasoning from observed data back to underlying causes—a cornerstone of conditional probability.
1812
Laplace's Théorie Analytique
Pierre-Simon Laplace publishes a comprehensive treatise systematizing probability, introducing the classical definition of probability as the ratio of favorable to total equally likely outcomes.
1933
Kolmogorov's Axioms
Andrey Kolmogorov publishes Foundations of the Theory of Probability, providing the axiomatic foundation that unifies all modern probability theory.
1950s–present
Probability in Biostatistics
The rise of clinical trials, epidemiological cohort studies, and genomic research makes probability theory indispensable for evidence-based medicine and public health decision-making.

The central question that probability addresses in biostatistics is deceptively simple: given what we know about a biological system, how likely is a particular outcome? Answering this question rigorously requires a set of rules that govern how probabilities combine, complement one another, and condition upon new information. These rules, grounded in Kolmogorov's axioms, are the subject of this lesson.

Core Principles & Definitions

Before we can apply probability rules, we must establish the foundational vocabulary and axioms that structure the theory. A random experiment is any process whose outcome cannot be predicted with certainty—drawing a blood sample and measuring cholesterol, genotyping a patient, or observing whether a subject develops an adverse drug reaction. The sample space (denoted S or Ω) is the set of all possible outcomes, and an event is any subset of the sample space to which we can assign a probability. Kolmogorov's three axioms—non-negativity, normalization, and countable additivity—ensure that probabilities behave in a mathematically consistent manner.

1

Non-Negativity

For any event A, P(A) ≥ 0. Probabilities are never negative; the minimum probability is zero, indicating impossibility.
2

Normalization

The probability of the entire sample space is P(S) = 1. Something must happen; the total probability across all mutually exclusive and exhaustive outcomes sums to unity.
3

Additivity

For mutually exclusive events A and B (events that cannot occur simultaneously), P(A ∪ B) = P(A) + P(B). This extends to any countable collection of pairwise disjoint events.
4

Complement Rule

The probability that an event does not occur equals one minus the probability that it does: P(Aᶜ) = 1 − P(A). Often it is easier to compute the complement.
5

Conditional Probability

The probability of A given that B has occurred is P(A | B) = P(A ∩ B) / P(B), provided P(B) > 0. This formalizes the idea that new information updates our assessment of likelihood.
KEY TAKEAWAY
Think of probability as a budget of exactly one unit of "belief" that you must allocate across all possible outcomes. Just as a grant budget must account for every dollar without overspending, the total probability across mutually exclusive and exhaustive events must sum to exactly 1. The complement rule is like calculating how much funding remains after a line item is allocated—subtract from the total instead of tallying every remaining category. Conditional probability is analogous to re-budgeting after learning that certain expenditures are already committed: you redistribute the remaining probability over a restricted set of outcomes.

Visual Explanation — Venn Diagram of Probability Rules

Venn diagrams provide an intuitive geometric representation of set operations on events within a sample space. The following diagram illustrates the addition rule, the intersection, and the complement of events A and B within a bounded sample space S. Notice how the overlap region A ∩ B must be subtracted once when computing the union to avoid double-counting—this is the essence of the general addition rule.

The cyan circle represents event A and the violet circle represents event B. The pink-shaded overlap is the intersection A ∩ B. The region outside both circles but inside the rectangle is the complement (A ∪ B)ᶜ. Notice that naively summing P(A) + P(B) double-counts the intersection, hence the subtraction in the general addition rule.

When events A and B are mutually exclusive (disjoint), their circles do not overlap and A ∩ B = ∅, so the addition rule simplifies to P(A ∪ B) = P(A) + P(B). In biostatistics, mutual exclusivity arises naturally—for instance, a participant in a clinical trial cannot be simultaneously assigned to both the treatment and control groups. However, many events in health research are not mutually exclusive: a patient may have both hypertension and diabetes, so the events "has hypertension" and "has diabetes" can co-occur, making the full addition rule essential.

Mathematical Framework

We now formalize the probability rules introduced conceptually in previous sections. Each rule is derived directly from Kolmogorov's axioms or from the definition of conditional probability, and all are expressed in the notation standard across biostatistical practice.

COMPLEMENT RULE
P(Aᶜ) = 1 − P(A)
Where Aᶜ denotes the complement of event A (i.e., the event that A does not occur). Since A and Aᶜ are mutually exclusive and exhaustive, P(A) + P(Aᶜ) = 1 by the normalization axiom.
GENERAL ADDITION RULE
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
The subtraction of P(A ∩ B) corrects for double-counting outcomes that belong to both A and B. When A and B are mutually exclusive, P(A ∩ B) = 0 and the formula reduces to P(A ∪ B) = P(A) + P(B).
CONDITIONAL PROBABILITY
P(A | B) = P(A ∩ B) / P(B), P(B) > 0
P(A | B) is read "the probability of A given B." It represents the updated probability of A after learning that B has occurred. Geometrically, we restrict the sample space to B and ask what fraction of B is also in A.
MULTIPLICATION RULE
P(A ∩ B) = P(A | B) × P(B) = P(B | A) × P(A)
This is a direct rearrangement of the conditional probability definition. When A and B are independent—meaning P(A | B) = P(A)—the rule simplifies to P(A ∩ B) = P(A) × P(B).
Independence vs. Mutual Exclusivity
A common source of confusion: independence and mutual exclusivity are distinct properties. Two events are independent if the occurrence of one does not change the probability of the other (P(A | B) = P(A)). Two events are mutually exclusive if they cannot co-occur (P(A ∩ B) = 0). In fact, if two events with positive probability are mutually exclusive, they are necessarily dependent—knowing one occurred tells you the other did not.
LAW OF TOTAL PROBABILITY
P(A) = Σᵢ P(A | Bᵢ) × P(Bᵢ), where {B₁, B₂, …, Bₙ} partitions S
This law decomposes the probability of A across a partition of the sample space. In biostatistics, this is frequently used when stratifying by demographic subgroups or disease subtypes: compute the probability of interest within each stratum and then take a weighted average.

Conditional Probability in Depth — Diagnostic Testing

One of the most impactful applications of conditional probability in biostatistics is the evaluation of diagnostic tests. Every screening test—whether for HIV, cancer, or SARS-CoV-2—has a sensitivity (the probability of a positive test given the disease is present) and a specificity (the probability of a negative test given the disease is absent). However, clinicians and patients are usually interested in the positive predictive value (PPV)—the probability that the disease is truly present given a positive test result. This quantity depends not only on sensitivity and specificity but also on the prevalence (prior probability) of the disease in the tested population, a fact elegantly captured by Bayes' theorem.

This probability tree traces two levels of branching: first, whether disease is present (D+) or absent (D−), weighted by prevalence; second, whether the test is positive (T+) or negative (T−), weighted by sensitivity or specificity. The dashed violet lines trace how the positive predictive value (PPV) combines the TP and FP branches.
Key diagnostic test metrics expressed as conditional probabilities
MetricFormulaInterpretation
SensitivityP(T+ | D+)Probability of a positive test among those who truly have the disease. High sensitivity means few false negatives.
SpecificityP(T− | D−)Probability of a negative test among those who truly lack the disease. High specificity means few false positives.
PPVP(D+ | T+)Probability of disease given a positive test result. Heavily influenced by disease prevalence.
NPVP(D− | T−)Probability of no disease given a negative test result. Also depends on prevalence.
💡 The Base Rate Fallacy
Even a test with 99% sensitivity and 99% specificity can have a low PPV if the disease prevalence is very low. For example, if only 1 in 1,000 people in the population has the disease, a positive test result is more likely to be a false positive than a true positive. This counterintuitive result—known as the base rate fallacy—underscores why conditional probability and Bayes' theorem are critical for interpreting medical screening results.

Worked Example — Screening for a Rare Disease

Suppose a university health center screens 10,000 students for a metabolic disorder. The prevalence of the disorder in this population is 2% (P(D+) = 0.02). The screening test has a sensitivity of 95% and a specificity of 90%. We wish to find the probability that a student who tests positive actually has the disorder—that is, the positive predictive value (PPV).

Computing the PPV Using Bayes' Theorem
1
Step 1 — Identify Given ValuesWe are given: P(D+) = 0.02 (prevalence), P(T+ | D+) = 0.95 (sensitivity), P(T− | D−) = 0.90 (specificity). From these we derive: P(D−) = 1 − 0.02 = 0.98, and P(T+ | D−) = 1 − 0.90 = 0.10 (false positive rate).
P(D+) = 0.02, P(T+ | D+) = 0.95, P(T+ | D−) = 0.10
2
Step 2 — Apply the Multiplication Rule for Joint ProbabilitiesWe need P(T+ ∩ D+) and P(T+ ∩ D−). Using the multiplication rule: P(T+ ∩ D+) = P(T+ | D+) × P(D+) = 0.95 × 0.02 = 0.019. Similarly, P(T+ ∩ D−) = P(T+ | D−) × P(D−) = 0.10 × 0.98 = 0.098.
P(T+ ∩ D+) = 0.019, P(T+ ∩ D−) = 0.098
3
Step 3 — Compute P(T+) via the Law of Total ProbabilityThe total probability of a positive test, regardless of disease status, is: P(T+) = P(T+ ∩ D+) + P(T+ ∩ D−) = 0.019 + 0.098 = 0.117. This means 11.7% of all students tested will receive a positive result.
P(T+) = 0.117
4
Step 4 — Apply Bayes' Theorem for PPVThe positive predictive value is: PPV = P(D+ | T+) = P(T+ ∩ D+) / P(T+) = 0.019 / 0.117 ≈ 0.1624. Thus, only about 16.2% of students who test positive actually have the metabolic disorder.
PPV ≈ 0.162 (16.2%)
5
Step 5 — Interpret the ResultDespite the test having high sensitivity (95%) and moderate specificity (90%), the low prevalence of the disorder means that the majority of positive results (about 83.8%) are false positives. This demonstrates the critical role of prevalence in determining the clinical utility of a screening test. In practice, a confirmatory test with higher specificity would be administered to those who screen positive.
🔬 WHY PREVALENCE MATTERS
Think of a diagnostic test as a metal detector at the beach. Even a highly accurate detector (high sensitivity and specificity) will generate many false alarms (false positives) if the beach has very few coins buried in it (low prevalence). The ratio of real coins found to total alarms depends critically on how many coins are actually there—not just on the detector's accuracy. This is precisely why Bayes' theorem integrates the prior probability (prevalence) with the test characteristics to yield a meaningful posterior probability (PPV).

Strengths, Limitations & Common Pitfalls

The basic probability rules are remarkably versatile, yet their correct application requires careful attention to underlying assumptions. Below we catalog the key strengths that make these tools indispensable and the pitfalls that lead to common errors in biostatistical practice.

Strengths and common pitfalls in applying basic probability rules
StrengthsCommon Pitfalls
The addition rule cleanly handles both mutually exclusive and non-mutually-exclusive events, providing a unified framework.Applying the simplified addition rule (P(A) + P(B)) when events are not mutually exclusive, leading to probabilities exceeding 1.
The multiplication rule extends naturally to chains of sequential events (e.g., multistage clinical pathways).Assuming independence when events are actually dependent—e.g., assuming genetic markers are independently inherited when they are in linkage disequilibrium.
Conditional probability and Bayes' theorem allow systematic updating of beliefs as new data arrive.Confusing P(A | B) with P(B | A)—the 'prosecutor's fallacy.' P(positive test | disease) ≠ P(disease | positive test).
The complement rule simplifies 'at least one' type calculations, avoiding the enumeration of many cases.Neglecting base rates (prevalence) when interpreting diagnostic test results, leading to the base rate fallacy.
The law of total probability enables stratified analysis across subgroups, a staple of epidemiological research.Confusing mutual exclusivity with independence—these are distinct properties that often produce opposite conclusions.
THE PROSECUTOR'S FALLACY
The most dangerous error in applied probability is swapping the conditioning direction. In a forensic context, the probability that a randomly selected person matches the DNA profile found at a crime scene (P(match | innocent)) is not the same as the probability that a person who matches the profile is innocent (P(innocent | match)). The same logic applies in clinical medicine: the sensitivity of a test is P(T+ | D+), but the clinician needs P(D+ | T+). Always verify which conditional probability the question asks for before computing.

Connection to Advanced Theory — Bayes' Theorem & Beyond

The basic probability rules presented in this lesson serve as the springboard for more advanced probabilistic machinery. Bayes' theorem—which we glimpsed in the worked example—is a direct algebraic consequence of the conditional probability definition and the law of total probability. In its general form, Bayes' theorem enables the transition from a prior distribution over parameters to a posterior distribution after observing data, forming the backbone of Bayesian statistics. Similarly, the multiplication rule for independent events generalizes to the concept of likelihood functions in maximum likelihood estimation, where the joint probability of observed data is expressed as a product of individual probabilities under an assumed model.

How basic probability rules extend into advanced biostatistical methods
Basic RuleAdvanced ExtensionBiostatistical Application
Conditional probability P(A | B)Bayes' theorem and Bayesian inferenceAdaptive clinical trial designs; updating treatment effect estimates as data accumulate
Multiplication rule for independent eventsLikelihood functions and MLEEstimating parameters of survival distributions (e.g., exponential hazard rates)
Law of total probabilityMarginalization in multivariate distributionsComputing marginal probabilities in contingency tables; mixture models for heterogeneous populations
Addition rule for unionsInclusion–exclusion principleCalculating probability of at least one adverse event among multiple independent drugs
Complement ruleSurvival function S(t) = 1 − F(t)Kaplan–Meier survival estimation; the probability of surviving beyond time t

As you progress through your biostatistics coursework, you will encounter probability distributions (binomial, Poisson, normal), each of which is constructed from the axioms and rules covered here. The expectation and variance of random variables are defined through probability-weighted sums (or integrals), and hypothesis testing rests on computing the probability of observed data under a null hypothesis—again a direct application of these foundational rules. Mastering basic probability is therefore not a preliminary exercise but the conceptual core upon which all inferential biostatistics is built.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain why two events that are mutually exclusive (with positive probabilities) cannot be independent. Use the definitions of independence and mutual exclusivity to justify your answer.
PROBLEM 2BASIC CALCULATION
In a cohort of 500 patients, 120 have hypertension, 80 have type 2 diabetes, and 30 have both conditions. If a patient is selected at random, find P(hypertension ∪ diabetes).
PROBLEM 3INTERMEDIATE
A genetic test for a BRCA1 mutation has a sensitivity of 0.98 and a specificity of 0.95. If the prevalence of the BRCA1 mutation in the tested population is 0.005, compute the positive predictive value (PPV) of the test.
PROBLEM 4APPLIED
A hospital pharmacy stocks three antibiotics (A, B, C) for treating a particular infection. Based on hospital records, 50% of patients receive drug A, 30% receive drug B, and 20% receive drug C. The probability of an allergic reaction is 0.02 for drug A, 0.05 for drug B, and 0.03 for drug C. (a) What is the overall probability of an allergic reaction? (b) If a patient has an allergic reaction, what is the probability they received drug B?
PROBLEM 5CRITICAL THINKING
A researcher argues: 'Since the events "patient is a smoker" and "patient develops lung cancer" are not mutually exclusive, they must be dependent.' Critically evaluate this claim. Is the reasoning valid? Provide a rigorous justification, and construct a hypothetical counterexample if the reasoning is flawed.

Lesson Summary

This lesson established the foundational probability rules essential to biostatistical reasoning. We began with Kolmogorov's three axioms—non-negativity, normalization, and countable additivity—which guarantee the internal consistency of probability assignments. From these axioms, we derived the complement rule (P(Aᶜ) = 1 − P(A)), the general addition rule (P(A ∪ B) = P(A) + P(B) − P(A ∩ B)), the definition of conditional probability (P(A | B) = P(A ∩ B) / P(B)), the multiplication rule (P(A ∩ B) = P(A | B) × P(B)), and the law of total probability for partitioning the sample space.

We applied these rules to a central biostatistical problem—evaluating diagnostic test performance—demonstrating how sensitivity, specificity, and prevalence interact through Bayes' theorem to determine the positive predictive value. Key distinctions—between mutual exclusivity and independence, and between P(A | B) and P(B | A)—were emphasized as critical guardrails against common reasoning errors. These foundational rules extend directly into Bayesian inference, likelihood-based estimation, and the probability distributions that underpin all of modern biostatistics.

Varsity Tutors • Biostatistics • Basic Probability Rules — Apply basic probability rules and conditional probability