DP Math AA · HL · Statistics & Probability · Updated

AHL 4.14—Properties of discrete and continuous random variables

Get started

Introduction to Discrete and Continuous Random Variables

A random variable is a variable whose value is determined by the outcome of a random experiment. At HL, we study both discrete and continuous random variables in depth, including their measures of centre and spread, and how linear transformations affect them.

Discrete Random Variable

A random variable that can take only a countable number of distinct values (e.g. 0, 1, 2, 3, ...). Each value has an associated probability , and the sum of all probabilities equals 1:

Continuous Random Variable

A random variable that can take any value within a given interval (or union of intervals). It is described by a probability density function (PDF) rather than individual probabilities at each point.

Analogy

Think of a discrete random variable like rolling a die — you get one of a fixed set of outcomes. A continuous random variable is more like measuring the exact height of a student — it can take any value in a range, and the probability of any single exact value is zero.

Expected Value (Mean) of a Discrete Random Variable

Before studying variance, we need the expected value — the probability-weighted average of all possible values:

Expected Value of a Discrete Random Variable


This is also called the mean and denoted .

Example

Example: A discrete random variable has the following distribution:

0123
0.20.30.40.1

Mode and Median of a Discrete Random Variable

Mode (Discrete)

The value of with the highest probability . It is the most likely outcome.

Median (Discrete)

The value such that and . For small distributions, it is found by accumulating probabilities in order until the cumulative total first reaches or exceeds 0.5.

Example

Example: Using the distribution above:

0123
0.20.30.40.1
Cumulative0.20.50.91.0

Mode: has the highest probability (0.4), so mode = 2.

Median: The cumulative probability first reaches 0.5 at , so median = 1.

Variance of Discrete Random Variables

For a discrete random variable with mean , the variance measures how spread out the values are around the mean.

Variance of a Discrete Random Variable

In practice, the following equivalent formula is far more efficient for calculation:

where .

Note

This shortcut formula comes from expanding . It is the form you should use in almost all exam calculations.

Example

Example: A discrete random variable has the following distribution:

1234
0.10.30.40.2

Step 1: Find

Step 2: Find

Step 3: Calculate

Standard deviation:

Free preview

9 more sections in this topic

Checking your topic access