Study Guide

Introduction to Random Variables and Probability Distributions

AP StatisticsΒ· 12 min read

1. Classifying Random Variablesβ˜…β˜…β˜†β˜†β˜†β± 3 min

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.

πŸ“˜ Definition

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. 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. 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. 3

    Step 3: Time to finish the exam can be 42.76 minutes, so it is also continuous.

βœ“ Quick check
  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

    Reveal answer
    Number of defective parts in a 100-item shipment β€”

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

2. Valid Discrete Probability Distribution Rulesβ˜…β˜…β˜…β˜†β˜†β± 3 min

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≀P(X=x)≀1 for all x,βˆ‘all xP(X=x)=10 \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. 1

    Step 1: Sum the known probabilities: 0.2 + 0.3 + 0.15 = 0.65

  2. 2

    Step 2: Subtract from 1 to find the missing value: k = 1 - 0.65 = 0.35

  3. 3

    Step 3: Confirm k is between 0 and 1, so the distribution is valid.

3. Calculating and Interpreting Expected Valueβ˜…β˜…β˜…β˜†β˜†β± 3 min

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.

ΞΌX=E[X]=βˆ‘all xxβ‹…P(X=x)\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. 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. 2

    Step 2: The probability of X=8 is 0.1, probability of X=-2 is 0.9.

  3. 3

    Step 3: Compute E[X] = (8 * 0.1) + (-2 * 0.9) = 0.8 - 1.8 = -$1.00

  4. 4

    Step 4: Interpret: Over many repeated plays, the average net loss per game is $1.

4. Variance and Standard Deviation of a Random Variableβ˜…β˜…β˜…β˜…β˜†β± 3 min

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.

ΟƒX2=βˆ‘all x(xβˆ’ΞΌX)2β‹…P(X=x),ΟƒX=ΟƒX2\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. 1

    Step 1: Compute the squared deviation for each outcome: (8 - (-1))Β² = 81, (-2 - (-1))Β² = 1

  2. 2

    Step 2: Weight each squared deviation by its probability: 81 * 0.1 = 8.1, 1 * 0.9 = 0.9

  3. 3

    Step 3: Sum the weighted values: σ²_X = 8.1 + 0.9 = 9

  4. 4

    Step 4: Standard deviation Οƒ_X = √9 = $3

5. Common Pitfalls

Wrong move:

Classifying all count variables as continuous

Why:

Counts are finite or countably infinite, with no possible intermediate values between integers

Correct move:

Only variables that can take any value in a real interval are classified as continuous

Wrong move:

Skipping the check that all probabilities sum to exactly 1 when verifying a distribution

Why:

Partial checks often miss small rounding errors or missing probabilities that make the distribution invalid

Correct move:

Explicitly sum all P(X=x) values and confirm the total equals 1 within acceptable rounding error

Wrong move:

Interpreting expected value as a guaranteed outcome for a single trial

Why:

Expected value describes long-run average behavior across many trials, not a single certain result

Correct move:

All interpretations of expected value must explicitly reference repeated, identical trials of the random process

Wrong move:

Using the sample variance formula dividing by n to calculate random variable variance

Why:

Sample variance rules apply to collected data, not theoretical probability distributions

Correct move:

Always weight each squared deviation from the mean by its corresponding outcome probability

Wrong move:

Assigning non-zero probability to a single exact value for a continuous random variable

Why:

Continuous distributions have zero probability for any individual point, as there are infinitely many possible values

Correct move:

For continuous random variables, only calculate probabilities for ranges of values, not single points

6. Quick Reference 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

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 Β· Paper 1

    FRQ on expected value of game outcomes

  • 2022 Β· Paper 2

    MCQ set on random variable classification

  • 2021 Β· Paper 1

    Distribution validity check question

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.