Discrete Random Variables and Distributions
One-line: A discrete random variable maps outcomes of a random experiment to isolated numerical values, and its distribution assigns a probability to each value via a probability mass function (PMF).
Key result in words: The behaviour of any discrete random variable is completely determined by its PMF, which must be non-negative and sum to one; from it we compute every probability, expectation, variance, and moment.
Where it applies: Counting problems, success/failure trials, arrival counts, queueing, genetics, reliability, machine learning classification, and any setting with countably many distinguishable outcomes.
Who/when: Foundations laid by Pascal & Fermat (1654), Jacob Bernoulli (1713), Siméon Poisson (1837), with the modern measure-theoretic framework by Kolmogorov (1933).
A discrete random variable is fully captured by a list of (value, probability) pairs. Every question you can ask — "what is the chance exceeds 3?", "what is its average?", "how spread out is it?" — is just a weighted sum over that list. The PMF is the master object; everything else (CDF, mean, variance, moment generating function) is derived from it by summation.
Formal Statement
Let be a probability space. A random variable is a measurable function , meaning that for every real , the set belongs to . is discrete if its image (range) is a finite or countably infinite set .
- — sample space (set of all outcomes)
- — -algebra of events
- — probability measure,
- — the numerical value assigned to outcome
- — the (countable) support of
The probability mass function (PMF) of a discrete random variable is
Derivation hint: this is just the probability measure evaluated on the event , the preimage . A valid PMF satisfies two axioms:
Derivation hint: non-negativity comes from ; the sum is because the events partition (countable additivity). For any subset ,
Derivation hint: is the disjoint union over of ; apply countable additivity.
The cumulative distribution function (CDF) is
Derivation hint: , a disjoint union; sum the masses. For a discrete variable, is a right-continuous, non-decreasing step function with jumps of size at each . The PMF is recovered by
Derivation hint: the jump at equals .
The expected value (mean) of , when the sum converges absolutely, is
Derivation hint: a probability-weighted average; it is the Lebesgue integral reduced to a sum for the discrete case. For a function , the Law of the Unconscious Statistician gives
Derivation hint: group outcomes by the value of ; one need not first find the PMF of . The variance measures spread:
Derivation hint: expand and use linearity of , with . The probability generating function (PGF), for -valued , is
Derivation hint: apply [7] with ; derivatives at recover factorial moments.
The principal named families, with PMF, mean, and variance:
Bernoulli(): ; .
Binomial():
Derivation hint: of i.i.d. Bernoullis; the binomial coefficient counts arrangements of successes.
Geometric() (trials until first success, ):
Derivation hint: failures then a success; geometric series gives normalisation and mean.
Poisson():
Derivation hint: limit of Binomial() as ; normalisation uses the series .
Why It Holds / Derivation
We prove and use it for the binomial.
Step 1. Let be discrete with joint PMF . By the LOTUS [7] applied to :
Step 2. Split the sum and factor constants:
Step 3. The inner sums are the marginals: and . Hence
No independence was assumed.
Step 4 (Binomial mean). Write where . Since , linearity gives .
∎Step 1. Take Binomial() with held so that is fixed, and let :
Step 2. Expand and group:
Step 3. As : the falling-factorial ratio , the last factor , and .
Step 4. Therefore , the Poisson PMF [12].
∎A French mathematician and physicist, Poisson introduced the distribution now bearing his name in his 1837 treatise Recherches sur la probabilité des jugements en matière criminelle et en matière civile, where he studied the number of wrongful convictions. He framed it as the limit of rare events in many independent trials — exactly the "law of small numbers." Poisson also made deep contributions to electromagnetism, elasticity, and celestial mechanics; the distribution was something of an aside in his work, yet it became one of the most-used models in all of science, governing radioactive decay counts, telephone-call arrivals, and biological mutation rates.
Building Intuition
Picture the total probability as one kilogram of sand. A discrete distribution places the sand in distinct piles at separated points on the number line; a continuous distribution would spread it smoothly. The PMF tells you the weight of each pile. The CDF is what you get by walking left-to-right and accumulating sand — it stays flat between piles and jumps up by the pile's weight whenever you step on one, hence the staircase shape. The mean is the balance point of all the piles (a centre of mass). The variance is the average squared distance of sand from that balance point — small if the piles huddle near the mean, large if they sprawl. The Bernoulli is the atom: a single pile-pair at 0 and 1. The Binomial stacks such atoms; the Poisson is what the binomial becomes when each pile is tiny but there are very many — the "rare-events" regime.
Worked Examples
Given: A factory produces widgets, each defective independently with probability . A box holds widgets. Let = number of defectives.
Question: Find , , , and .
Steps: 1. . Using [10]:
2. Mean: defectives. 3. Variance: , so . 4. At least one defective:
Answer:
Given: A web server receives requests at an average rate of per second. Let = number of requests in a one-second window, modelled as .
Question: Find , , and verify the variance.
Steps: 1. From [12]: 2. ; 3. 4. Variance equals the mean: , so requests.
Answer:
Common Misconceptions
- A PMF value is itself a probability, , so it must lie in . This differs from a continuous density, where the value can exceed 1 and .
- For discrete variables, strict vs. non-strict inequalities matter: in general — they differ by . Be especially careful when using .
- The CDF is right-continuous with the value including the jump: takes the top of the step, not the bottom.
- in general (Jensen's inequality); e.g. unless .
Consider with PMF for (valid since ). The expectation
diverges (harmonic series). So a perfectly legitimate discrete distribution can have no finite mean. The St. Petersburg game is the classic gambling instance: a finite, well-defined game with infinite expected payoff. Moral: "every distribution has a mean" is false; existence requires absolute convergence of [6].
Connections
Discrete random variables sit inside the broader theory of Probability Measures and Sigma-Algebras, which make the word "measurable" in the definition precise. They contrast with Continuous Random Variables and Densities, where sums become integrals and PMFs become PDFs; the two are unified by the Lebesgue–Stieltjes Integral. Sums of independent discrete variables are handled by Convolution of Distributions and elegantly by the probability generating function [9]. The large- behaviour of binomial sums leads into the Central Limit Theorem (normal approximation) and the Law of Large Numbers. Conditional structure connects to Joint and Conditional Distributions and Bayes' Theorem.
Real-World Applications
Historical Development
Subtleties & Limits
Several genuine subtleties persist beyond the clean undergraduate picture. (1) Existence of moments: as the counterexample shows, means and variances may diverge for heavy-tailed discrete laws (e.g. Zipf/zeta distributions ubiquitous in linguistics and network science); choosing summary statistics then requires care. (2) Mixed and singular distributions: real data may combine a discrete atom (e.g. exactly-zero insurance claims) with a continuous part, requiring the Lebesgue–Stieltjes Integral for a unified treatment. (3) Overdispersion: empirical count data often have variance exceeding the mean, violating the Poisson's identity and motivating the negative binomial — diagnosing the right model from finite data is an open practical challenge. (4) Infinite-support inference: estimating or unseen species counts (the Good–Turing problem) from a finite sample remains an active area in statistics and information theory. (5) High-dimensional categorical data: modelling joint distributions over many discrete variables suffers the curse of dimensionality, driving research in graphical models and contrastive estimation.
See Also
Continuous Random Variables and Densities · Joint and Conditional Distributions · Expectation and Moments · Probability Generating Functions · Poisson Processes · Bayes' Theorem · Law of Large Numbers · Central Limit Theorem