Statistics 10: Random Variables & Probability Distributions
Discrete and continuous random variables, probability distribution, expected value, variance, PMF, PDF, CDF — solved examples and exam tricks
1. What is a Random Variable?
A Random Variable is a variable whose value depends on the outcome of a random experiment. Usually denoted by X, Y, Z.
| Experiment | Random Variable X | Possible Values |
|---|---|---|
| Toss a coin | X = 1 if Head, 0 if Tail | 0, 1 |
| Throw a die | X = number appearing on die | 1, 2, 3, 4, 5, 6 |
2. Types of Random Variables
A. Discrete Random Variable
Takes countable values.
Examples: Number of heads in 3 coin tosses | Number of children in a family | Number of customers arriving
Example — Two coins tossed. X = Number of Heads:
| Outcome | X |
|---|---|
| HH | 2 |
| HT | 1 |
| TH | 1 |
| TT | 0 |
Possible values: 0, 1, 2 → Discrete Random Variable ✅
B. Continuous Random Variable
Can take infinitely many values in an interval.
Examples: Height (170.1, 170.15, 170.152… cm), Weight, Temperature, Time
| Exam Trick | Type |
|---|---|
| Can you COUNT it? | Discrete |
| Can you MEASURE it? | Continuous |
3. Probability Distribution
A Probability Distribution tells us: which values a random variable can take and their probabilities.
Example — Two coins tossed. X = Number of Heads:
| X | Probability P(X) |
|---|---|
| 0 | 1/4 |
| 1 | 2/4 |
| 2 | 1/4 |
Valid Conditions for a Probability Distribution
| Condition | Rule |
|---|---|
| Each probability | 0 ≤ P(X) ≤ 1 |
| Sum of all probabilities | ΣP(X) = 1 |
Check: 0.25 + 0.50 + 0.25 = 1 ✅
4. Probability Mass Function (PMF)
Used for discrete random variables. Notation: P(X = x) — probability that X equals x.
Example: Die throw → P(X = 3) = 1/6
5. Expected Value (Mean of Distribution)
Expected value is the long-run average value of a random variable.
Formula: E(X) = Σ x · P(x)
Example:
| X | P(X) | x · P(X) |
|---|---|---|
| 0 | 0.25 | 0 |
| 1 | 0.50 | 0.50 |
| 2 | 0.25 | 0.50 |
| — | — | E(X) = 1 |
Interpretation: If we repeat the experiment many times, average number of heads ≈ 1
6. Variance of Random Variable
Measures spread around the expected value.
Formula: Var(X) = E(X²) − [E(X)]²
Example — continuing from above (E(X) = 1):
Step 1: Find E(X²)
| X | X² | P(X) | X² · P(X) |
|---|---|---|---|
| 0 | 0 | 0.25 | 0 |
| 1 | 1 | 0.50 | 0.50 |
| 2 | 4 | 0.25 | 1.00 |
| — | — | — | E(X²) = 1.5 |
Step 2: Var(X) = E(X²) − [E(X)]² = 1.5 − (1)² = 0.5
Step 3: SD = √0.5 = 0.707
7. Probability Density Function (PDF)
Used for continuous random variables.
Important exam fact: For continuous variables, P(X = x) = 0
Because continuous variables have infinitely many possible values. Instead we calculate:
P(a < X < b) — probability that X falls in an interval.
Example: Probability that a student's height is exactly 170.000000 cm = 0 (continuous variable)
8. Cumulative Distribution Function (CDF)
Probability that random variable is less than or equal to x.
Notation: F(x) = P(X ≤ x)
Example:
| X | P(X) | F(x) = P(X ≤ x) |
|---|---|---|
| 0 | 0.2 | 0.2 |
| 1 | 0.3 | 0.5 |
| 2 | 0.5 | 1.0 |
F(1) = P(X ≤ 1) = 0.2 + 0.3 = 0.5 ✅
9. Real-Life Examples
| Field | Random Variable |
|---|---|
| Insurance | Expected claim amount |
| Banking | Expected loan default |
| Business | Expected profit |
| Agriculture | Expected crop yield |
| Stock Market | Expected return |
Exam MCQs
- A random variable is? → A variable depending on a random experiment
- Which is a continuous variable? → Weight (Height, Temperature, Time)
- Total probability in a probability distribution equals? → 1
- Expected value is also called? → Mean
- For a continuous random variable, P(X = x) = ? → 0
Common Exam Traps:
| Trap | Rule |
|---|---|
| Random Variable ≠ ordinary variable | Must be associated with a random experiment |
| Continuous variable exact probability | P(X = x) = 0 always |
| Total probability | ΣP(X) = 1 |
| Expected Value = Mean | E(X) = Σx·P(x) |
| Variance formula order | E(X²) − [E(X)]² — NOT [E(X)]² − E(X²) |
Quick Revision Sheet
| Formula / Concept | Detail |
|---|---|
| Expected Value | E(X) = Σ x · P(x) |
| Variance | Var(X) = E(X²) − [E(X)]² |
| Standard Deviation | SD = √Var(X) |
| Valid Distribution | ΣP(X) = 1 and 0 ≤ P(X) ≤ 1 |
| CDF | F(x) = P(X ≤ x) |
| PMF (Discrete) | P(X = x) — exact probability |
| PDF (Continuous) | P(X = x) = 0 — use intervals P(a < X < b) |
| Discrete | Countable values → can COUNT |
| Continuous | Measurable values → can MEASURE |