# Parameters of Random Variables

> AP Statistics · AP Stats 2024-2027
> Source: https://www.owlsprep.com/study/ap-statistics-u11-parameters-of-random-variables/

This module covers core descriptive parameters for discrete random variables, including expected value, variance, and rules for transformations and combinations aligned to AP Stats exam requirements.

**Prerequisites:** [Discrete probability distribution construction](https://www.owlsprep.com/study/ap-statistics-u11-discrete-probability-distributions/); Basic algebraic manipulation of linear functions

## Learning objectives

- Calculate the expected value (mean) of a discrete random variable from its full probability distribution
- Derive and compute variance and standard deviation for a discrete random variable
- Apply linear transformation rules to find adjusted mean and spread parameters
- Use combination rules for independent random variables to calculate aggregate sum/difference parameters

## Expected Value of a Discrete Random Variable

Unlike the sample mean of a finite dataset, the expected value of a random variable weights every possible outcome by its corresponding probability, rather than counting each observation equally. It represents the average outcome you would observe if you ran the random process an infinite number of times.

**Expected Value** — Sum of each possible outcome multiplied by its respective probability of occurring

*Notation:* $E[X] = \sum x_i P(X=x_i)$

**Worked example:** A fair 6-sided die is rolled once, and X is the value shown on the top face. Calculate the expected value of X.

1. List all possible outcomes and their probabilities: each x from 1 to 6 has P(X=x) = 1/6
2. $$E[X] = (1 \times 1/6) + (2 \times 1/6) + (3 \times 1/6) + (4 \times 1/6) + (5 \times 1/6) + (6 \times 1/6)$$
3. Sum the terms to get E[X] = 21 / 6 = 3.5

**Check your understanding**

Test your understanding of expected value calculation:

1. A random variable Y takes values 0, 1, 2 with probabilities 0.4, 0.4, 0.2. What is E[Y]?

   - 1.0
   - 1.2
   - 0.8
   - 1.5

   *Why:* 0*0.4 + 1*0.4 + 2*0.2 = 0 + 0.4 + 0.4 = 0.8? Wait no, correct feedback: 0*0.4 + 1*0.4 + 2*0.2 = 0.8, correct answer is 0.8

> **Exam tip:** You do not need to round expected values to whole numbers even if all outcomes are integers; 3.5 for a die roll is a valid result.

## Variance and Standard Deviation of Random Variables

Variance measures the spread of possible outcomes around the expected value. It is calculated as the weighted sum of squared deviations from the mean, weighted by the probability of each outcome. Standard deviation is the square root of variance, measured in the same units as the original random variable.

**Variance of X** — Average squared deviation of outcomes from the expected value

*Notation:* $Var(X) = E[(X - \mu_X)^2] = \sum (x_i - \mu_X)^2 P(X=x_i)$

**Worked example:** Calculate the variance of the 6-sided die roll random variable X from the previous example, where $\mu_X = 3.5$.

1. Compute squared deviation for each outcome: $(1-3.5)^2 = 6.25$, $(2-3.5)^2=2.25$, $(3-3.5)^2=0.25$, $(4-3.5)^2=0.25$, $(5-3.5)^2=2.25$, $(6-3.5)^2=6.25$
2. $$Var(X) = (6.25 + 2.25 + 0.25 + 0.25 + 2.25 + 6.25) \times 1/6$$
3. Sum to get Var(X) = 17.5 / 6 ≈ 2.9167, so $\sigma_X ≈ 1.708$

## Parameters of Linear Transformations

When you apply a linear transformation Y = a + bX to a random variable X, the additive constant a shifts every outcome by the same amount, so it shifts the mean by a but does not change the spread. The scaling factor b multiplies both the mean and the standard deviation, and multiplies variance by $b^2$.

**Worked example:** You earn \$2 for every point shown on a die roll, plus a fixed \$5 participation bonus. Let Y be your total payout, so Y = 5 + 2X. Find E[Y] and $\sigma_Y$.

1. Apply the mean transformation rule: $E[Y] = 5 + 2E[X] = 5 + 2(3.5) = 12$
2. Apply the standard deviation rule: $\sigma_Y = |2| \times \sigma_X ≈ 2 \times 1.708 ≈ 3.416$

> **Exam tip:** Always take the absolute value of b when calculating standard deviation, as spread cannot be negative.

## Parameters for Sums and Differences of Independent Random Variables

For any two random variables, the mean of their sum or difference is always the sum or difference of their individual means. For independent random variables, the variance of their sum or difference is always the sum of their individual variances — you never subtract variances, even when calculating the difference of two variables.

**Exam command terms**

AP exam questions use specific command terms for this topic:

- **Calculate** — Show full substitution of values into the correct formula *(Calculate the standard deviation of total payout)*

- **Justify** — Explicitly state that independence is required to add variances

**Worked example:** Roll two independent fair 6-sided dice, let X1 be the first die value, X2 be the second die value. Find the mean and variance of D = X1 - X2, the difference between the two rolls.

1. Mean of D: $\mu_D = \mu_{X1} - \mu_{X2} = 3.5 - 3.5 = 0$
2. Variance of D: $Var(D) = Var(X1) + Var(X2) ≈ 2.9167 + 2.9167 ≈ 5.833$

## Common pitfalls

- **Wrong:** Subtracting variances when calculating the difference of two random variables
  - Why it fails: Variance is a squared quantity, so spread never cancels out even for differences
  - Correct: Always add variances for sums and differences of independent random variables
- **Wrong:** Multiplying standard deviation by the additive constant a in Y = a + bX
  - Why it fails: A uniform shift of all values does not change the spread of the distribution
  - Correct: Only multiply standard deviation by |b|, ignore the additive constant a
- **Wrong:** Rounding expected value to the nearest integer for discrete outcomes
  - Why it fails: Expected value is a long-run average, not a possible single trial outcome
  - Correct: Retain full decimal precision unless explicitly instructed to round
- **Wrong:** Applying variance addition rules for dependent random variables
  - Why it fails: The omitted covariance term will produce an incorrect under or overestimate of total variance
  - Correct: Explicitly confirm independence before adding variances in your exam working
- **Wrong:** Using equal-count sample mean formula for expected value calculation
  - Why it fails: Random variable outcomes have unequal probabilities, so they cannot be averaged equally
  - Correct: Use the weighted sum of outcomes multiplied by their respective probabilities

## Cheatsheet

| Transformation / Combination | Mean Result | Variance Result | Standard Deviation Result |
| --- | --- | --- | --- |
| Original X | $\mu_X$ | $Var(X)$ | $\sigma_X$ |
| $Y = a + bX$ | $a + b\mu_X$ | $b^2 Var(X)$ | $\|b\|\sigma_X$ |
| $X + Y$ (independent) | $\mu_X + \mu_Y$ | $Var(X) + Var(Y)$ | $\sqrt{Var(X)+Var(Y)}$ |
| $X - Y$ (independent) | $\mu_X - \mu_Y$ | $Var(X) + Var(Y)$ | $\sqrt{Var(X)+Var(Y)}$ |

## What's next

Mastering these parameter rules is the critical foundation for all subsequent AP Stats probability distribution work. You will apply these exact formulas to derive the standard expected value and variance for named discrete distributions including binomial and geometric, which are tested in nearly every AP exam's multiple choice and free response sections. Later, you will extend these combination rules to large sets of independent random variables to prove the Central Limit Theorem, one of the highest-weighted concepts on the entire AP Stats exam. These rules will also be used directly for inference work when calculating standard errors for confidence intervals.

---

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-parameters-of-random-variables/
