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.

ExperimentRandom Variable XPossible Values
Toss a coinX = 1 if Head, 0 if Tail0, 1
Throw a dieX = number appearing on die1, 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:

OutcomeX
HH2
HT1
TH1
TT0

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 TrickType
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:

XProbability P(X)
01/4
12/4
21/4

Valid Conditions for a Probability Distribution

ConditionRule
Each probability0 ≤ 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:

XP(X)x · P(X)
00.250
10.500.50
20.250.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²)

XX²P(X)X² · P(X)
000.250
110.500.50
240.251.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:

XP(X)F(x) = P(X ≤ x)
00.20.2
10.30.5
20.51.0

F(1) = P(X ≤ 1) = 0.2 + 0.3 = 0.5 ✅


9. Real-Life Examples

FieldRandom Variable
InsuranceExpected claim amount
BankingExpected loan default
BusinessExpected profit
AgricultureExpected crop yield
Stock MarketExpected 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:

TrapRule
Random Variable ≠ ordinary variableMust be associated with a random experiment
Continuous variable exact probabilityP(X = x) = 0 always
Total probabilityΣP(X) = 1
Expected Value = MeanE(X) = Σx·P(x)
Variance formula orderE(X²) − [E(X)]² — NOT [E(X)]² − E(X²)

Quick Revision Sheet

Formula / ConceptDetail
Expected ValueE(X) = Σ x · P(x)
VarianceVar(X) = E(X²) − [E(X)]²
Standard DeviationSD = √Var(X)
Valid DistributionΣP(X) = 1 and 0 ≤ P(X) ≤ 1
CDFF(x) = P(X ≤ x)
PMF (Discrete)P(X = x) — exact probability
PDF (Continuous)P(X = x) = 0 — use intervals P(a < X < b)
DiscreteCountable values → can COUNT
ContinuousMeasurable values → can MEASURE