StatisticsRandom Variables3 of 4
Random Variables · 3

Standard Deviation of a Random Variable

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 μ\ctr{\mu} (the mean) by weighting each outcome by its probability:

μ\displaystyle \ctr{\mu} =∑xi⋅P(X=xi)\displaystyle = \sum \val{x_i} \cdot \prob{P(X = x_i)}

Two games can have the exact same expected value of $10\$\ctr{10} and still feel completely different to play.

0.50\htmlClass{lc-green}{0.50}
0.50\htmlClass{lc-green}{0.50}
9\htmlClass{lc-blue}{9}
11\htmlClass{lc-blue}{11}
μ=$10\htmlClass{lc-violet}{\mu} = \$\htmlClass{lc-violet}{10}
Game A\text{Game A}
0.25\htmlClass{lc-green}{0.25}
0.50\htmlClass{lc-green}{0.50}
0.25\htmlClass{lc-green}{0.25}
4\htmlClass{lc-blue}{4}
8\htmlClass{lc-blue}{8}
20\htmlClass{lc-blue}{20}
μ=$10\htmlClass{lc-violet}{\mu} = \$\htmlClass{lc-violet}{10}
Game B\text{Game B}
$0\htmlClass{lc-mute}{\$0}
$5\htmlClass{lc-mute}{\$5}
$10\htmlClass{lc-mute}{\$10}
$15\htmlClass{lc-mute}{\$15}
$20\htmlClass{lc-mute}{\$20}
Same Mean, Different Spread
H\text{H}
88
44
2020
Game A\text{Game A}
X\htmlClass{lc-blue}{X}
P(X)\htmlClass{lc-green}{P(X)}
9\htmlClass{lc-blue}{9}
0.50\htmlClass{lc-green}{0.50}
11\htmlClass{lc-blue}{11}
0.50\htmlClass{lc-green}{0.50}
μ=  ?\htmlClass{lc-violet}{\mu} = \;?
Game B\text{Game B}
X\htmlClass{lc-blue}{X}
P(X)\htmlClass{lc-green}{P(X)}
4\htmlClass{lc-blue}{4}
0.25\htmlClass{lc-green}{0.25}
8\htmlClass{lc-blue}{8}
0.50\htmlClass{lc-green}{0.50}
20\htmlClass{lc-blue}{20}
0.25\htmlClass{lc-green}{0.25}
μ=  ?\htmlClass{lc-violet}{\mu} = \;?
2

Why We Square Distances from the Mean

To measure how far Game B's payouts ($4\$\val{4}, $8\$\val{8}, and $20\$\val{20}) typically land from μ=$10\ctr{\mu} = \$\ctr{10}, we start with each outcome's distance from the mean, X−μ\val{X} - \ctr{\mu}. Watch what goes wrong if we try to take the weighted average of those distances directly.

Why We Square Distances from the Mean
Game B\text{Game B}
0.25\htmlClass{lc-green}{0.25}
0.50\htmlClass{lc-green}{0.50}
0.25\htmlClass{lc-green}{0.25}
$4\$\htmlClass{lc-blue}{4}
$8\$\htmlClass{lc-blue}{8}
$20\$\htmlClass{lc-blue}{20}
μ=$10\htmlClass{lc-violet}{\mu} = \$\htmlClass{lc-violet}{10}
X\htmlClass{lc-blue}{X}
P(X)\htmlClass{lc-green}{P(X)}
X−μ\htmlClass{lc-blue}{X} - \htmlClass{lc-violet}{\mu}
4\htmlClass{lc-blue}{4}
0.25\htmlClass{lc-green}{0.25}
??
8\htmlClass{lc-blue}{8}
0.50\htmlClass{lc-green}{0.50}
??
20\htmlClass{lc-blue}{20}
0.25\htmlClass{lc-green}{0.25}
??

Weighting the distances X−μ\val{X} - \ctr{\mu} by their probabilities always adds up to zero because the negative pulls below the mean match the positive pull above it:

(−6)(0.25)+(−2)(0.50)⏟below μ: −2.5+(+10)(0.25)⏟above μ: +2.5\displaystyle \underbrace{(\spread{-6})(\prob{0.25}) + (\spread{-2})(\prob{0.50})}_{\text{below }\ctr{\mu}\text{: }\spread{-2.5}} + \underbrace{(\spread{+10})(\prob{0.25})}_{\text{above }\ctr{\mu}\text{: }\spread{+2.5}} =0\displaystyle = 0

Squaring each distance (X−μ)2(\val{X} - \ctr{\mu})^{\spread{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=c2a^2 + b^2 = c^2.

Wherever the outcomes sit along the number line, the mean μ\ctr{\mu} shifts to keep the seesaw level, so the probability-weighted negative distances on the left and positive distances on the right always add to 00.

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(\val{X} - \ctr{\mu})^{\spread{2}} in Game B into a single number in dollars that measures the spread.

Finding Variance and Standard Deviation
Game B\text{Game B}
0.25\htmlClass{lc-green}{0.25}
0.50\htmlClass{lc-green}{0.50}
0.25\htmlClass{lc-green}{0.25}
$4\$\htmlClass{lc-blue}{4}
$8\$\htmlClass{lc-blue}{8}
$20\$\htmlClass{lc-blue}{20}
μ=$10\htmlClass{lc-violet}{\mu} = \$\htmlClass{lc-violet}{10}
−6\htmlClass{lc-pink}{-6}
−2\htmlClass{lc-pink}{-2}
+10\htmlClass{lc-pink}{+10}
36\htmlClass{lc-pink}{36}
4\htmlClass{lc-pink}{4}
100\htmlClass{lc-pink}{100}
σX=  ?\htmlClass{lc-pink}{\sigma_X} = \;?
Text solution
Subtract the mean and square each distanceWe find how far each payout in Game B sits from μ=10\ctr{\mu} = \ctr{10} and square the distances so the negative signs don't cancel:
(4−10)2=(−6)2=36(8−10)2=(−2)2=4(20−10)2=(+10)2=100\displaystyle \begin{aligned} (\val{4} - \ctr{10})^{\spread{2}} &= \spread{(-6)^2} = \spread{36} \\ (\val{8} - \ctr{10})^{\spread{2}} &= \spread{(-2)^2} = \spread{4} \\ (\val{20} - \ctr{10})^{\spread{2}} &= \spread{(+10)^2} = \spread{100} \end{aligned}
Weight by the probabilities and addWe multiply each squared distance by its probability and add them up to find the variance in squared dollars:
σX2⏟variance=36(0.25)+4(0.50)+100(0.25)=9+2+25=36 dollars2\displaystyle \begin{aligned} \underbrace{\spread{\sigma_X^2}}_{\text{variance}} &= \spread{36}(\prob{0.25}) + \spread{4}(\prob{0.50}) + \spread{100}(\prob{0.25}) \\ &= \spread{9} + \spread{2} + \spread{25} \\ &= \spread{36}\text{ dollars}^2 \end{aligned}
Take the square rootWe take the square root of the variance to undo the squaring and get back to regular dollars:
σX⏟standard deviation\displaystyle \underbrace{\spread{\sigma_X}}_{\text{standard deviation}} =36 dollars2\displaystyle = \sqrt{\spread{36}\text{ dollars}^2} =$6\displaystyle = \$\spread{6}

In Game A, both outcomes ($9\$\val{9} and $11\$\val{11}) sit $1\$\spread{1} away from $10\$\ctr{10}, giving σX=(−1)2(0.50)+12(0.50)=$1\spread{\sigma_X} = \sqrt{\spread{(-1)^2}(\prob{0.50}) + \spread{1^2}(\prob{0.50})} = \$\spread{1}. Both games average $10\$\ctr{10} in the long run, but Game B typically swings by about $6\$\spread{6} from that mean while Game A only swings by $1\$\spread{1}.

Because we square each outcome's distance from μ\ctr{\mu}, moving a single outcome far from the mean makes its squared distance grow much faster than the distance itself, so the variance σX2\spread{\sigma_X^2} grows rapidly and pulls the standard deviation σX\spread{\sigma_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 nn

We can write all the steps we just did for Game B in a single formula by reading from the inside out.

Reading the Formula and Why We Don't Divide by n
σX\displaystyle \spread{\sigma_X} =∑(xi−μX)2⋅P(X=xi)\displaystyle = \sqrt{\sum (\val{x_i} - \ctr{\mu_X})^{\spread{2}} \cdot \prob{P(X = x_i)}}

Here is what each piece of the formula does:

σX\displaystyle \spread{\sigma_X} =∑(xi−μX)2⏟squared distance⋅P(X=xi)⏟probability weight\displaystyle = \sqrt{\sum \underbrace{(\val{x_i} - \ctr{\mu_X})^{\spread{2}}}_{\text{squared distance}} \cdot \underbrace{\prob{P(X = x_i)}}_{\text{probability weight}}}

The subscript XX on μX\ctr{\mu_X} and σX\spread{\sigma_X} just names the random variable we are measuring. Unlike the formula for a list of nn data values, we do not divide by nn or n−1n - 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\ctr{\mu_X} first and then use it to find and interpret σX\spread{\sigma_X} in context.

A small coffee shop tracks X\val{X}, the number of bags of whole-bean coffee a random customer buys, with P(X=0)=0.50\prob{P(X = 0)} = \prob{0.50}, P(X=1)=0.30\prob{P(X = 1)} = \prob{0.30}, and P(X=2)=0.20\prob{P(X = 2)} = \prob{0.20}.

Finding and Interpreting Standard Deviation in Context
X=bags bought\htmlClass{lc-blue}{X} = \text{bags bought}
X\htmlClass{lc-blue}{X}
P(X)\htmlClass{lc-green}{P(X)}
0\htmlClass{lc-blue}{0}
0.50\htmlClass{lc-green}{0.50}
1\htmlClass{lc-blue}{1}
0.30\htmlClass{lc-green}{0.30}
2\htmlClass{lc-blue}{2}
0.20\htmlClass{lc-green}{0.20}
0.50\htmlClass{lc-green}{0.50}
0.30\htmlClass{lc-green}{0.30}
0.20\htmlClass{lc-green}{0.20}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
μX=  ?σX=  ?\begin{aligned} \htmlClass{lc-violet}{\mu_X} &= \;? \\ \htmlClass{lc-pink}{\sigma_X} &= \;? \end{aligned}
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:
μX=0(0.50)+1(0.30)+2(0.20)=0+0.30+0.40=0.7 bags\displaystyle \begin{aligned} \ctr{\mu_X} &= \val{0}(\prob{0.50}) + \val{1}(\prob{0.30}) + \val{2}(\prob{0.20}) \\ &= 0 + 0.30 + 0.40 \\ &= \ctr{0.7}\text{ bags} \end{aligned}
Square the distances from the mean and weight by the probabilitiesWe subtract μX=0.7\ctr{\mu_X} = \ctr{0.7} from each outcome, square the distances, and multiply by the probabilities to get the variance:
σX2=(0−0.7)2(0.50)+(1−0.7)2(0.30)+(2−0.7)2(0.20)=(0.49)(0.50)+(0.09)(0.30)+(1.69)(0.20)=0.245+0.027+0.338=0.61 bags2\displaystyle \begin{aligned} \spread{\sigma_X^2} &= (\val{0} - \ctr{0.7})^{\spread{2}}(\prob{0.50}) + (\val{1} - \ctr{0.7})^{\spread{2}}(\prob{0.30}) \\ &\quad + (\val{2} - \ctr{0.7})^{\spread{2}}(\prob{0.20}) \\ &= (\spread{0.49})(\prob{0.50}) + (\spread{0.09})(\prob{0.30}) + (\spread{1.69})(\prob{0.20}) \\ &= \spread{0.245} + \spread{0.027} + \spread{0.338} \\ &= \spread{0.61}\text{ bags}^2 \end{aligned}
Take the square rootWe take the square root of the variance to get back to bags of coffee:
σX\displaystyle \spread{\sigma_X} =0.61 bags2≈0.78 bags\displaystyle = \sqrt{\spread{0.61}\text{ bags}^2} \approx \spread{0.78}\text{ bags}
0.50\htmlClass{lc-green}{0.50}
0.30\htmlClass{lc-green}{0.30}
0.20\htmlClass{lc-green}{0.20}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
μX=0.7 bags\htmlClass{lc-violet}{\mu_X} = \htmlClass{lc-violet}{0.7}\text{ bags}
balance point\htmlClass{lc-violet}{\text{balance point}}
σX≈0.78 bags\htmlClass{lc-pink}{\sigma_X} \approx \htmlClass{lc-pink}{0.78}\text{ bags}
typical distance from the balance point\htmlClass{lc-pink}{\text{typical distance from the balance point}}

Over many customers in the long run, we expect customers to buy an average of 0.7 bags\ctr{0.7}\text{ bags} of coffee per customer, with the number of bags typically varying from that mean by about 0.78 bags\spread{0.78}\text{ 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\val{X}:

Center (Expected Value / Mean μX\ctr{\mu_X})

Weight each outcome by its probability, μX=∑xi⋅P(X=xi)\ctr{\mu_X} = \sum \val{x_i} \cdot \prob{P(X = x_i)}. Because μX\ctr{\mu_X} is the balance point, the weighted distances ∑(xi−μX)⋅P(X=xi)\sum (\val{x_i} - \ctr{\mu_X}) \cdot \prob{P(X = x_i)} always add to 00 (in Game A with $9\$\val{9} and $11\$\val{11} at 0.50\prob{0.50} each, μX=$10\ctr{\mu_X} = \$\ctr{10} and (−1)(0.50)+(+1)(0.50)=0(\spread{-1})(\prob{0.50}) + (\spread{+1})(\prob{0.50}) = 0).

Spread (Variance σX2\spread{\sigma_X^2} and Standard Deviation σX\spread{\sigma_X})

Square each distance from μX\ctr{\mu_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=∑(xi−μX)2⋅P(X=xi),σX=σX2\displaystyle \begin{aligned} \spread{\sigma_X^2} &= \sum (\val{x_i} - \ctr{\mu_X})^{\spread{2}} \cdot \prob{P(X = x_i)}, \\ \spread{\sigma_X} &= \sqrt{\spread{\sigma_X^2}} \end{aligned}
(In Game B, σX2=(−6)2(0.25)+(−2)2(0.50)+102(0.25)=36 dollars2\spread{\sigma_X^2} = \spread{(-6)^2}(\prob{0.25}) + \spread{(-2)^2}(\prob{0.50}) + \spread{10^2}(\prob{0.25}) = \spread{36}\text{ dollars}^2, so σX=36=$6\spread{\sigma_X} = \sqrt{\spread{36}} = \$\spread{6}.)

When not to divide by nn

Divide by nn or n−1n - 1 only when you have a list of nn data values. When probabilities P(X=xi)\prob{P(X = x_i)} are given, multiplying by those probabilities already weights each outcome by its share of 11, so you never divide the sum by the number of outcomes.

6

Practice

1

A board game spinner lands on X=1,3,\val{X} = \val{1}, \val{3}, or 9\val{9} points with probabilities P(X=1)=0.25\prob{P(X = 1)} = \prob{0.25}, P(X=3)=0.50\prob{P(X = 3)} = \prob{0.50}, and P(X=9)=0.25\prob{P(X = 9)} = \prob{0.25}. The expected value is μX=4\ctr{\mu_X} = \ctr{4} points. Find the variance σX2\spread{\sigma_X^2} and standard deviation σX\spread{\sigma_X} of X\val{X}, including units.

Find how far each point value sits from μX=4\ctr{\mu_X} = \ctr{4} and square those distances before weighting by the probabilities. Watch what squaring does to the units.

Subtract μX=4\ctr{\mu_X} = \ctr{4} from each outcome and square the distances:
(1−4)2=(−3)2=9(3−4)2=(−1)2=1(9−4)2=(+5)2=25\displaystyle \begin{aligned} (\val{1} - \ctr{4})^{\spread{2}} &= \spread{(-3)^2} = \spread{9} \\ (\val{3} - \ctr{4})^{\spread{2}} &= \spread{(-1)^2} = \spread{1} \\ (\val{9} - \ctr{4})^{\spread{2}} &= \spread{(+5)^2} = \spread{25} \end{aligned}
(Watch out: (−3)2\spread{(-3)^2} is +9\spread{+9}, not −9\miss{-9}; keeping the minus signs gives −9(0.25)−1(0.50)+25(0.25)=3.5\miss{-9}(\prob{0.25}) - \miss{1}(\prob{0.50}) + \spread{25}(\prob{0.25}) = \miss{3.5}.)
Weight each squared distance by its probability and add them up to find the variance:
σX2=9(0.25)+1(0.50)+25(0.25)=2.25+0.50+6.25=9 points2\displaystyle \begin{aligned} \spread{\sigma_X^2} &= \spread{9}(\prob{0.25}) + \spread{1}(\prob{0.50}) + \spread{25}(\prob{0.25}) \\ &= \spread{2.25} + \spread{0.50} + \spread{6.25} \\ &= \spread{9}\text{ points}^2 \end{aligned}
(Do not average 9,1,\spread{9}, \spread{1}, and 25\spread{25} equally as 9+1+253≈11.67\tfrac{\spread{9} + \spread{1} + \spread{25}}{3} \approx \miss{11.67}, because X=3\val{X} = \val{3} happens twice as often as the other outcomes.)
Take the square root to get back from squared points to points:
σX\displaystyle \spread{\sigma_X} =9 points2\displaystyle = \sqrt{\spread{9}\text{ points}^2} =3 points\displaystyle = \spread{3}\text{ points}
2

An appliance repair technician tracks the number of replacement parts, X\val{X}, needed on a random service call. The distribution is P(X=0)=0.30\prob{P(X = 0)} = \prob{0.30}, P(X=1)=0.50\prob{P(X = 1)} = \prob{0.50}, and P(X=2)=p\prob{P(X = 2)} = \prob{p}. Find p\prob{p}, calculate the mean μX\ctr{\mu_X} and standard deviation σX\spread{\sigma_X}, and interpret both numbers in context.

All probabilities in a distribution add up to 11. Once you have p\prob{p}, find the balance point μX\ctr{\mu_X} first so you can measure each outcome's distance from it.

Since the probabilities must add to 11:
p\displaystyle \prob{p} =1−(0.30+0.50)\displaystyle = 1 - (\prob{0.30} + \prob{0.50}) =0.20\displaystyle = \prob{0.20}
Weight each outcome by its probability to find the mean:
μX=0(0.30)+1(0.50)+2(0.20)=0+0.50+0.40=0.9 parts\displaystyle \begin{aligned} \ctr{\mu_X} &= \val{0}(\prob{0.30}) + \val{1}(\prob{0.50}) + \val{2}(\prob{0.20}) \\ &= 0 + 0.50 + 0.40 \\ &= \ctr{0.9}\text{ parts} \end{aligned}
Subtract μX=0.9\ctr{\mu_X} = \ctr{0.9} from each outcome, square the distances, and weight by the probabilities:
σX2=(0−0.9)2(0.30)+(1−0.9)2(0.50)+(2−0.9)2(0.20)=(0.81)(0.30)+(0.01)(0.50)+(1.21)(0.20)=0.243+0.005+0.242=0.49 parts2\displaystyle \begin{aligned} \spread{\sigma_X^2} &= (\val{0} - \ctr{0.9})^{\spread{2}}(\prob{0.30}) + (\val{1} - \ctr{0.9})^{\spread{2}}(\prob{0.50}) \\ &\quad + (\val{2} - \ctr{0.9})^{\spread{2}}(\prob{0.20}) \\ &= (\spread{0.81})(\prob{0.30}) + (\spread{0.01})(\prob{0.50}) + (\spread{1.21})(\prob{0.20}) \\ &= \spread{0.243} + \spread{0.005} + \spread{0.242} \\ &= \spread{0.49}\text{ parts}^2 \end{aligned}
(Be sure to subtract the mean μX=0.9\ctr{\mu_X} = \ctr{0.9} before squaring; squaring the outcomes 02(0.30)+12(0.50)+22(0.20)\val{0}^2(\prob{0.30}) + \val{1}^2(\prob{0.50}) + \val{2}^2(\prob{0.20}) directly gives 1.30\miss{1.30} and a wrong standard deviation of 1.14 parts\miss{1.14}\text{ parts}.)
Take the square root to find the standard deviation:
σX\displaystyle \spread{\sigma_X} =0.49 parts2\displaystyle = \sqrt{\spread{0.49}\text{ parts}^2} =0.7 parts\displaystyle = \spread{0.7}\text{ parts}
Over many service calls in the long run, the technician uses an average of 0.9 replacement parts\ctr{0.9}\text{ replacement parts} per call, with the number of parts typically varying from that mean by about 0.7 parts\spread{0.7}\text{ parts}.
3

For a random variable X\val{X} with 44 possible outcomes, a student correctly calculates the weighted squared distances (xi−μX)2⋅P(X=xi)(\val{x_i} - \ctr{\mu_X})^{\spread{2}} \cdot \prob{P(X = x_i)} for each outcome and adds them up to get 1616. Next, the student divides 1616 by 44 to get 44, and takes the square root to get σX=2\spread{\sigma_X} = 2. Explain the student's mistake and find the correct standard deviation.

Think about what multiplying each squared distance by P(X=xi)\prob{P(X = x_i)} already did to the sum.

The student should not divide by the number of outcomes (n=4n = 4). Multiplying each squared distance by its probability P(X=xi)\prob{P(X = x_i)} 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=3n - 1 = 3 to get 163≈2.31\sqrt{\tfrac{\spread{16}}{3}} \approx \miss{2.31}.)
The sum 16\spread{16} is already the variance σX2\spread{\sigma_X^2}, so taking the square root gives the standard deviation:
σX\displaystyle \spread{\sigma_X} =16\displaystyle = \sqrt{\spread{16}} =4\displaystyle = \spread{4}
4

A random variable X\val{X} has mean μX=10\ctr{\mu_X} = \ctr{10} and three possible outcomes: x1=6\val{x_1} = \val{6} with P(X=6)=0.45\prob{P(X = 6)} = \prob{0.45}, x2=8\val{x_2} = \val{8} with P(X=8)=0.30\prob{P(X = 8)} = \prob{0.30}, and an unknown outcome x3\val{x_3} with P(X=x3)=0.25\prob{P(X = x_3)} = \prob{0.25}. For the first two outcomes, the weighted distances (xi−μX)⋅P(X=xi)(\val{x_i} - \ctr{\mu_X}) \cdot \prob{P(X = x_i)} are −1.8\spread{-1.8} and −0.6\spread{-0.6}. Use the balance property of the mean to find x3\val{x_3}, then find the standard deviation σX\spread{\sigma_X}.

On a balanced seesaw at μX=10\ctr{\mu_X} = \ctr{10}, what must all three weighted distances add up to?

Because the weighted distances from the mean always add up to 00:
−1.8+(−0.6)+(x3−10)(0.25)=0(x3−10)(0.25)=+2.4\displaystyle \begin{aligned} \spread{-1.8} + (\spread{-0.6}) + (\val{x_3} - \ctr{10})(\prob{0.25}) &= 0 \\ (\val{x_3} - \ctr{10})(\prob{0.25}) &= \spread{+2.4} \end{aligned}
Divide by the probability 0.25\prob{0.25} to find the distance x3−10\val{x_3} - \ctr{10}:
x3−10=2.40.25=9.6x3=19.6\displaystyle \begin{aligned} \val{x_3} - \ctr{10} &= \frac{\spread{2.4}}{\prob{0.25}} = \spread{9.6} \\ \val{x_3} &= \val{19.6} \end{aligned}
(Watch out: +2.4\spread{+2.4} is already multiplied by the probability 0.25\prob{0.25}; forgetting to divide by 0.25\prob{0.25} sets x3−10=2.4\val{x_3} - \ctr{10} = \miss{2.4} and gives the wrong outcome x3=12.4\val{x_3} = \miss{12.4}.)
Now square the distances (−4,−2,(\spread{-4}, \spread{-2}, and +9.6)\spread{+9.6}), weight each by its probability, and add to find the variance:
σX2=(−4)2(0.45)+(−2)2(0.30)+(9.6)2(0.25)=16(0.45)+4(0.30)+92.16(0.25)=7.2+1.2+23.04=31.44\displaystyle \begin{aligned} \spread{\sigma_X^2} &= \spread{(-4)^2}(\prob{0.45}) + \spread{(-2)^2}(\prob{0.30}) + \spread{(9.6)^2}(\prob{0.25}) \\ &= \spread{16}(\prob{0.45}) + \spread{4}(\prob{0.30}) + \spread{92.16}(\prob{0.25}) \\ &= \spread{7.2} + \spread{1.2} + \spread{23.04} \\ &= \spread{31.44} \end{aligned}
(Do not square the weighted distances (−1.8)2+(−0.6)2+(2.4)2=9.36(\spread{-1.8})^2 + (\spread{-0.6})^2 + (\spread{2.4})^2 = \miss{9.36}, because that squares the probabilities too and gives σX≈3.06\spread{\sigma_X} \approx \miss{3.06}.)
Take the square root to get the standard deviation:
σX\displaystyle \spread{\sigma_X} =31.44≈5.61\displaystyle = \sqrt{\spread{31.44}} \approx \spread{5.61}
5

Game C pays $6\$\val{6} or $14\$\val{14} with probability 0.50\prob{0.50} each. Game D pays $0\$\val{0} with probability 0.20\prob{0.20}, $10\$\val{10} with probability 0.60\prob{0.60}, and $20\$\val{20} with probability 0.20\prob{0.20}. Both games have the same mean (μ=$10\ctr{\mu} = \$\ctr{10}) and the same Mean Absolute Deviation ($4\$\spread{4}). Without doing the full calculation first, predict which game has the larger standard deviation and explain why, then verify by finding σ\spread{\sigma} for each game.

Compare the size of the swings from μ=$10\ctr{\mu} = \$\ctr{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\$\spread{10} swings ($0\$\val{0} and $20\$\val{20}) compared to Game C's steady $4\$\spread{4} swings ($6\$\val{6} and $14\$\val{14}). (Even though Game D lands right on $10\$\val{10} with distance 0\spread{0} sixty percent of the time, squaring turns the $10\$\spread{10} swings into 100\spread{100}, which outweighs the zeros.)
For Game C, both outcomes sit $4\$\spread{4} from μ=$10\ctr{\mu} = \$\ctr{10}:
σC=(−4)2(0.50)+42(0.50)=8+8=16=$4\displaystyle \begin{aligned} \spread{\sigma_C} &= \sqrt{\spread{(-4)^2}(\prob{0.50}) + \spread{4^2}(\prob{0.50})} \\ &= \sqrt{\spread{8} + \spread{8}} \\ &= \sqrt{\spread{16}} = \$\spread{4} \end{aligned}
For Game D, the outcomes sit −10,0,\spread{-10}, \spread{0}, and +10\spread{+10} from μ=$10\ctr{\mu} = \$\ctr{10}:
σD=(−10)2(0.20)+02(0.60)+102(0.20)=20+0+20=40≈$6.32\displaystyle \begin{aligned} \spread{\sigma_D} &= \sqrt{\spread{(-10)^2}(\prob{0.20}) + \spread{0^2}(\prob{0.60}) + \spread{10^2}(\prob{0.20})} \\ &= \sqrt{\spread{20} + \spread{0} + \spread{20}} \\ &= \sqrt{\spread{40}} \approx \$\spread{6.32} \end{aligned}