A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Discrete Random Variables

College Depth 61 in the knowledge graph ☐ I know this ☆ Set as goal
2,698topics build on this
273prerequisites beneath it
See this on the map →
Random Variables→→Binomial DistributionConcentration Inequalities+12 more
discrete probability-mass-function pmf

Core Idea

A discrete random variable takes on a countable (often finite) set of values. Its distribution is described by the probability mass function (PMF), p(x) = P(X = x), which specifies the probability of each possible value. The PMF must be non-negative and sum to 1. Discrete random variables model count data and outcomes from experiments with finitely many possibilities.

Explainer

From your introduction to random variables, you know that a random variable is a function that assigns a numerical value to each outcome of a random experiment. A discrete random variable is one where those values form a countable set — meaning you can list them as x₁, x₂, x₃, … (possibly with finitely many or countably infinitely many entries). Rolling a die gives a discrete random variable taking values {1, 2, 3, 4, 5, 6}. Counting the number of emails you receive in an hour gives a discrete random variable taking values {0, 1, 2, 3, …}. The defining feature is that the values are isolated: there is no value between 3 and 4 emails.

The complete description of a discrete random variable's behavior is its probability mass function (PMF). Written p(x) or P(X = x), it assigns a probability to each possible value. For a fair die, p(1) = p(2) = … = p(6) = 1/6. The two requirements on any PMF are (1) p(x) ≥ 0 for all x (probabilities are non-negative) and (2) the sum of p(x) over all possible values equals 1 (something must happen). These two properties are necessary and sufficient: any non-negative function on a countable set that sums to 1 is a valid PMF, and therefore defines a valid random variable. A common way to display a PMF is a table of values and their probabilities, or a bar chart where bar height equals probability.

Once you have a PMF, you can compute probabilities of more complex events by summing. For example, P(X ≤ 3) for a die is p(1) + p(2) + p(3) = 1/2. This accumulation is exactly the cumulative distribution function (CDF), F(x) = P(X ≤ x) = Σ_{k ≤ x} p(k). The CDF is a step function that jumps by p(x) at each value x. For discrete random variables, the CDF and PMF carry exactly the same information — you can recover one from the other — but different questions are easier to answer with each form.

The PMF is also the foundation for computing summaries of the distribution. The expected value E[X] = Σ x · p(x) is the probability-weighted average of all possible values — you'll study this thoroughly in the next topic. The variance Var(X) = E[(X − E[X])²] measures how spread out the distribution is. Most named discrete distributions — Binomial, Geometric, Poisson, Negative Binomial — are simply families of PMFs parameterized by one or two numbers, each arising as a natural model for a different type of counting experiment. The structure you are learning now — PMF, CDF, expectation, variance — applies identically to all of them.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Function Notation Review → Random Variables: Definition and Classification → Joint and Marginal Distributions → Conditional Distributions of Random Variables → Random Variables → Discrete Random Variables

Longest path: 62 steps · 273 total prerequisite topics

Prerequisites (1)

Leads To (14)