01 / 20

Random Variables &
Probability Distributions

Turn the outcomes of chance into numbers, then graph how likely each value is with a probability distribution.

Statistics & Probability

What Is a Random Variable?

A random variable assigns a numerical value to each outcome in a sample space. Instead of describing events with words, we describe them with numbers.

Example: Flip a coin twice. Let \( X \) = the number of heads. Then \( X \) can be \( 0, 1, \) or \( 2 \).

From Outcomes to Numbers

Sample Space Value of X (heads) TT HT TH HH 0 1 2

Two Kinds of Random Variables

Discrete
Takes countable, separate values. Example: number of heads, number of defective items, a die roll \( (1,2,3,4,5,6) \).
Continuous
Takes any value in an interval. Example: a person's height, the time until a bus arrives, temperature.

The Probability Distribution

A probability distribution lists every value a random variable can take, along with the probability of each value.

For the two-coin flip, the distribution is:

$$P(X{=}0)=\tfrac{1}{4},\quad P(X{=}1)=\tfrac{1}{2},\quad P(X{=}2)=\tfrac{1}{4}$$

Two Rules Every Distribution Must Follow

1
Each probability is between 0 and 1. Formally, \( 0 \le P(X = x) \le 1 \) for every value \( x \).
2
All probabilities add to 1. Formally, \( \displaystyle\sum P(X = x) = 1 \). Some outcome must happen.

Graphing a Probability Distribution

Number of heads (X)
\(P(X=x)\)
0 0.25 0.5 0 1 2 0.25 0.5 0.25

Data Distribution vs. Probability Distribution

Data Distribution
Built from observed outcomes. Bar heights are frequencies or relative frequencies from a sample.
Probability Distribution
Built from theory. Bar heights are probabilities that must sum to \( 1 \).

How to Build a Distribution

1
List the sample space. Write out every possible outcome of the experiment.
2
Define the random variable. Assign a number \( X \) to each outcome.
3
Find each probability. Compute \( P(X = x) \) by counting favorable outcomes.
4
Check and graph. Confirm probabilities sum to \( 1 \), then draw the bars.

Example 1: Rolling a Fair Die

Let \( X \) = the number shown on a fair six-sided die. Each face is equally likely.

\(\frac{1}{6}\)
1 2 3 4 5 6 Value of X

Example 2: Sum of Two Dice

Let \( X \) = the sum of two fair dice. There are \( 36 \) equally likely outcomes. Some sums occur in more ways than others.

2 3 4 5 6 7 8 9 10 11 12 Sum of two dice (X)

Example 3: Finding a Missing Probability

A random variable \( X \) has this distribution. Find the missing probability \( p \).

x 0123
\( P(X{=}x) \) 0.10.3p0.2

Common Mistakes

✕ Probabilities don't sum to 1
Forgetting to check that \( \sum P(X{=}x) = 1 \). A valid distribution always totals exactly 1.
✕ Confusing \( X \) with \( P(X) \)
The value \( x \) goes on the horizontal axis; the probability goes on the vertical axis.
✕ Negative probabilities
Every probability must satisfy \( 0 \le P(X{=}x) \le 1 \). No value can be negative or above 1.
✕ Ignoring repeated outcomes
Different outcomes can map to the same value of \( X \). Count all of them when finding probability.

Summary: Key Ideas

Concept Meaning
Random variable \( X \)A number assigned to each outcome
\( P(X{=}x) \)Probability \( X \) takes the value \( x \)
DistributionAll values paired with their probabilities
Rule 1\( 0 \le P(X{=}x) \le 1 \)
Rule 2\( \sum P(X{=}x) = 1 \)
GraphBar height shows the probability

Question 1 of 5

A random variable \( X \) is best described as:

Question 2 of 5

Which set of probabilities is a valid probability distribution?

Question 3 of 5

A coin is flipped twice and \( X \) = number of heads. What is \( P(X = 1) \)?

Question 4 of 5

In the table, the probabilities \( P(X{=}x) \) for \( x = 0,1,2,3 \) are \( 0.15, 0.25, ?, 0.30 \). Find the missing probability.

Question 5 of 5

When graphing a probability distribution as a bar graph, what does the height of each bar represent?

You've Got the Big Picture

You can now define a random variable, build its probability distribution, verify it follows the two rules, and graph it just like a data distribution.