# Introduction to Random Variables and Probability Distributions

> AP Statistics · AP Stats 2024-2026
> Source: https://www.owlsprep.com/study/ap-statistics-u11-introduction-to-random-variables-and/

This module covers random variable classification, discrete distribution validity rules, and step-by-step calculation of expected value and variance, aligned to AP exam scoring standards.

**Prerequisites:** [Basic probability addition and complement rules](https://www.owlsprep.com/study/ap-statistics-u10-basic-probability-rules/); [Summation notation for discrete data sets](https://www.owlsprep.com/study/ap-statistics-u02-descriptive-statistics-summation-notation/)

## Learning objectives

- Distinguish between discrete and continuous random variables in context
- Verify that a given table represents a valid discrete probability distribution
- Calculate the expected value and variance of a discrete random variable
- Interpret expected value as a long-run average in real-world scenarios

## Classifying Random Variables

All random variables map outcomes of a random process to numbers, but they fall into two mutually exclusive categories that require completely different probability calculation methods. Correct classification is the first step to solving any AP exam probability problem.

**Discrete vs Continuous Random Variables** — Discrete variables have distinct, separate values with no possible intermediate values. Continuous variables can take any value inside a range, including fractions and decimals to any level of precision.

**Worked example:** Classify each of the following as discrete or continuous: (1) Number of heads in 10 coin flips, (2) Height of a randomly selected high school student, (3) Time to finish a 1-hour exam

1. Step 1: Check if the variable can take a countably infinite set of distinct values. The number of heads can only be 0, 1, ..., 10, so it is discrete.
2. Step 2: Check if the variable can take any value in an interval. Student height can be 162.3 cm, 162.34 cm, etc, so it is continuous.
3. Step 3: Time to finish the exam can be 42.76 minutes, so it is also continuous.

**Check your understanding**

1. Which of the following is a discrete random variable?

   - Weight of a random apple
   - Number of defective parts in a 100-item shipment
   - Time to run a 100m race
   - Volume of water in a random bottle

   *Why:* Counts of items are always discrete, as you cannot have a fraction of a defective part.

## Valid Discrete Probability Distribution Rules

Not every table of numbers paired with probabilities is a valid probability distribution. AP exam questions frequently ask you to verify validity or find a missing probability value to make a distribution valid.

$$0 \leq P(X=x) \leq 1 \text{ for all } x, \quad \sum_{\text{all } x} P(X=x) = 1$$

**Worked example:** A distribution has outcomes X=1,2,3,4 with probabilities 0.2, 0.3, 0.15, and k. Find k to make the distribution valid.

1. Step 1: Sum the known probabilities: 0.2 + 0.3 + 0.15 = 0.65
2. Step 2: Subtract from 1 to find the missing value: k = 1 - 0.65 = 0.35
3. Step 3: Confirm k is between 0 and 1, so the distribution is valid.

> **tip**
>
> If probabilities sum to 0.99 or 1.01 due to rounding, the distribution is still considered valid for AP exam scoring, as long as no individual probability is negative or greater than 1.

## Calculating and Interpreting Expected Value

Expected value is the weighted average of all possible outcomes, where each outcome is weighted by its probability of occurring. This is one of the most frequently tested skills on the AP Statistics exam.

$$\mu_X = E[X] = \sum_{\text{all } x} x \cdot P(X=x)$$

**Worked example:** A carnival game charges \$2 to play. You win \$10 with 10% probability, and win \$0 otherwise. Calculate the expected net profit for a single play.

1. Step 1: Define the net profit random variable X. X = 10 - 2 = \$8 if you win, X = 0 - 2 = -\$2 if you lose.
2. Step 2: The probability of X=8 is 0.1, probability of X=-2 is 0.9.
3. Step 3: Compute E[X] = (8 * 0.1) + (-2 * 0.9) = 0.8 - 1.8 = -\$1.00
4. Step 4: Interpret: Over many repeated plays, the average net loss per game is \$1.

**Exam command terms**

- **Interpret the expected value** — You must explicitly reference the long-run average across many trials, not a single guaranteed outcome *("The expected profit of -\$1 means that over thousands of plays, the carnival will make an average of \$1 per customer.")*

## Variance and Standard Deviation of a Random Variable

Variance measures the average squared deviation of the random variable from its expected value. Unlike sample variance, you do not divide by n or n-1 for theoretical probability distributions.

$$\sigma^2_X = \sum_{\text{all } x} (x - \mu_X)^2 \cdot P(X=x), \quad \sigma_X = \sqrt{\sigma^2_X}$$

**Worked example:** Calculate the variance of the carnival game profit variable from the previous example, where E[X] = -1, X=8 with P=0.1, X=-2 with P=0.9.

1. Step 1: Compute the squared deviation for each outcome: (8 - (-1))² = 81, (-2 - (-1))² = 1
2. Step 2: Weight each squared deviation by its probability: 81 * 0.1 = 8.1, 1 * 0.9 = 0.9
3. Step 3: Sum the weighted values: σ²_X = 8.1 + 0.9 = 9
4. Step 4: Standard deviation σ_X = √9 = \$3

## Common pitfalls

- **Wrong:** Classifying all count variables as continuous
  - Why it fails: Counts are finite or countably infinite, with no possible intermediate values between integers
  - Correct: Only variables that can take any value in a real interval are classified as continuous
- **Wrong:** Skipping the check that all probabilities sum to exactly 1 when verifying a distribution
  - Why it fails: Partial checks often miss small rounding errors or missing probabilities that make the distribution invalid
  - Correct: Explicitly sum all P(X=x) values and confirm the total equals 1 within acceptable rounding error
- **Wrong:** Interpreting expected value as a guaranteed outcome for a single trial
  - Why it fails: Expected value describes long-run average behavior across many trials, not a single certain result
  - Correct: All interpretations of expected value must explicitly reference repeated, identical trials of the random process
- **Wrong:** Using the sample variance formula dividing by n to calculate random variable variance
  - Why it fails: Sample variance rules apply to collected data, not theoretical probability distributions
  - Correct: Always weight each squared deviation from the mean by its corresponding outcome probability
- **Wrong:** Assigning non-zero probability to a single exact value for a continuous random variable
  - Why it fails: Continuous distributions have zero probability for any individual point, as there are infinitely many possible values
  - Correct: For continuous random variables, only calculate probabilities for ranges of values, not single points

## Cheatsheet

| Quantity | Discrete Random Variable Formula | Key Requirement |
| --- | --- | --- |
| Valid Distribution | 0 ≤ P(X=x) ≤ 1 for all x, sum P(X=x) = 1 | No negative probabilities, total probability equals 1 |
| Expected Value μ_X | sum x * P(X=x) | Weight each outcome by its probability |
| Variance σ²_X | sum (x - μ_X)² * P(X=x) | Weight squared deviation by its probability |
| Standard Deviation σ_X | √σ²_X | Units match the original random variable units |

## What's next

Mastering the basics of random variables is the critical foundation for all subsequent AP Statistics probability topics, including binomial and geometric distributions, linear transformations of random variables, and combining independent random variables. These concepts are tested in nearly every AP Stats FRQ section on probability, and appear in 3-5 multiple choice questions on most exam papers. After completing this module, you will be ready to dive into specialized named discrete distributions, which are the most frequently tested random variable scenarios on the AP exam. Practice identifying random variables and calculating expected values in context to build fluency before moving forward.

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-statistics-u11-introduction-to-random-variables-and/
