Discrete Probability Distributions
Random variables, probability distributions, and probability mass functions
SPEC 4.1 • STATISTICAL DISTRIBUTIONS
Random Variables
Definition
A random variable is a variable whose value depends on the outcome of a random event. The value is not known until the experiment is carried out.
Notation
Random variables: capital letters (X, Y, Z)
Specific values: lowercase letters (x, y, z)
means "probability X takes value x"
Sample Space
The sample space is the set of all possible values the random variable can take.
Example: For a die, sample space = {1, 2, 3, 4, 5, 6}
Discrete vs Continuous
A variable is discrete if it can only take specific, countable values (often integers). This lesson focuses on discrete random variables.
Representing Distributions
A probability distribution can be represented in three equivalent ways:
1. Table
123456
2. PMF (Formula)
{
Validity Condition
For ANY valid probability distribution: (all probabilities must sum to 1)
Probability Mass Functions
Definition
A probability mass function (PMF) is a formula that gives for each value of x. It must always specify the domain (which values of x are valid).
Simple PMF
{One formula applies to all x values
Piecewise PMF
{Different formulas for different x values
Piecewise Functions
When probabilities follow different patterns for different values, we use a piecewise function. This often occurs when deriving distributions from experiments.
Converting Between Forms
PMF → Table
Method: Substitute each x value into the formula{12340.10.20.30.4
Table → PMF
Method: Find a pattern relating x to P(X=x)123Pattern: 1, 4, 9 = 1², 2², 3²{
Always Verify
After converting, check that . This confirms your formula is correct.
01Worked Example
Three fair coins are tossed. Let X = the number of heads.
(a) Write down all possible outcomes and the sample space of X.
(b) Write the probability distribution of X as: (i) a table (ii) a PMF.
(a)
Outcomes: HHH, HHT, HTH, THH, HTT, THT, TTH, TTT (8 total)
•
Sample space: {0, 1, 2, 3}
(b)
Count outcomes for each X value:
•
X=0: TTT (1) → P=1/8; X=1: HTT,THT,TTH (3) → P=3/8
•
X=2: HHT,HTH,THH (3) → P=3/8; X=3: HHH (1) → P=1/8
(i)
Table: x = 0, 1, 2, 3 with P = 1/8, 3/8, 3/8, 1/8
(ii)
PMF:
02Worked Example
A biased four-sided dice has faces 1, 2, 3, 4. Given for x = 1, 2, 3, 4:
(a) Find the value of k. (b) Give the distribution in table form. (c) Find P(X > 2).
(a)
Sum of probabilities = 1:
•
•
•
(b)
P(1)=12/25, P(2)=6/25, P(3)=4/25, P(4)=3/25
(c)
03Worked Example
A discrete random variable X has the piecewise PMF:
\(kx\) \(x = 1, 3\)
(a) Find k. (b) Find P(X > 1).
(a)
Calculate each probability:
•
P(1) = k(1) = k; P(3) = k(3) = 3k
•
P(2) = k(2-1) = k; P(4) = k(4-1) = 3k
•
Sum = 1: k + k + 3k + 3k = 8k = 1 →
(b)
P(X > 1) = P(2) + P(3) + P(4) = 1/8 + 3/8 + 3/8 =
Finding Probabilities
and
Add all probabilities where condition is satisfied
and
Use complement or add directly
Ranges:
Carefully check which endpoints are included:
includes x = 2, 3, 4 (NOT 1)
includes x = 1, 2, 3 (NOT 4)
Watch Out
If asked for P(X > 4) but the sample space only goes up to 4, then P(X > 4) = 0.
04Worked Example
X has the distribution shown:
0123
Find: (a) (b) (c)
(a)
includes x = 2, 3 (NOT 1)
•
(b)
includes x = 0, 1
•
(c)
(no values greater than 3 in sample space)
Verifying a Valid PMF
Two Conditions
1. All probabilities non-negative: for all x
2. Probabilities sum to 1:
Valid PMF ✓
{Sum = 1/6 + 2/6 + 3/6 = 1 ✓
Invalid PMF ✗
{Sum = 2/4 + 2/9 + 2/16 ≈ 0.847 ≠ 1 ✗
Exam Tip
If asked "Explain why this is not a valid probability distribution", calculate the sum and show it ≠ 1.
05Worked Example
Marie says X has PMF:
\(\frac{2}{x^2}\)
(a) Explain why this is not a valid probability distribution.
(b) Given the correct PMF is for x = 2, 3, 4, find k.
(a)
Sum of probabilities:
•
•
Sum ≠ 1, so not a valid probability distribution.
(b)
•
→ →
Discrete Uniform Distribution
Definition
A discrete uniform distribution is one where all outcomes are equally likely. If there are n outcomes, each has probability .
Example: Fair Die
n = 6 outcomes{
General Form
{all in sample space
Identifying Uniform
Look for: "fair" dice/spinners, "random" selection, "equally likely" outcomes.
06Worked Example
X takes integer values 1 to 50 with discrete uniform distribution. Find:
(a) P(X = 1) (b) P(X ≥ 28) (c) P(13 < X < 42)
(a)
Uniform with 50 values:
(b)
X ≥ 28 means X = 28, 29, ..., 50 (count: 50 - 28 + 1 = 23 values)
•
(c)
13 < X < 42 means X = 14, 15, ..., 41 (count: 41 - 14 + 1 = 28 values)
•
Deriving Distributions
Sometimes you need to derive a probability distribution from an experiment's stopping rule:
"Until" Problems
When an experiment continues "until" something happens (or reaches a maximum), work out each probability systematically.
Method
Identify what the random variable represents
List all possible values (sample space)
For each value, work out how that outcome occurs
Calculate probabilities using multiplication (independent events)
For the final value, use: P(last) = 1 - P(all earlier values)
Worked Example07
A spinner has P(Red) = 2/5 and P(Blue) = 3/5. It is spun until red OR it's been spun 4 times. Let S = number of spins. Find the distribution of S.
1
Sample space: S = 1, 2, 3, or 4
2
P(S=1) = P(Red first spin) =
3
P(S=2) = P(Blue then Red) =
4
P(S=3) = P(B, B, R) =
5
P(S=4) = 1 - (2/5 + 6/25 + 18/125) = 1 - 50/125 - 30/125 - 18/125 =
Table: S = 1, 2, 3, 4 with P = 2/5, 6/25, 18/125, 27/125
Modelling Real Situations
Assumptions
Independence of trials
Constant probabilities
Outcomes mutually exclusive
Random selection
Limitations
Real situations rarely perfectly random
Probabilities may change
Events may not be independent
Model simplifies reality
Watch Out
A model only approximates real behaviour. Real experiments will never exactly match the model, but it provides a useful way of analysing outcomes.
Practice
Question 1:
\(0.1\)
\(\beta\)
\(0.2\)
(a) Find β. (b) Construct a table for the distribution. (c) Find P(−1 ≤ X < 2).
(a)
0.1 + 0.1 + β + β + 0.2 = 1 → 2β = 0.6 →
(b)
x: −2, −1, 0, 1, 2 → P: 0.1, 0.1, 0.3, 0.3, 0.2
(c)
P(−1 ≤ X < 2) = P(−1) + P(0) + P(1) = 0.1 + 0.3 + 0.3 =
Practice
Question 2:
1234
(a) Find k. (b) Write a PMF for X.
(a)
1/3 + 1/3 + k + 1/4 = 1 → k = 1 − 8/12 − 3/12 =
(b)
No simple pattern; piecewise PMF:
Practice
Question 3:
(a) Write down the distribution of S in table form. (b) Find P(S > 2).
(a)
P(S=1) = 2/3; P(S=2) = 1/3 × 2/3 = 2/9; P(S=3) = 1/3 × 1/3 × 2/3 = 2/27
•
P(S=4) = 1 − (2/3 + 2/9 + 2/27) = 1 − 26/27 = 1/27
•
Table: S = 1, 2, 3, 4 with P = 2/3, 2/9, 2/27, 1/27
(b)
P(S > 2) = P(3) + P(4) = 2/27 + 1/27 =
Summary
Key Concepts
ConceptKey Points
Random VariableValue depends on random outcome; sample space = all possible values
RepresentationsTable, PMF (formula), or vertical line diagram - all equivalent
PMF TypesSimple (one formula) or piecewise (different rules for different x)
ValidityAll P ≥ 0 AND ΣP(X = x) = 1
UniformAll outcomes equally likely: P(X = x) = 1/n
Exam Skills
Convert between table, PMF, and diagram forms
Use ΣP = 1 to find unknown constants
Derive distributions from "until" stopping rules
Verify whether a function is a valid PMF
Next: Random Variables