AP-STATS-4.6-4.7

U4.6 Random Variables — Mean and SD

Master AP Statistics 4.6-4.7: tell discrete from continuous random variables and compute the mean (expected value) and standard deviation of a discrete distribution.

What you'll do in this lesson

A voice-first session with the Crimsora tutor on U4.6 Random Variables — Mean and SD, then targeted practice and FRQs — with the tutor adapting to where you get stuck.

What this lesson covers

Every time you spin a wheel, roll dice, or count defective phones in a shipment, the numeric outcome is a random variable. This lesson teaches you to recognize whether that variable is discrete or continuous and, for discrete cases, to compute its center and spread directly from a probability distribution table.

These two skills — the expected value μX\mu_X and the standard deviation σX\sigma_X — are the backbone of everything later in Unit 4, from combining random variables to the binomial and geometric distributions. AP questions love to hand you a small table and ask 'what is the expected value?' or 'interpret this standard deviation in context.' Get comfortable with the formulas and the interpretation now, and the harder topics fall into place.

Discrete vs. Continuous Random Variables

A random variable assigns a number to each outcome of a random process. The key classification question is: can you list the possible values, or do they fill an interval?

A discrete random variable takes a countable set of values — often whole numbers you could list, like the number of heads in 4 flips (0,1,2,3,40,1,2,3,4). A continuous random variable can take any value in an interval, like the exact time a runner finishes a race or a person's height. You measure continuous variables; you count discrete ones.
FeatureDiscreteContinuous
Possible valuesCountable, listableAny value in an interval
Probability toolProbability distribution tableDensity curve
P(X=x)P(X = x)Can be positiveAlways 00 at a single point
ExampleNumber of pets ownedWeight of a dog
A common misconception: 'if the numbers are big, it's continuous.' Not true — the number of grains of sand is still discrete because it is countable. Another trap: with continuous variables, the probability of any exact single value is 00; probability comes from areas under a density curve over an interval. This lesson focuses on computing mean and SD for the discrete case, since those use a finite table.

Computing the Mean (Expected Value)

For a discrete random variable, the mean — also called the expected value — is a weighted average of the possible values, where each value is weighted by its probability:μX=E(X)=xP(x)\mu_X = E(X) = \sum x \cdot P(x)You multiply each value by its probability and add up all the products. The result does not have to be a value the variable can actually take. If a game has payouts of $0, 1, and 5 dollars, the expected value might be 1.7 dollars even though 1.7 is impossible on any single play. That is fine — expected value tells you the long-run average outcome over many, many repetitions.

Interpretation matters on the AP exam. A correct interpretation sounds like: 'If we repeated this process many times, the average value of XX would be about μX\mu_X.' Avoid saying 'we expect to get μX\mu_X' on a single trial.

Before computing, always check that the probabilities are valid: each P(x)P(x) must be between 00 and 11, and they must sum to exactly 11. If a table is missing one probability, use P(x)=1\sum P(x) = 1 to solve for it first. A frequent error is forgetting this check and computing a mean from an incomplete distribution.

Computing the Standard Deviation

The variance of a discrete random variable measures how far outcomes typically fall from the mean, weighting squared deviations by their probabilities:σX2=(xμX)2P(x)\sigma_X^2 = \sum (x - \mu_X)^2 \cdot P(x)The standard deviation is the square root of the variance:σX=(xμX)2P(x)\sigma_X = \sqrt{\sum (x - \mu_X)^2 \cdot P(x)}The process has three clear steps. First, find μX\mu_X. Second, for each value compute its deviation (xμX)(x - \mu_X), square it, and multiply by P(x)P(x). Third, add these up to get the variance, then take the square root.

Units matter: variance is in squared units, while standard deviation is back in the original units, which is why we usually report σX\sigma_X. Interpret it as: 'On average, outcomes fall about σX\sigma_X units away from the mean μX\mu_X.'

Two common mistakes: forgetting to square the deviation before multiplying by probability, and forgetting to take the final square root (leaving your answer as the variance). On a calculator, entering the values in L1L_1 and probabilities in L2L_2 and running one-variable statistics gives xˉ\bar{x} (which equals μX\mu_X here) and σx\sigma_x directly — a reliable check on hand computation.

How the AP Exam Tests This

Multiple-choice questions usually give a completed distribution table and ask for the expected value, or give a table with one missing probability that you must find first. Sometimes they ask which of several interpretations of μX\mu_X or σX\sigma_X is correct — read carefully, because the wrong choices often confuse 'long-run average' with 'guaranteed result of one trial.'

Free-response questions frequently embed this skill inside a larger problem. You might build the distribution, compute the mean, and then interpret it in context, all for partial credit. Communication counts: state the formula or show the products, report a numeric answer with units, and interpret in a complete sentence tied to the scenario.
TaskWhat graders want
Verify distributionShow P(x)=1\sum P(x) = 1
Compute μX\mu_XShow xP(x)\sum x P(x) with a value and units
Compute σX\sigma_XCorrect squared deviations, final square root
Interpret'Over many repetitions...' phrasing in context
A reliable strategy: organize your work in a table with columns for xx, P(x)P(x), xP(x)x\cdot P(x), and (xμ)2P(x)(x-\mu)^2 P(x). This keeps every step visible and earns method credit even if arithmetic slips.

Key terms

Random Variable.
A variable whose numeric value is determined by the outcome of a random process, denoted with a capital letter such as XX.
Discrete Random Variable.
A random variable with a countable set of possible values that can be listed, such as counts of events.
Continuous Random Variable.
A random variable that can take any value within an interval, described by a density curve rather than a table.
Probability Distribution.
A list of all possible values of a discrete random variable together with their probabilities, which must sum to 11.
Expected Value (Mean).
The long-run average value of a random variable, μX=xP(x)\mu_X = \sum x \cdot P(x), a probability-weighted average.
Variance.
The probability-weighted average of squared deviations from the mean, σX2=(xμX)2P(x)\sigma_X^2 = \sum (x-\mu_X)^2 P(x).
Standard Deviation.
The square root of the variance, σX\sigma_X, measuring typical distance of outcomes from the mean in original units.

Worked example

A carnival game charges a fixed entry and lets XX be the number of tokens a player wins. The distribution is: P(0)=0.4P(0)=0.4, P(1)=0.3P(1)=0.3, P(2)=0.2P(2)=0.2, and P(3)=?P(3)=?. Find the missing probability, then compute the mean and standard deviation of XX.
First find P(3)P(3). Since all probabilities sum to 11: P(3)=1(0.4+0.3+0.2)=10.9=0.1P(3) = 1 - (0.4 + 0.3 + 0.2) = 1 - 0.9 = 0.1.

Now compute the mean using μX=xP(x)\mu_X = \sum x \cdot P(x):μX=0(0.4)+1(0.3)+2(0.2)+3(0.1)=0+0.3+0.4+0.3=1.0\mu_X = 0(0.4) + 1(0.3) + 2(0.2) + 3(0.1) = 0 + 0.3 + 0.4 + 0.3 = 1.0So a player wins an average of 1.01.0 token per play over the long run.

Next compute the variance. For each value find (x1.0)2P(x)(x - 1.0)^2 \cdot P(x):

For x=0x=0: (01)2(0.4)=(1)(0.4)=0.4(0-1)^2(0.4) = (1)(0.4) = 0.4.

For x=1x=1: (11)2(0.3)=(0)(0.3)=0(1-1)^2(0.3) = (0)(0.3) = 0.

For x=2x=2: (21)2(0.2)=(1)(0.2)=0.2(2-1)^2(0.2) = (1)(0.2) = 0.2.

For x=3x=3: (31)2(0.1)=(4)(0.1)=0.4(3-1)^2(0.1) = (4)(0.1) = 0.4.

Sum: σX2=0.4+0+0.2+0.4=1.0\sigma_X^2 = 0.4 + 0 + 0.2 + 0.4 = 1.0.

Take the square root: σX=1.0=1.0\sigma_X = \sqrt{1.0} = 1.0 token.

Interpretation: over many plays, players win about 1.01.0 token on average, and the number of tokens won typically varies by about 1.01.0 token from that mean.

Practice questions

Which of the following is a continuous random variable?
  1. The number of text messages a student sends in a day
  2. The exact number of minutes a student sleeps in a night
  3. The number of red cards drawn from a deck of 5 cards
  4. The number of correct answers on a 20-question quiz

Answer: The exact number of minutes a student sleeps in a night

Time can take any value in an interval (7.5 hours, 7.52 hours, and so on), so it is measured, not counted, making it continuous. The other three are counts with listable whole-number values, so they are discrete. Remember: you count discrete variables and measure continuous ones.
A random variable XX has values 1,2,31, 2, 3 with probabilities 0.5,0.3,0.20.5, 0.3, 0.2. What is E(X)E(X)?
  1. 1.7
  2. 2.0
  3. 1.5
  4. 2.3

Answer: 1.7

Apply μX=xP(x)=1(0.5)+2(0.3)+3(0.2)=0.5+0.6+0.6=1.7\mu_X = \sum x P(x) = 1(0.5) + 2(0.3) + 3(0.2) = 0.5 + 0.6 + 0.6 = 1.7. Note the expected value need not be one of the listed values; it is the long-run average over many repetitions.
A small business tracks XX, the number of service calls received in an hour, with distribution P(0)=0.2P(0)=0.2, P(1)=0.5P(1)=0.5, P(2)=0.3P(2)=0.3. Compute the mean and standard deviation of XX, and interpret each in context.

Answer: Mean μX=1.1\mu_X = 1.1 calls; standard deviation σX0.70\sigma_X \approx 0.70 calls.

Mean: μX=0(0.2)+1(0.5)+2(0.3)=0+0.5+0.6=1.1\mu_X = 0(0.2) + 1(0.5) + 2(0.3) = 0 + 0.5 + 0.6 = 1.1 calls. Variance: (01.1)2(0.2)+(11.1)2(0.5)+(21.1)2(0.3)=(1.21)(0.2)+(0.01)(0.5)+(0.81)(0.3)=0.242+0.005+0.243=0.49(0-1.1)^2(0.2) + (1-1.1)^2(0.5) + (2-1.1)^2(0.3) = (1.21)(0.2) + (0.01)(0.5) + (0.81)(0.3) = 0.242 + 0.005 + 0.243 = 0.49. So σX=0.49=0.70\sigma_X = \sqrt{0.49} = 0.70 calls. Interpretation: over many hours the business averages about 1.11.1 calls per hour, and the hourly count typically varies by about 0.700.70 call from that mean.

FAQ

What is the difference between the mean and the expected value?
They are the same thing for a random variable. 'Mean of XX,' 'expected value of XX,' μX\mu_X, and E(X)E(X) all refer to the probability-weighted average xP(x)\sum x \cdot P(x). The AP exam uses these terms interchangeably.
Why doesn't the expected value have to be a possible outcome?
Expected value is a long-run average, not a prediction for one trial. Averaging outcomes like 00 and 11 over many trials can produce 0.60.6, which no single trial can equal. It describes central tendency across many repetitions.
Do I use the division-by-n standard deviation formula here?
No. For a random variable you weight by probability, not by dividing by a sample size. Use σX=(xμX)2P(x)\sigma_X = \sqrt{\sum (x-\mu_X)^2 P(x)}. On a calculator's one-variable stats, enter values in one list and probabilities in the frequency list, then read σx\sigma_x.
Can a continuous random variable have a probability distribution table?
No. Continuous variables are described by density curves, and the probability of any single exact value is 00. Probabilities come from areas under the curve over intervals. Tables of P(x)P(x) apply only to discrete random variables.

Learn this with a teacher, not a page

The Crimsora tutor teaches U4.6 Random Variables — Mean and SD live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.