All AP Courses AP StatisticsAP Stats

Unit 2 · Topic 2.9 · about 20 minutes

AP Statistics 2.9: Parameters of Random Variables

Calculate the mean and standard deviation of a discrete random variable from its distribution, and interpret both as long-run statements in context.

Unit 2: 15 to 25% of the multiple-choice section

What you'll be able to do

  • Calculate the mean and standard deviation of a discrete random variable.
  • Interpret the mean and standard deviation of a discrete random variable in context.

Key vocabulary

TermWhat it meansThe exam trap
ParameterA number that measures a characteristic of a probability distribution or a population. It has a single, fixed value.Treating μX as uncertain, as if the bakery's mean could be anywhere from 0.57 to 2.93 orders, confuses a fixed parameter with an estimate.
Expected valueThe mean of a discrete random variable, μX=∑xi⋅P(xi), interpreted as the long-run average outcome.No single drive-through order has 1.85 drinks: the expected value need not be a value the variable can take, and it is not a prediction for any one trial.
Standard deviationσX=∑(xi−μX)2⋅P(xi), the typical distance of the values from the mean over the long run.More possible values does not mean more spread: a count that is 0 or 4 has a standard deviation of 2, while 1, 2 or 3 with probabilities 0.25, 0.5 and 0.25 has about 0.71.
VarianceThe square of the standard deviation, written V(X) or σX2.Its units are squared, orders squared or dollars squared, which is why you interpret the standard deviation and not the variance.

Predict first

At a coffee shop's drive-through, the number of drinks X in an order is 1 with probability 0.50, 2 with probability 0.25, 3 with probability 0.15 and 4 with probability 0.10. Over many orders, what is the average number of drinks per order?

Parameters of a distribution

A probability distribution has a center and a spread, just as a data set does. A number that measures a characteristic of a probability distribution, or of a population, is a parameter. A parameter is a single, fixed value: the distribution of X has exactly one mean and one standard deviation. That is the difference from a statistic, which changes from sample to sample, as in 1.2 Variables.

The mean, or expected value

The expected value of a discrete random variable X, also called its mean, is written E(X) or μX. Multiply each possible value by its probability and add:

μX=E(X)=∑xi⋅P(xi)

The expected value is the long-run average of X. If you could watch thousands of drive-through orders, the mean number of drinks per order would settle near 1.85. It is not the value you should expect on any one order, and it does not have to be a value X can take.

The standard deviation

The standard deviation of X, written SD(X) or σX, measures how far the values of X typically fall from the mean over the long run:

σX=∑(xi−μX)2⋅P(xi)

Square each value's distance from the mean, weight it by the value's probability, add, and take the square root. The quantity under the square root is the variance, written V(X) or σX2. The variance is in squared units (orders squared, dollars squared), which is why the standard deviation is the number you interpret.

Worked exampleWedding cakes at a bakery

A bakery tracks X, the number of wedding cake orders it receives in a week. From years of records, X is 0 with probability 0.15, 1 with probability 0.30, 2 with probability 0.30, 3 with probability 0.15 and 4 with probability 0.10. Find and interpret the mean and the standard deviation of X.

  1. Check that it is a distribution. 0.15+0.30+0.30+0.15+0.10=1.

  2. Mean. μX=0(0.15)+1(0.30)+2(0.30)+3(0.15)+4(0.10)=1.75.

  3. Variance. Weight each squared distance from 1.75 by its probability, as in the table below: σX2=0.459375+0.16875+0.01875+0.234375+0.50625=1.3875.

  4. Standard deviation. σX=1.3875≈1.18 orders.

  5. Interpret both in context. Over many weeks, this bakery averages 1.75 wedding cake orders per week. The number of orders in a week typically differs from that mean of 1.75 by about 1.18 orders.

Answer.

μX=1.75 orders and σX≈1.18 orders, both describing this bakery's weeks over the long run.

The bakery calculation, one row per value of X
xP(x)x⋅P(x)(x−1.75)2⋅P(x)
00.1500.459375
10.300.300.16875
20.300.600.01875
30.150.450.234375
40.100.400.50625
Sum1μX=1.75σX2=1.3875

Distribution of weekly wedding cake orders

00.10.20.3Probability0: 0.1501: 0.312: 0.323: 0.1534: 0.14Wedding cake orders in a week

The mean, 1.75, is the balance point of the bars. It falls between two possible values, since no week has 1.75 orders.

Expected value and money

Raffles and insurance companies both run on expected value. A school raffle sells 1,000 tickets for 10 dollars each, with one prize of 2,000 dollars and five prizes of 100 dollars. Let X be one ticket's net gain, the prize minus the 10 dollars paid. X is 1,990 with probability 0.001, 90 with probability 0.005 and −10 with probability 0.994, so

E(X)=1990(0.001)+90(0.005)+(−10)(0.994)=−7.50

Over many tickets, buyers lose an average of 7.50 dollars per ticket, and that is the money the raffle raises. Any one buyer either loses 10 dollars or wins a prize; nobody loses exactly 7.50.

Check your understanding

1

Let X be the number of pets in a randomly chosen household in a town, with P(X=0)=0.35, P(X=1)=0.30, P(X=2)=0.20, P(X=3)=0.10 and P(X=4)=0.05. Find E(X).

2

Let X be the number of pets in a randomly chosen household in a town, with P(X=0)=0.35, P(X=1)=0.30, P(X=2)=0.20, P(X=3)=0.10 and P(X=4)=0.05. Then E(X)=1.2. Which is the best interpretation of E(X)?

3

For Driver A, the number of late deliveries X in a day is 0 or 4, each with probability 0.5. For Driver B, the number Y is 1 with probability 0.25, 2 with probability 0.5 and 3 with probability 0.25. Which statement is true?

4

A bakery counts its wedding cake orders each week. The number of orders in a week, X, has μX=1.75 and σX≈1.18. Which is the best interpretation of the standard deviation?

5

A carnival game costs 2 dollars to play. You roll a fair die, and if it shows a 6 you win 10 dollars; otherwise you win nothing. Let X be your net gain on one play, so X is 8 with probability 16 and −2 with probability 56. Which statement is correct?

Practice

Practice until it is automatic

New numbers every time. Each one is checked the moment you answer, with the full working shown.

Discrete random variables: mean and standard deviation practice page

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 90 minutes.
  • Section II, Free Response: 4 questions in 90 minutes.
  • A graphing calculator with statistical capabilities is expected on both sections.

Questions students ask

Why isn't the expected value the most likely value?

The most likely value is just the one with the highest probability. The expected value weights every value by its probability, so less likely large values still pull it up. For the pets example the most likely number is 0, while E(X)=1.2.

Can an expected value be negative?

Yes, when the variable is a gain that is usually a loss. For one raffle ticket the expected net gain is −7.50 dollars, so over many tickets buyers lose 7.50 dollars per ticket on average, even though no one loses exactly that.

Why do I square the distances from the mean?

Distances above and below the mean would cancel if you added them as they are. Squaring makes every one positive, and the square root at the end brings the units back to those of the variable.

Does a standard deviation of 1.18 orders mean every week is within 1.18 of the mean?

No, it is a typical distance, not a limit. A week with 4 wedding cake orders is 2.25 away from the mean of 1.75, and that happens with probability 0.10.

Is a parameter the same as a statistic?

No. A parameter describes a whole distribution or population and has one fixed value. A statistic is computed from a sample and changes from sample to sample.

Course alignment, for teachers

AP Statistics topic 2.9, Unit 2: Probability, Random Variables, and Probability Distributions.

  • Skill 3.B: Calculate summary statistics, relative positions of points within a distribution, and predicted responses.
  • Skill 4.D: Interpret statistical calculations and results to assess meaning or a claim.