Discrete Random Variables and PMFs
How do you assign a number to every possible outcome of a coin toss? Then how do you measure its likelihood? A discrete random variable answers the first question. A probability mass function (PMF) answers the second, precisely. This pairing turns vague talk of "chance" into arithmetic. It involves sums over a countable set of values. These values must add to exactly one. It is the single most-used object in elementary probability. It underlies the Bernoulli and Binomial Distributions, the Poisson and geometric families. It also underlies every discrete simulation ever coded. The idea matters because it converts probability questions into counting and summation problems. Once a PMF is written down, every event about the random variable becomes simple. Examples include "at least 3 successes," "an even number," or "value in some set A." Each becomes a sum of PMF values. This is the bridge between Combinatorial Probability (counting outcomes) and analytic tools. Those tools include Expectation and generating functions (manipulating sums). The big picture: a random variable is a function from a sample space to the real numbers. It is built on top of Random Variables as an abstract concept. When the range of that function is finite or countably infinite, the variable is discrete. Its entire probabilistic behavior is captured by one function of one real variable — the PMF. This PMF is subject to two non-negotiable axioms: nonnegativity and total mass one. This article gives the rigorous definition of a discrete random variable and its PMF. It proves the fundamental normalization theorem from the axioms of probability. It works through two nontrivial asymmetric examples. It shows exactly what fails if the axioms are relaxed. It closes the loop toward Cumulative Distribution Functions and expectation. These are built directly on the PMF machinery developed here.
- A discrete random variable takes values in a finite or countably infinite set, called its support.
- The PMF assigns a probability to each possible value.
- Two axioms characterize any valid PMF: for all , and .
- Any event about has probability equal to a sum of PMF values: .
- The normalization condition is a theorem derived from Kolmogorov's axioms, not an independent assumption.
- Key idea: a discrete random variable's entire probabilistic content is a countable list of (value, probability) pairs summing to 1.
Where this lives today
Discrete PMFs are the computational backbone of applied probability and its neighboring fields. In statistics, maximum likelihood estimation for discrete models (Poisson regression, logistic regression's Bernoulli likelihood, multinomial models for categorical data) is built entirely on products and sums of PMF values. In computer science, randomized algorithms and probabilistic analysis of hashing, load balancing, and random graphs rely on discrete PMFs — for instance, the number of collisions in a hash table follows a PMF derivable from combinatorial counting. In information theory, the entropy of a discrete source, , is defined directly from the PMF, and Shannon's source coding theorem is a statement about how well a PMF can be compressed. In cryptography, the security of certain schemes (e.g., analyzing guessing attacks) depends on bounding the maximum value of a PMF (the "min-entropy"). In physics, discrete PMFs describe quantum measurement outcomes over discrete eigenvalues (Born rule probabilities sum to 1 by the same normalization logic) and particle counting statistics. In engineering, reliability analysis models the number of failures in a batch using discrete PMFs like the binomial or hypergeometric, both of which will be built from this same normalization principle in the treatment of The Bernoulli and Binomial Distributions.
Ask the tutor: How do I verify normalization for a PMF whose formula involves a parameter, like , and solve for the correct constant ?
Let be a probability space. A random variable is discrete if its range
is a finite or countably infinite subset of . We call (or any countable superset containing all values of positive probability) the support of , sometimes denoted . For a discrete random variable with range , the probability mass function (PMF) of is the function defined by
By convention for any . A function is called a valid PMF if there is a countable set such that: 1. (Nonnegativity) for all , and for ; 2. (Normalization) .
Intuition
Think of a discrete random variable as a labeled spinner with a countable — possibly infinite — number of stopping positions, each engraved with a real number and a weight. The PMF is the list of weights. Since the spinner must stop somewhere, the weights must add up to the whole of probability, namely 1. Since a weight represents a chance of an outcome, no weight can be negative — you cannot have "negative confidence" that the spinner lands on 4. This picture also explains why events are just sums: asking "what is ?" is asking "how much total weight sits on stopping positions at or below 3?" You simply add up the relevant engraved weights. This additive structure is what makes discrete probability computable by hand or by computer: it reduces to enumerating a countable set and summing a series (finite series in the simplest cases). The figure below shows the PMF of a specific, asymmetric example: the number of heads in three tosses of a biased coin with (this anticipates the Bernoulli and Binomial Distributions, where this shape is derived in general). Note the bars are of unequal height — deliberately asymmetric — and their heights sum to exactly 1.
Let be a probability space and let be a discrete random variable with range (finite or countably infinite), and let be its PMF. Then: 1. for every ; 2. ; 3. For every event (more precisely, every such that ),
We use the axioms of a probability space: , for all , and countable additivity: for pairwise disjoint events ,
We assume as given (from Random Variables) that is measurable, so that for every the set lies in , and hence is well defined.
Step 1 (Nonnegativity). For each , , and . By the nonnegativity axiom of a probability measure, . Hence .
Step 2 (Disjointness of the level sets). Define for each . If then , so no can satisfy and simultaneously, since is a single real number. Hence for : the events are pairwise disjoint.
Step 3 (Covering ). By definition of the range, every satisfies , i.e. for some . Hence
a countable union (finite or countably infinite, matching ) of pairwise disjoint sets.
Step 4 (Countable additivity applied). Apply countable additivity of to the disjoint union from Step 3:
This proves part 2. (If is finite, countable additivity restricted to a finite disjoint union follows from finite additivity, itself a consequence of countable additivity applied to a sequence padded with 's; either way the sum equals 1.)
Step 5 (General events). Let be such that . Write for some index set . Then
because if and only if (as is always in ), which happens if and only if for some . The sets are pairwise disjoint, being a subfamily of the disjoint family from Step 2. Applying countable additivity again,
This is exactly part 3, and it specializes to part 2 when (or any set containing ), since then .
∎Proof technique used: decomposition of the sample space into a countable disjoint partition indexed by the range of , followed by direct application of countable additivity — the defining axiom of a probability measure. No result depending on PMFs is used in the proof, so it is non-circular: this argument constructs normalization from Kolmogorov's axioms, rather than assuming it.
Given any valid PMF (nonnegative, summing to 1 over a countable set ), there exists a probability space and a discrete random variable on it whose PMF is exactly .
Take , (the power set, which is a valid -algebra since is countable), and define for . Countable additivity of holds because rearrangement of nonnegative series preserves sums (Tonelli's theorem for series, or simply: for disjoint , by absolute convergence of nonnegative terms). We have by hypothesis, and since . Define by (the identity map). Then and for ,
So is a discrete random variable on with PMF equal to .
∎This corollary explains why the two-axiom characterization in the Definition is not merely necessary but sufficient: any function satisfying nonnegativity and normalization is realizable as an actual PMF of some random variable, so these two properties are the complete and exact defining conditions.
Worked examples
Example 1: An asymmetric loaded die. A die is weighted so that the probability of face is proportional to , for . Let be the face shown. Find , verify normalization, and compute and . Solution. We are told for some constant and . By the normalization requirement of the Definition,
So
and for all other . Check nonnegativity: each for , satisfying part 1 of the theorem. Check normalization directly:
Now use part 3 of the theorem for events. Let (even faces):
Let :
Both computed purely as sums of PMF values over subsets of the support, exactly as guaranteed by the theorem.
Example 2: A countably infinite support — a shifted geometric-type PMF. Let denote the number of failed attempts before the first success in a sequence of independent trials, each succeeding with probability (so failure probability ). This is a foreshadowing of the geometric distribution, but let us verify everything from scratch using only the theorem above, since the range here is countably infinite: . The event means: the first trials fail, then trial succeeds. By independence of trials,
Nonnegativity: each term is a product of positive numbers, so for all . Normalization: we must sum a geometric series:
This matches part 2 of the theorem exactly — note that here the sum is a genuine infinite series, converging by the ratio test since , and its convergence to 1 is not automatic; it is a real algebraic fact that must be, and has been, checked. Now compute , the probability of at least 3 failures before the first success. Using part 3 of the theorem with :
Alternatively, via the complement using finite sums (a preview of the CDF machinery):
matching, as it must, since both computations invoke the same theorem — total probability sums to 1, so the complement rule follows immediately from parts 2 and 3.
Consider dropping condition 2 (normalization) from the definition of a valid PMF, while keeping nonnegativity. Take the countable set and define
but suppose someone claims this is "the PMF" without checking the sum. In fact
so this particular does happen to normalize — it is a legitimate PMF (in fact the PMF of a Geometric(1/2) random variable shifted to start at 1). The point of the counterexample is to see what happens if we perturb it and forget to renormalize. Suppose instead someone proposes
This satisfies nonnegativity: for every . But
If we nonetheless declared to be a PMF and tried to use the Theorem's conclusion (3), we would get nonsense: for instance "" combined with "" would force
directly violating the axiom for any event . The entire machinery — disjoint decomposition summing via countable additivity to — collapses, because there is no probability space or random variable for which is genuinely : by the Corollary's converse construction, setting gives , so is not even a probability measure. This shows normalization is not a cosmetic convenience; without it, "" fails to define any probability measure at all, and every derived probability statement becomes meaningless. To repair , one must rescale: , which does sum to 1 and is a genuine PMF (this is the discrete "zeta" or Zipf-type distribution).
Scope, edge cases & common traps
| Situation | What to check | Common error |
|---|---|---|
| Finite support | Sum is a finite algebraic sum | Forgetting a value in the support when summing |
| Countably infinite support | Sum is a convergent infinite series | Assuming convergence without checking the ratio/comparison test |
| Support with negative or non-integer values | PMF still defined pointwise on | Assuming PMFs only live on |
| Events not subsets of support | Including points where as if they contributed mass | |
| Continuous random variables | PMF concept does not apply; use density instead | Writing "" for a continuous (there, for every ) |
The mathematician behind it
Origins · 1 minAndrei Nikolaevich Kolmogorov and how this was discovered
Kolmogorov gave probability its modern axiomatic foundation in his 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung, building probability theory on measure theory. The normalization property of PMFs proved above — — is a direct, elementary consequence of his axioms, particularly countable additivity, applied to the special case of a countable partition of the sample space induced by a discrete random variable. Kolmogorov's framework unified what had previously been scattered combinatorial and analytic techniques (from Bernoulli, Laplace, Poisson, and Chebyshev) into a single deductive system, of which discrete probability — the subject of this article — is the most concrete and computationally transparent instance.
What exactly counts as the "support" of a discrete random variable?
The support is the set of values for which ; equivalently, it is (a countable superset of) the range . Some authors define the support as literally the range, others as the closure of the set where the PMF is positive — for discrete variables these coincide since every point carrying positive mass is itself a value the variable can take. Values outside the support automatically have PMF equal to zero by convention, so summing "over the support" or "over all of " gives the same total probability. Precisely specifying the support is essential: an incomplete support is the most common source of a PMF that seems not to normalize to 1.
Can a discrete random variable have uncountably many possible values?
No — this is excluded by definition. A random variable is called discrete precisely when its range is finite or countably infinite; if the range is uncountable (such as an interval of real numbers), the variable is not discrete, and the PMF framework does not apply directly. Continuous random variables, which typically take values in an interval, are instead described by a probability density function, for which at every individual point and probabilities arise from integrating the density rather than summing a PMF. The distinction is fundamental and not merely technical: sums and integrals obey different convergence and manipulation rules.
Does every function satisfying nonnegativity and summing to 1 actually arise as the PMF of some random variable?
Yes, and this is exactly the content of the Corollary proved above. Given any countable set and any nonnegative function on summing to 1, one can explicitly construct a probability space — take itself, all subsets as events, and — on which the identity map is a discrete random variable with exactly that PMF. This converse result confirms that the two axioms (nonnegativity, normalization) are not just necessary consequences of the probability axioms but are jointly sufficient to characterize valid PMFs.
How does the PMF relate to the cumulative distribution function?
The CDF, , is obtained from the PMF by summing all mass at or below : , a direct application of part 3 of the normalization theorem with . Conversely, for a discrete random variable, the PMF can be recovered from the CDF by taking jump sizes: . This equivalence is developed fully in Cumulative Distribution Functions, but the underlying summation principle is exactly the one established here.
Why must the PMF be defined on a countable set rather than an arbitrary set?
Countability is what makes the sum meaningful without invoking measure-theoretic integration. An uncountable sum of strictly positive terms is necessarily infinite (a classical fact: any uncountable set has, for some , uncountably many terms exceeding , forcing divergence), so no PMF with uncountable support and all positive values could ever sum to a finite number like 1. This is precisely why discrete random variables are defined to have countable range — it is the exact threshold at which "summing probabilities" remains a well-posed operation.
How is expectation related to the PMF, and why is this article a prerequisite for it?
Expectation of a discrete random variable is defined as , a weighted average over the support using PMF values as weights. This definition presupposes exactly the machinery built here: a well-defined support, nonnegative weights, and (for the sum to even be a probability-weighted average) total weight equal to 1. Without the normalization theorem guaranteeing , the formula for would not correspond to any meaningful "average," which is why Expectation is developed only after PMFs are rigorously established.
What goes wrong if I only check that for each individual value?
This checks far too little: it is possible for every individual value to lie in while the total sum is far from 1, as the Zipf-type counterexample illustrates (it sums to , not 1). Individual bounds only reflect that no single outcome can have negative or more-than-certain probability; they say nothing about how the mass aggregates across the whole support. The full normalization condition — the sum over the entire countable support equals exactly 1 — is the property that actually certifies a function as a legitimate PMF, and it must be checked as a separate, global computation.