AP STATISTICS • PROBABILITY, RANDOM VARIABLES, AND PROBABILITY DISTRIBUTIONS

Mean and Standard Deviation of Random Variables

Quantifying the center and spread of a random variable's probability distribution to predict long-run behavior.

Historical Context & Motivation

Long before modern statistics formalized the language of random variables, mathematicians and gamblers were grappling with a fundamental question: if a random process is repeated many times, what outcome should one expect on average, and how much will individual outcomes deviate from that average? This twin concern—center and spread—drove centuries of mathematical innovation. The concept of the expected value emerged from correspondence among European mathematicians debating the fair price of games of chance, while the notion of standard deviation crystallized much later as astronomers sought to quantify the reliability of their measurements.

1654
Pascal–Fermat Correspondence
Blaise Pascal and Pierre de Fermat exchanged letters on the "problem of points," laying the groundwork for probability theory and the idea that uncertain outcomes have a calculable long-run average.
1657
Huygens and Expected Value
Christiaan Huygens published De Ratiociniis in Ludo Aleae, introducing what would become the concept of expected value—the probability-weighted average of all possible outcomes.
1713
Bernoulli's Ars Conjectandi
Jacob Bernoulli's posthumous masterwork proved the Law of Large Numbers, demonstrating that sample means converge to the expected value as the number of trials grows.
1893
Pearson Coins "Standard Deviation"
Karl Pearson introduced the term "standard deviation" as a measure of dispersion, replacing various inconsistent notations and formalizing the concept for modern statistics.

Today, the mean (expected value) and standard deviation of a random variable form the twin pillars on which probability distributions rest. Together they answer two essential questions: Where is the distribution centered? and How much variability exists around that center? Understanding these parameters is essential for everything from insurance pricing to quality control in manufacturing, and they appear throughout the AP Statistics curriculum.

Core Principles & Definitions

A random variable assigns a numerical value to each outcome of a random process. When we describe its probability distribution—the complete list of values and their associated probabilities—we can compute summary measures that characterize the distribution's behavior. The mean and standard deviation are the two most important of these measures, and they parallel the sample mean (x̄) and sample standard deviation (s) you already know from descriptive statistics, but they describe the theoretical population of all possible outcomes rather than a finite dataset.

1

Mean (Expected Value) μ_X

The probability-weighted average of all possible values of the random variable. It represents the long-run average outcome if the random process were repeated indefinitely. Denoted μX or E(X).
2

Variance σ²_X

The probability-weighted average of the squared deviations from the mean. Variance measures spread in squared units, making it useful for algebraic manipulation but less interpretable on its own.
3

Standard Deviation σ_X

The positive square root of the variance. It returns the measure of spread to the original units of the random variable, making it directly interpretable as a typical deviation from the mean.
4

Discrete vs. Continuous

For discrete random variables, summation (Σ) is used. For continuous random variables, integration (∫) replaces summation. On the AP exam, you work primarily with discrete distributions and named continuous distributions.
KEY TAKEAWAY
Think of the mean μX as the balance point of the probability distribution—just as a physical seesaw balances where the weighted masses on each side are equal. The standard deviation σX then measures how far, on average, the outcomes sit from that balance point. In engineering and finance, these two numbers together tell you the expected performance of a system and how much risk surrounds that expectation.

Visualizing the Mean and Standard Deviation

The following diagram illustrates the probability distribution of a discrete random variable X representing the number of heads in three fair coin flips. The probability histogram shows all possible values (0, 1, 2, 3), their probabilities, the location of the mean μX = 1.5, and the interval within one standard deviation of the mean.

The dashed pink line marks the mean μX = 1.5, which is the balance point of the distribution. The shaded violet region shows the interval from μ − σ to μ + σ (approximately 0.63 to 2.37). Notice that the values x = 1 and x = 2, which together carry 75% of the total probability, fall within this one-standard-deviation band.

Several features of this diagram are worth noting. First, the mean μX = 1.5 does not correspond to any value that X can actually take—it is a theoretical long-run average, not a possible outcome. Second, the distribution is symmetric, so the mean falls exactly at the midpoint. Third, the standard deviation σX ≈ 0.87 captures the fact that most of the probability mass is concentrated near the center; if the distribution were more spread out (e.g., all four values equally likely), the standard deviation would be larger.

Mathematical Framework

The formulas for the mean and standard deviation of a discrete random variable follow directly from the idea of probability-weighted averaging. Unlike descriptive statistics where each data point is counted equally, here each value is weighted by its probability of occurring. This section presents the three core formulas you must know for the AP exam, along with the rules for linear transformations and combinations of random variables.

MEAN (EXPECTED VALUE)
μ_X = E(X) = Σ x_i · P(x_i)
Sum over all possible values xi of the random variable. Each value is multiplied by its probability P(xi), and the products are summed.
VARIANCE
σ²_X = Var(X) = Σ (x_i − μ_X)² · P(x_i)
Each squared deviation (xi − μX)² is weighted by its probability. The result is in squared units of X.
STANDARD DEVIATION
σ_X = √(σ²_X) = √[ Σ (x_i − μ_X)² · P(x_i) ]
Taking the square root returns the spread measure to the original units of X, making it directly interpretable.

Rules for Linear Transformations

If Y = a + bX, where a and b are constants, then the mean and standard deviation transform predictably. The linear transformation rules state that μY = a + bμX and σY = |b| × σX. Adding a constant shifts the mean but does not affect the spread. Multiplying by a constant scales both the mean and the standard deviation.

COMBINING INDEPENDENT RANDOM VARIABLES
μ_{X±Y} = μ_X ± μ_Y σ²_{X±Y} = σ²_X + σ²_Y
For independent random variables X and Y: means add or subtract as expected, but variances always ADD—even when subtracting the random variables. Standard deviations do NOT add directly.
⚠️ AP Exam Alert
A common exam trap: when computing the spread of X − Y for independent variables, students mistakenly subtract the variances. Remember, variances always add when combining independent random variables, whether you are adding or subtracting them. The difference of two independent random variables is more variable than either one alone.

Transformations & Combinations in Detail

Understanding how the mean and standard deviation behave under transformations and combinations is one of the most tested skills on the AP Statistics exam. The diagram below provides a visual summary of the key rules, illustrating how shifting, scaling, and combining independent random variables affect the center and spread of a distribution.

A summary of all transformation and combination rules for random variables. The violet and amber boxes cover single-variable transformations. The emerald and red boxes cover combining two independent random variables. Note particularly that the red box (difference) still shows variances adding—this is the most commonly tested point.

A critical distinction worth reinforcing: the combination rules for variance require independence. If X and Y are not independent, you must account for their covariance, and the variance formula becomes σ²X±Y = σ²X + σ²Y ± 2Cov(X, Y). On the AP exam, however, you will almost always be told that the variables are independent, which simplifies the formula by setting the covariance term to zero. Always check the problem statement for this condition before applying the rules.

💡 Why Variances Add When Subtracting
Imagine independently choosing a random person's height in the U.S. and a random person's height in Japan, then computing the difference. The difference is uncertain because both selections inject randomness into the result. Whether you add or subtract two independent sources of uncertainty, the total uncertainty (variance) increases.

Worked Example

A small insurance company sells a one-year policy that pays out $10,000 with probability 0.02 and $0 otherwise. The annual premium is $300. Let X represent the company's profit on a randomly selected policy. Find the mean and standard deviation of X.

Insurance Policy Profit
1
Step 1 — Define the Random Variable and Its DistributionThe profit X depends on whether the company pays a claim. If no claim is filed (probability 0.98), the company keeps the $300 premium, so X = $300. If a claim is filed (probability 0.02), the company receives $300 in premium but pays $10,000, so X = $300 − $10,000 = −$9,700.
2
Step 2 — Set Up the Probability Distribution TableX takes two values: x₁ = 300 with P(x₁) = 0.98, and x₂ = −9,700 with P(x₂) = 0.02. Verify that probabilities sum to 1: 0.98 + 0.02 = 1 ✓.
3
Step 3 — Compute the MeanμX = Σ xi × P(xi) = (300)(0.98) + (−9,700)(0.02) = 294 + (−194) = 100.
μ_X = $100
4
Step 4 — Compute the Varianceσ²X = Σ (xi − μX)² × P(xi) = (300 − 100)²(0.98) + (−9,700 − 100)²(0.02) = (200)²(0.98) + (−9,800)²(0.02) = 40,000(0.98) + 96,040,000(0.02) = 39,200 + 1,920,800 = 1,960,000.
σ²_X = 1,960,000 dollars²
5
Step 5 — Compute the Standard DeviationσX = √1,960,000 = 1,400.
σ_X = $1,400
6
Step 6 — Interpret in ContextOn average, the company expects to profit $100 per policy sold. However, the standard deviation of $1,400 indicates enormous variability in individual policy outcomes—the profit from any single policy is highly unpredictable. This is why insurance companies sell many policies: the Law of Large Numbers ensures the average profit per policy approaches μX = $100 as the number of policies grows.

Mean vs. Standard Deviation: Strengths & Limitations

The mean and standard deviation each capture a distinct aspect of a random variable's probability distribution, and each has strengths and limitations that determine when it is most useful. Comparing them side by side clarifies their complementary roles.

Comparison of mean and standard deviation as summary measures of a random variable's distribution.
FeatureMean (μ_X)Standard Deviation (σ_X)
MeasuresCenter / long-run averageSpread / typical deviation from center
UnitsSame as XSame as X (variance is in squared units)
Affected by outliers?Yes—extreme values with even small probabilities can shift the meanYes—extreme values inflate squared deviations substantially
Additive for independent RVs?Means always add (no independence needed)Standard deviations do NOT add; variances add only for independent RVs
Key limitationTells nothing about shape or spread of the distributionTells nothing about center; alone cannot determine shape
KEY TAKEAWAY
Neither the mean nor the standard deviation alone fully describes a distribution. In practice—whether in pharmaceutical trials assessing the expected efficacy of a drug (mean) and the patient-to-patient variability in response (standard deviation), or in portfolio theory balancing expected returns against risk—you need both parameters working together. On the AP exam, always report both center and spread when describing a distribution, and interpret them in context.

Connections to Advanced Theory

The mean and standard deviation of random variables are not isolated topics; they form the theoretical foundation for several major ideas that appear later in the AP Statistics curriculum and in college-level probability. The table below connects the concepts from this lesson to the broader statistical framework.

How the mean and standard deviation of random variables connect to topics later in the AP Statistics course.
This LessonAdvanced ExtensionConnection
μ_X = Σ x_i · P(x_i)Sampling distributions: μ_x̄ = μThe mean of the sampling distribution equals the population mean—an unbiased estimator result.
σ²_{X+Y} = σ²_X + σ²_YSampling distributions: σ_x̄ = σ / √nThe variance-addition rule applied n times leads to the formula for the standard error of the sample mean.
Linear transformation rulesZ-scores: Z = (X − μ) / σStandardization is a linear transformation that produces μ_Z = 0 and σ_Z = 1.
Expected value E(X)Binomial: μ = np, σ = √(np(1−p))The binomial formulas are derived by summing n independent Bernoulli random variables using the combination rules from this lesson.

Perhaps the most powerful downstream application is the Central Limit Theorem, which states that the sampling distribution of the sample mean x̄ is approximately normal for large n, with mean μ and standard deviation σ/√n. This theorem relies entirely on the concepts of expected value and variance addition for independent random variables. When you encounter confidence intervals and hypothesis tests later in the course, remember that the machinery powering those procedures was built from the rules you learned here—specifically, how means and variances combine when independent random variables are summed.

Practice Problems

1
A discrete random variable X has mean μX = 5 and standard deviation σX = 2. A new random variable Y is defined as Y = 3X − 4. What are the mean and standard deviation of Y?
2
A spinner is divided into three regions. The random variable X represents the dollar amount won on a single spin. The probability distribution is: P(X = 1) = 0.50, P(X = 5) = 0.30, P(X = 10) = 0.20. What is the standard deviation of X?
3
Two independent random variables X and Y have the following parameters: μX = 20, σX = 3, μY = 12, σY = 4. What are the mean and standard deviation of D = X − Y?
PROBLEM 4APPLIED
A coffee shop sells small, medium, and large drinks. Let X represent the price (in dollars) of a randomly selected drink. The probability distribution is given below. | x (price) | 3.00 | 4.50 | 6.00 | | P(X = x) | 0.40 | 0.35 | 0.25 | (a) Calculate the mean and standard deviation of X. (b) The shop introduces a new pricing model where every drink's price increases by $0.50 and then a 10% surcharge is applied. Let Y represent the new price. Express Y as a function of X and find μ_Y and σ_Y. (c) On a given day, the shop sells 200 drinks. Assuming each drink's price is an independent observation of X, find the mean and standard deviation of the total revenue T = X₁ + X₂ + ⋯ + X₂₀₀. Interpret the standard deviation in context.
PROBLEM 5CRITICAL THINKING
A game costs $5 to play. A fair six-sided die is rolled. If the die shows 1 or 2, the player receives nothing. If the die shows 3, 4, or 5, the player receives $4. If the die shows 6, the player receives $15. Let W represent the player's net gain (amount received minus the $5 cost). (a) Construct the probability distribution of W. (b) Calculate E(W) and σ_W. Is this a fair game? Justify your answer. (c) Suppose a player plays this game 50 independent times. Let S represent the player's total net gain over 50 plays. Find μ_S and σ_S. (d) Using your answers from part (c), explain why a player who plays 50 times could reasonably expect to lose money overall despite the possibility of large individual wins. Support your argument with a probabilistic interpretation of the mean and standard deviation of S.

Summary

The mean (expected value) of a discrete random variable, μX = Σ xi · P(xi), represents the long-run average outcome and serves as the balance point of the probability distribution. The standard deviation, σX = √[Σ (xi − μX)² · P(xi)], measures the typical deviation from the mean and quantifies the variability in the distribution.

For linear transformations Y = a + bX, the mean transforms as μY = a + bμX and the standard deviation as σY = |b|σX. When combining independent random variables, means add or subtract as expected, but variances always add—even when the random variables are subtracted. These rules form the foundation for sampling distributions, the Central Limit Theorem, and all inference procedures in AP Statistics.

Varsity Tutors • AP Statistics • Mean and Standard Deviation of Random Variables