The expected value tells us the long-run average of a random variable, and now we need a number that measures how far from that average the outcomes typically land.
1
Same Mean, Different Spread
The standard deviation of a random variable measures how far its outcomes typically land from the mean.
Remember, we find the expected value μ (the mean) by weighting each outcome by its probability:
μ=∑xi⋅P(X=xi)
Two games can have the exact same expected value of $10 and still feel completely different to play.
Same Mean, Different Spread
2
Why We Square Distances from the Mean
To measure how far Game B's payouts ($4,$8, and $20) typically land from μ=$10, we start with each outcome's distance from the mean, X−μ. Watch what goes wrong if we try to take the weighted average of those distances directly.
Why We Square Distances from the Mean
Weighting the distances X−μ by their probabilities always adds up to zero because the negative pulls below the mean match the positive pull above it:
Squaring each distance (X−μ)2 turns every negative distance positive, gives extra weight to large swings away from the mean, and lets the variances of independent random variables add cleanly like a2+b2=c2.
Wherever the outcomes sit along the number line, the mean μ shifts to keep the seesaw level, so the probability-weighted negative distances on the left and positive distances on the right always add to 0.
No matter where an outcome sits in Game B, the mean shifts with it so the weighted distances below and above the mean always cancel to zero.
3
Finding Variance and Standard Deviation
Now let's combine the squared distances (X−μ)2 in Game B into a single number in dollars that measures the spread.
Finding Variance and Standard Deviation
Text solution
Subtract the mean and square each distanceWe find how far each payout in Game B sits from μ=10 and square the distances so the negative signs don't cancel:
Take the square rootWe take the square root of the variance to undo the squaring and get back to regular dollars:
standard deviationσX=36 dollars2=$6
In Game A, both outcomes ($9 and $11) sit $1 away from $10, giving σX=(−1)2(0.50)+12(0.50)=$1. Both games average $10 in the long run, but Game B typically swings by about $6 from that mean while Game A only swings by $1.
Because we square each outcome's distance from μ, moving a single outcome far from the mean makes its squared distance grow much faster than the distance itself, so the variance σX2 grows rapidly and pulls the standard deviation σX up with it.
Each outcome's squared distance from the mean, scaled by its probability, combines into the variance square, whose side length is the standard deviation.
4
Reading the Formula and Why We Don't Divide by n
We can write all the steps we just did for Game B in a single formula by reading from the inside out.
The subscript X on μX and σX just names the random variable we are measuring. Unlike the formula for a list of n data values, we do not divide by n or n−1 at the end.
5
Finding and Interpreting Standard Deviation in Context
When we are only given the probability distribution, we find the balance point μX first and then use it to find and interpret σX in context.
A small coffee shop tracks X, the number of bags of whole-bean coffee a random customer buys, with P(X=0)=0.50,P(X=1)=0.30, and P(X=2)=0.20.
Finding and Interpreting Standard Deviation in Context
Text solution
Weight the outcomes to find the meanWe multiply each number of bags by its probability and add them up to find the expected value:
Square the distances from the mean and weight by the probabilitiesWe subtract μX=0.7 from each outcome, square the distances, and multiply by the probabilities to get the variance:
Take the square rootWe take the square root of the variance to get back to bags of coffee:
σX=0.61 bags2≈0.78 bags
Over many customers in the long run, we expect customers to buy an average of 0.7 bags of coffee per customer, with the number of bags typically varying from that mean by about 0.78 bags. (When you write this out, always include the long-run context and the units for both numbers.)
Key concepts
A probability distribution is summarized by two numbers in the same units as X:
Center (Expected Value / Mean μX)
Weight each outcome by its probability, μX=∑xi⋅P(X=xi). Because μX is the balance point, the weighted distances ∑(xi−μX)⋅P(X=xi) always add to 0 (in Game A with $9 and $11 at 0.50 each, μX=$10 and (−1)(0.50)+(+1)(0.50)=0).
Spread (Variance σX2 and Standard Deviation σX)
Square each distance from μX so negatives become positive and large swings get extra weight, multiply by the probabilities to get the variance in squared units, and take the square root:
σX2σX=∑(xi−μX)2⋅P(X=xi),=σX2
(In Game B, σX2=(−6)2(0.25)+(−2)2(0.50)+102(0.25)=36 dollars2, so σX=36=$6.)
When not to divide by n
Divide by n or n−1 only when you have a list of n data values. When probabilities P(X=xi) are given, multiplying by those probabilities already weights each outcome by its share of 1, so you never divide the sum by the number of outcomes.
6
Practice
1
A board game spinner lands on X=1,3, or 9 points with probabilities P(X=1)=0.25,P(X=3)=0.50, and P(X=9)=0.25. The expected value is μX=4 points. Find the variance σX2 and standard deviation σX of X, including units.
Watch out: (−3)2 is +9, not −9; keeping the minus signs gives −9(0.25)−1(0.50)+25(0.25)=3.5.Do not average 9,1, and 25 equally as 39+1+25≈11.67, because X=3 happens twice as often as the other outcomes.
Find how far each point value sits from μX=4 and square those distances before weighting by the probabilities. Watch what squaring does to the units.
Subtract μX=4 from each outcome and square the distances:
(1−4)2(3−4)2(9−4)2=(−3)2=9=(−1)2=1=(+5)2=25
(Watch out: (−3)2 is +9, not −9; keeping the minus signs gives −9(0.25)−1(0.50)+25(0.25)=3.5.)
Weight each squared distance by its probability and add them up to find the variance:
(Do not average 9,1, and 25 equally as 39+1+25≈11.67, because X=3 happens twice as often as the other outcomes.)
Take the square root to get back from squared points to points:
σX=9 points2=3 points
2
An appliance repair technician tracks the number of replacement parts, X, needed on a random service call. The distribution is P(X=0)=0.30,P(X=1)=0.50, and P(X=2)=p. Find p, calculate the mean μX and standard deviation σX, and interpret both numbers in context.
All probabilities in a distribution add up to 1. Once you have p, find the balance point μX first so you can measure each outcome's distance from it.
Since the probabilities must add to 1:
p=1−(0.30+0.50)=0.20
Weight each outcome by its probability to find the mean:
(Be sure to subtract the mean μX=0.9 before squaring; squaring the outcomes 02(0.30)+12(0.50)+22(0.20) directly gives 1.30 and a wrong standard deviation of 1.14 parts.)
Take the square root to find the standard deviation:
σX=0.49 parts2=0.7 parts
Over many service calls in the long run, the technician uses an average of 0.9 replacement parts per call, with the number of parts typically varying from that mean by about 0.7 parts.
3
For a random variable X with 4 possible outcomes, a student correctly calculates the weighted squared distances (xi−μX)2⋅P(X=xi) for each outcome and adds them up to get 16. Next, the student divides 16 by 4 to get 4, and takes the square root to get σX=2. Explain the student's mistake and find the correct standard deviation.
The student should not divide by the number of outcomes (n=4). Multiplying each squared distance by its probability P(X=xi) already does the division step by weighting each outcome by its share of the total.Multiplying each squared distance by its probability P(X=xi) already does the division step. For the same reason, do not divide by n−1=3 to get 316≈2.31.
Think about what multiplying each squared distance by P(X=xi) already did to the sum.
The student should not divide by the number of outcomes (n=4). Multiplying each squared distance by its probability P(X=xi) already does the division step by weighting each outcome by its share of the total. (For the same reason, do not divide by n−1=3 to get 316≈2.31.)
The sum 16 is already the variance σX2, so taking the square root gives the standard deviation:
σX=16=4
4
A random variable X has mean μX=10 and three possible outcomes: x1=6 with P(X=6)=0.45,x2=8 with P(X=8)=0.30, and an unknown outcome x3 with P(X=x3)=0.25. For the first two outcomes, the weighted distances (xi−μX)⋅P(X=xi) are −1.8 and −0.6. Use the balance property of the mean to find x3, then find the standard deviation σX.
Watch out: +2.4 is already multiplied by the probability 0.25; forgetting to divide by 0.25 sets x3−10=2.4 and gives the wrong outcome x3=12.4.
On a balanced seesaw at μX=10, what must all three weighted distances add up to?
Because the weighted distances from the mean always add up to 0:
−1.8+(−0.6)+(x3−10)(0.25)(x3−10)(0.25)=0=+2.4
Divide by the probability 0.25 to find the distance x3−10:
x3−10x3=0.252.4=9.6=19.6
(Watch out: +2.4 is already multiplied by the probability 0.25; forgetting to divide by 0.25 sets x3−10=2.4 and gives the wrong outcome x3=12.4.)
Now square the distances (−4,−2, and +9.6), weight each by its probability, and add to find the variance:
(Do not square the weighted distances (−1.8)2+(−0.6)2+(2.4)2=9.36, because that squares the probabilities too and gives σX≈3.06.)
Take the square root to get the standard deviation:
σX=31.44≈5.61
5
Game C pays $6 or $14 with probability 0.50 each. Game D pays $0 with probability 0.20,$10 with probability 0.60, and $20 with probability 0.20. Both games have the same mean (μ=$10) and the same Mean Absolute Deviation ($4). Without doing the full calculation first, predict which game has the larger standard deviation and explain why, then verify by finding σ for each game.
Compare the size of the swings from μ=$10 in each game and what happens when those distances are squared.
Game D has the larger standard deviation because squaring the distances gives extra weight to its big $10 swings ($0 and $20) compared to Game C's steady $4 swings ($6 and $14). (Even though Game D lands right on $10 with distance 0 sixty percent of the time, squaring turns the $10 swings into 100, which outweighs the zeros.)
For Game C, both outcomes sit $4 from μ=$10:
σC=(−4)2(0.50)+42(0.50)=8+8=16=$4
For Game D, the outcomes sit −10,0, and +10 from μ=$10: