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 a function from a sample space to a countable subset of the real numbers, such that the preimage of every value is an event with a well-defined probability. Its distribution is encoded by the probability mass function , which records exactly how the total probability of is distributed across the possible values. This topic matters because an enormous fraction of applied probability — from counting defective items to modelling photon arrivals — concerns quantities that take only separated values. A surprising fact: although the values are isolated, the cumulative distribution function of a discrete variable is a right-continuous step function that still carries all the information of the PMF, and many "continuous-looking" approximations (e.g. the normal approximation to the binomial) emerge from discrete distributions in the limit.
The Core Insight
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
Random Variable and Discreteness
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
Probability Mass Function
The probability mass function (PMF) of a discrete random variable is
A valid PMF satisfies two axioms:
For any subset ,
Cumulative Distribution Function
The cumulative distribution function (CDF) is
For a discrete variable, is a right-continuous, non-decreasing step function with jumps of size at each . The PMF is recovered by
Expectation, Variance, Moments
The expected value (mean) of , when the sum converges absolutely, is
For a function , the Law of the Unconscious Statistician gives
The variance measures spread:
The probability generating function (PGF), for -valued , is
Catalogue of Standard Discrete Distributions
The principal named families, with PMF, mean, and variance:
Bernoulli(): ; . Binomial():Why It Holds / Derivation
Linearity of Expectation and the Binomial Mean
We prove and use it for the binomial.
Step 1. Let be discrete with joint PMF . By the LOTUS [7] applied to :Poisson as a Limit of the Binomial
Step 1. Take Binomial() with held so that is fixed, and let :Siméon Denis Poisson | 1781–1840
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
Quality Control — Binomial
Given: A factory produces widgets, each defective independently with probability . A box holds widgets. Let = number of defectives. Question: Find , , , and . Steps:- . Using [10]:
- Mean: defectives.
- Variance: , so .
- At least one defective:
Server Requests — Poisson
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:- From [12]:
- ;
- Variance equals the mean: , so requests.
PMF (bars) and CDF (staircase) of a Binomial(10, 0.3)
Common Misconceptions
PMF values vs. probabilities; CDF endpoints
- 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 .
A mean that does not exist
Consider with PMF for (valid since ). The expectation
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
- Quality control & reliability — Binomial models the count of defective items in a batch; acceptance sampling plans set thresholds on .
- Telecommunications & queueing — Poisson governs call/packet arrivals (the basis of the Erlang formulas used to size telephone exchanges and data networks).
- Epidemiology & genetics — Binomial and Poisson model rare mutation counts and disease incidence (the Luria–Delbrück experiment used the Poisson to demonstrate spontaneous bacterial mutation).
- Insurance & actuarial science — Poisson (or negative binomial) models the number of claims per policy per year, feeding aggregate-loss calculations.
- Machine learning — The categorical/multinomial distribution underlies softmax classifiers, Naive Bayes text models (word counts), and topic models (LDA).
- Particle physics & astronomy — Geiger-counter clicks and photon counts in a CCD pixel are Poisson, defining the "shot-noise" floor of detectors.
- Web analytics & A/B testing — Conversion counts among visitors are Binomial; hypothesis tests compare two proportions.
Historical Development
- 1654 — Pascal and Fermat correspond on the problem of points, implicitly using binomial-coefficient counting; birth of probability.
- 1657 — Christiaan Huygens publishes De Ratiociniis in Ludo Aleae, the first printed probability text, introducing expectation.
- 1713 — Jacob Bernoulli's posthumous Ars Conjectandi states the (weak) law of large numbers and systematises the binomial distribution.
- 1738 — Abraham de Moivre derives the normal approximation to the binomial, a precursor to the CLT.
- 1837 — Siméon Poisson introduces the Poisson distribution as a limit of rare binomial events.
- 1860s–1870s — Maxwell and Boltzmann use discrete counting in statistical mechanics; later the Bose–Einstein and Fermi–Dirac statistics.
- 1898 — Ladislaus Bortkiewicz publishes Das Gesetz der kleinen Zahlen, fitting the Poisson to deaths by horse-kick in the Prussian army — a famous empirical validation.
- 1933 — Andrey Kolmogorov's Grundbegriffe der Wahrscheinlichkeitsrechnung gives the axiomatic, measure-theoretic foundation, making "random variable" rigorous.
- 1940s–1950s — Feller's influential textbook An Introduction to Probability Theory and Its Applications canonises the modern treatment of discrete distributions.
Subtleties & Limits
Boundaries, infinities, and modelling fidelity
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.