How to use these solu­tions

These are full worked solu­tions to the ten mixed-prac­tice ques­tions in Vari­ance, Stan­dard Devi­a­tion and Mixed Prac­tice. Try each ques­tion your­self before read­ing, then com­pare your table and work­ing line by line. Keep two for­mu­las at hand through­out: σ2=1n∑xi2−xˉ2\displaystyle \sigma^2 = \frac{1}{n}\sum x_i^2 - \bar x^2 (or with fre­quen­cies, 1N∑fixi2−xˉ2\displaystyle \frac1N\sum f_ix_i^2 - \bar x^2) and CV=σxˉ×100\displaystyle \text{CV} = \frac{\sigma}{\bar x} \times 100.

Ques­tion 1: Mean and vari­ance of raw data

The prob­lem

Find the mean and vari­ance: 2,4,6,8,10,122, 4, 6, 8, 10, 12.

Under­stand­ing the prob­lem

There are n=6n = 6 ungrouped obser­va­tions. You need the mean xˉ\bar x and the vari­ance σ2\sigma^2.

The idea

Find xˉ\bar x, then the squared devi­a­tions (xi−xˉ)2(x_i - \bar x)^2, then aver­age them: σ2=1n∑(xi−xˉ)2\displaystyle \sigma^2 = \frac1n\sum(x_i - \bar x)^2.

Step-by-step solu­tion

Step 1. Mean.

xˉ=2+4+6+8+10+126=426=7.\displaystyle \bar x = \frac{2 + 4 + 6 + 8 + 10 + 12}{6} = \frac{42}{6} = 7.

Step 2. Devi­a­tions from the mean and their squares.

xix_i 22 44 66 88 1010 1212
xi−7x_i - 7 −5-5 −3-3 −1-1 11 33 55
(xi−7)2(x_i - 7)^2 2525 99 11 11 99 2525

Step 3. Add the squares and divide by 66.

σ2=25+9+1+1+9+256=706=353≈11.67.\displaystyle \sigma^2 = \frac{25 + 9 + 1 + 1 + 9 + 25}{6} = \frac{70}{6} = \frac{35}{3} \approx 11.67.

Check­ing the answer

Short-cut for­mula: ∑x2=4+16+36+64+100+144=364\displaystyle \sum x^2 = 4 + 16 + 36 + 64 + 100 + 144 = 364, and 3646−49=364−2946=706\displaystyle \frac{364}{6} - 49 = \frac{364 - 294}{6} = \frac{70}{6}. Same result.

Answer

Mean =7= 7, vari­ance =353\displaystyle = \frac{35}{3}.

Ques­tion 2: Vari­ance of the first nn even num­bers

The prob­lem

Find the vari­ance of the first nn even nat­ural num­bers.

Under­stand­ing the prob­lem

The data are 2,4,6,…,2n2, 4, 6, \ldots, 2n. You need a for­mula for their vari­ance in terms of nn.

The idea

These num­bers are exactly 2×(1,2,…,n)2 \times (1, 2, \ldots, n). The les­son showed that the vari­ance of 1,2,…,n1, 2, \ldots, n is n2−112\displaystyle \frac{n^2 - 1}{12}, and that mul­ti­ply­ing every obser­va­tion by kk mul­ti­plies the vari­ance by k2k^2.

Step-by-step solu­tion

Step 1. Vari­ance of 1,2,…,n1, 2, \ldots, n (from the les­son):

σ2=n2−112.\displaystyle \sigma^2 = \frac{n^2 - 1}{12}.

Step 2. Mul­ti­ply­ing by 22 mul­ti­plies σ\sigma by 22, so it mul­ti­plies σ2\sigma^2 by 22=42^2 = 4.

σeven2=4⋅n2−112=n2−13.\displaystyle \sigma^2_{\text{even}} = 4 \cdot \frac{n^2 - 1}{12} = \frac{n^2 - 1}{3}.

Check­ing the answer

n=3n = 3: data 2,4,62, 4, 6, mean 44, squared devi­a­tions 4,0,44, 0, 4, vari­ance 83\displaystyle \frac83. For­mula: 9−13=83\displaystyle \frac{9 - 1}{3} = \frac83. Cor­rect.

Answer

The vari­ance is n2−13\displaystyle \frac{n^2 - 1}{3}.

Com­mon mis­take to avoid

Dou­bling the data dou­bles the stan­dard devi­a­tion but mul­ti­plies the vari­ance by 44, not 22.

Ques­tion 3: Mean and stan­dard devi­a­tion of a fre­quency table

The prob­lem

Find mean and stan­dard devi­a­tion:

xix_i 44 88 1111 1717 2020 2424 3232
fif_i 33 55 99 55 44 33 11

Under­stand­ing the prob­lem

Each value xix_i occurs fif_i times. You need xˉ\bar x and σ\sigma.

The idea

Use xˉ=∑fixiN\displaystyle \bar x = \frac{\sum f_ix_i}{N} and σ2=1N∑fixi2−xˉ2\displaystyle \sigma^2 = \frac{1}{N}\sum f_ix_i^2 - \bar x^2, build­ing the columns fixif_ix_i and fixi2f_ix_i^2.

Step-by-step solu­tion

Step 1. Build the work­ing table.

xix_i fif_i fixif_ix_i xi2x_i^2 fixi2f_ix_i^2
44 33 1212 1616 4848
88 55 4040 6464 320320
1111 99 9999 121121 10891089
1717 55 8585 289289 14451445
2020 44 8080 400400 16001600
2424 33 7272 576576 17281728
3232 11 3232 10241024 10241024
Total 3030 420420 72547254

Step 2. Mean.

xˉ=42030=14.\displaystyle \bar x = \frac{420}{30} = 14.

Step 3. Vari­ance.

σ2=725430−142=241.8−196=45.8.\displaystyle \sigma^2 = \frac{7254}{30} - 14^2 = 241.8 - 196 = 45.8.

Step 4. Stan­dard devi­a­tion.

σ=45.8≈6.77.\sigma = \sqrt{45.8} \approx 6.77.

Check­ing the answer

Most of the data lie between 88 and 2020, within about one stan­dard devi­a­tion of 1414 (14±6.7714 \pm 6.77 is 7.237.23 to 20.7720.77). That is rea­son­able.

Answer

Mean =14= 14, stan­dard devi­a­tion =45.8≈6.77= \sqrt{45.8} \approx 6.77.

Ques­tion 4: Grouped data by the short-cut method

The prob­lem

Find mean and stan­dard devi­a­tion by the short-cut method:

Class 3030–4040 4040–5050 5050–6060 6060–7070 7070–8080 8080–9090 9090–100100
ff 33 77 1212 1515 88 33 22

Under­stand­ing the prob­lem

For grouped data each class is rep­re­sented by its mid­point. The short-cut (step-devi­a­tion) method uses small num­bers yiy_i instead of the mid­points, to keep the arith­metic easy.

The idea

Take A=65A = 65 (the mid­dle mid­point) and h=10h = 10 (the class width), set yi=xi−Ah\displaystyle y_i = \frac{x_i - A}{h}, and use

xˉ=A+hyˉ,σx=h σy,σy2=∑fy2N−yˉ2.\displaystyle \bar x = A + h\bar y, \qquad \sigma_x = h\,\sigma_y, \qquad \sigma_y^2 = \frac{\sum fy^2}{N} - \bar y^2.

Step-by-step solu­tion

Step 1. Mid­points, yy val­ues and prod­ucts.

Class xix_i fif_i yiy_i fiyif_iy_i fiyi2f_iy_i^2
3030–4040 3535 33 −3-3 −9-9 2727
4040–5050 4545 77 −2-2 −14-14 2828
5050–6060 5555 1212 −1-1 −12-12 1212
6060–7070 6565 1515 00 00 00
7070–8080 7575 88 11 88 88
8080–9090 8585 33 22 66 1212
9090–100100 9595 22 33 66 1818
Total 5050 −15-15 105105

Step 2. Mean of yy and of xx.

yˉ=−1550=−0.3,xˉ=65+10(−0.3)=65−3=62.\displaystyle \bar y = \frac{-15}{50} = -0.3, \qquad \bar x = 65 + 10(-0.3) = 65 - 3 = 62.

Step 3. Vari­ance of yy.

σy2=10550−(−0.3)2=2.1−0.09=2.01.\displaystyle \sigma_y^2 = \frac{105}{50} - (-0.3)^2 = 2.1 - 0.09 = 2.01.

Step 4. Stan­dard devi­a­tion of xx.

σx=102.01≈10×1.4177≈14.18.\sigma_x = 10\sqrt{2.01} \approx 10 \times 1.4177 \approx 14.18.

Check­ing the answer

The mean 6262 lies in the class 6060–7070, which has the high­est fre­quency, and slightly below 6565 because more obser­va­tions lie below than above. Sen­si­ble.

Answer

Mean =62= 62, stan­dard devi­a­tion ≈14.18\approx 14.18.

Com­mon mis­take to avoid

Remem­ber to mul­ti­ply σy\sigma_y by h=10h = 10. The shift AA does not affect σ\sigma, but the scale hh does.

Ques­tion 5: Which plant is more con­sis­tent?

The prob­lem

Two plants' daily out­put: plant P mean 6363, σ=9\sigma = 9; plant Q mean 5454, σ=7.2\sigma = 7.2. Which is more con­sis­tent?

Under­stand­ing the prob­lem

"More con­sis­tent" means less vari­able rel­a­tive to its size. Because the means dif­fer, com­par­ing σ\sigma alone is not fair.

The idea

Com­pare coef­fi­cients of vari­a­tion, CV=σxˉ×100\displaystyle \text{CV} = \frac{\sigma}{\bar x} \times 100. The smaller CV is the more con­sis­tent.

Step-by-step solu­tion

Step 1. CV of plant P.

CVP=963×100=1007≈14.29%.\displaystyle \text{CV}_P = \frac{9}{63} \times 100 = \frac{100}{7} \approx 14.29\%.

Step 2. CV of plant Q.

CVQ=7.254×100=403≈13.33%.\displaystyle \text{CV}_Q = \frac{7.2}{54} \times 100 = \frac{40}{3} \approx 13.33\%.

Step 3. Com­pare: 13.33%<14.29%13.33\% < 14.29\%.

Check­ing the answer

963=17≈0.143\displaystyle \frac{9}{63} = \frac17 \approx 0.143 and 7.254=215≈0.133\displaystyle \frac{7.2}{54} = \frac{2}{15} \approx 0.133. The order is con­firmed.

Answer

Plant Q is more con­sis­tent (CV 13.33%13.33\% against 14.29%14.29\%).

Ques­tion 6: Cor­rect­ing a wrongly recorded obser­va­tion

The prob­lem

The mean and stan­dard devi­a­tion of 2525 obser­va­tions are 1212 and 33. One obser­va­tion was recorded as 99 instead of 1414. Find the cor­rect mean and stan­dard devi­a­tion.

Under­stand­ing the prob­lem

The mean and σ\sigma were com­puted with the wrong value 99. You must replace 99 by 1414 and recom­pute. Here n=25n = 25.

The idea

Recover the wrong ∑x\displaystyle \sum x and ∑x2\displaystyle \sum x^2 from the given mean and σ\sigma, cor­rect both sums, then recom­pute. Use

∑x=nxˉ,∑x2=n(σ2+xˉ2).\displaystyle \sum x = n\bar x, \qquad \sum x^2 = n(\sigma^2 + \bar x^2).

Step-by-step solu­tion

Step 1. Wrong sums.

∑x=25×12=300,∑x2=25(32+122)=25×153=3825.\displaystyle \sum x = 25 \times 12 = 300, \qquad \sum x^2 = 25(3^2 + 12^2) = 25 \times 153 = 3825.

Step 2. Cor­rect the sums: remove 99, add 1414.

∑x=300−9+14=305,∑x2=3825−81+196=3940.\displaystyle \begin{aligned} \sum x &= 300 - 9 + 14 = 305, \\ \sum x^2 &= 3825 - 81 + 196 = 3940. \end{aligned}

Step 3. Cor­rect mean.

xˉ=30525=12.2.\displaystyle \bar x = \frac{305}{25} = 12.2.

Step 4. Cor­rect vari­ance and stan­dard devi­a­tion.

σ2=394025−12.22=157.6−148.84=8.76,σ=8.76≈2.96.\displaystyle \sigma^2 = \frac{3940}{25} - 12.2^2 = 157.6 - 148.84 = 8.76, \qquad \sigma = \sqrt{8.76} \approx 2.96.

Check­ing the answer

Rais­ing one value by 55 should raise the mean by 525=0.2\displaystyle \frac{5}{25} = 0.2: 12→12.212 \to 12.2. Cor­rect. The new value 1414 is closer to the mean than 99 was, so the spread should fall slightly: 3→2.963 \to 2.96. Sen­si­ble.

Answer

Cor­rect mean =12.2= 12.2, cor­rect stan­dard devi­a­tion =8.76≈2.96= \sqrt{8.76} \approx 2.96.

Ques­tion 7: Effect of 3x+53x + 5 on mean and SD

The prob­lem

If each obser­va­tion is mul­ti­plied by 33 and then increased by 55, how do the mean and stan­dard devi­a­tion change?

Under­stand­ing the prob­lem

Each new obser­va­tion is yi=3xi+5y_i = 3x_i + 5. You must express yˉ\bar y and σy\sigma_y in terms of xˉ\bar x and σx\sigma_x.

The idea

From the les­son: adding a con­stant shifts the mean but not the spread; mul­ti­ply­ing by kk mul­ti­plies both the mean and σ\sigma by kk (the SD by ∣k∣\lvert k \rvert).

Step-by-step solu­tion

Step 1. Mean.

yˉ=1n∑(3xi+5)=3⋅1n∑xi+5=3xˉ+5.\displaystyle \bar y = \frac{1}{n}\sum(3x_i + 5) = 3 \cdot \frac1n\sum x_i + 5 = 3\bar x + 5.

Step 2. Devi­a­tions.

yi−yˉ=(3xi+5)−(3xˉ+5)=3(xi−xˉ).y_i - \bar y = (3x_i + 5) - (3\bar x + 5) = 3(x_i - \bar x).

Step 3. Vari­ance and SD.

σy2=1n∑9(xi−xˉ)2=9σx2  ⇒  σy=3σx.\displaystyle \sigma_y^2 = \frac1n\sum 9(x_i - \bar x)^2 = 9\sigma_x^2 \;\Rightarrow\; \sigma_y = 3\sigma_x.

Check­ing the answer

Data 1,31, 3: mean 22, σ=1\sigma = 1. New data 8,148, 14: mean 11=3(2)+511 = 3(2) + 5, σ=3\sigma = 3. Cor­rect.

Answer

The mean becomes 3xˉ+53\bar x + 5; the stan­dard devi­a­tion becomes 3σ3\sigma (the +5+5 has no effect on it).

Ques­tion 8: Find­ing two miss­ing obser­va­tions

The prob­lem

The mean and vari­ance of 77 obser­va­tions are 88 and 1616. Five of them are 2,4,10,12,142, 4, 10, 12, 14. Find the other two.

Under­stand­ing the prob­lem

Call the miss­ing val­ues aa and bb. The mean gives their sum; the vari­ance gives the sum of their squares. Then solve.

The idea

Use ∑x=nxˉ\displaystyle \sum x = n\bar x and ∑x2=n(σ2+xˉ2)\displaystyle \sum x^2 = n(\sigma^2 + \bar x^2), then the iden­tity (a+b)2=a2+b2+2ab(a + b)^2 = a^2 + b^2 + 2ab to find abab.

Step-by-step solu­tion

Step 1. Sum of all seven.

∑x=7×8=56.\displaystyle \sum x = 7 \times 8 = 56.

The five known val­ues add to 2+4+10+12+14=422 + 4 + 10 + 12 + 14 = 42, so

a+b=56−42=14.a + b = 56 - 42 = 14.

Step 2. Sum of squares of all seven.

∑x2=7(16+64)=560.\displaystyle \sum x^2 = 7(16 + 64) = 560.

The known squares add to 4+16+100+144+196=4604 + 16 + 100 + 144 + 196 = 460, so

a2+b2=560−460=100.a^2 + b^2 = 560 - 460 = 100.

Step 3. Find abab.

2ab=(a+b)2−(a2+b2)=196−100=96  ⇒  ab=48.2ab = (a + b)^2 - (a^2 + b^2) = 196 - 100 = 96 \;\Rightarrow\; ab = 48.

Step 4. aa and bb are roots of t2−14t+48=0t^2 - 14t + 48 = 0.

(t−6)(t−8)=0  ⇒  t=6 or 8.(t - 6)(t - 8) = 0 \;\Rightarrow\; t = 6 \text{ or } 8.

Check­ing the answer

Data 2,4,6,8,10,12,142, 4, 6, 8, 10, 12, 14: mean 88; squared devi­a­tions 36,16,4,0,4,16,3636, 16, 4, 0, 4, 16, 36 add to 112112, and 1127=16\displaystyle \frac{112}{7} = 16. Cor­rect.

Answer

The other two obser­va­tions are 66 and 88.

Ques­tion 9: Vari­ance zero means all val­ues equal

The prob­lem

Show that the vari­ance of a set of equal num­bers is 00, and con­versely.

Under­stand­ing the prob­lem

Two direc­tions must be proved. (i) If every xix_i is the same, then σ2=0\sigma^2 = 0. (ii) If σ2=0\sigma^2 = 0, then every xix_i is the same.

The idea

Use the def­i­n­i­tion σ2=1n∑(xi−xˉ)2\displaystyle \sigma^2 = \frac1n\sum(x_i - \bar x)^2 and the fact that a sum of squares of real num­bers is zero only when each square is zero.

Step-by-step solu­tion

Step 1 (equal num­bers give zero vari­ance). Sup­pose x1=x2=⋯=xn=cx_1 = x_2 = \cdots = x_n = c. Then

xˉ=ncn=c,xi−xˉ=0 for every i,\displaystyle \bar x = \frac{nc}{n} = c, \qquad x_i - \bar x = 0 \text{ for every } i,

so σ2=1n(0+0+⋯+0)=0\displaystyle \sigma^2 = \frac1n(0 + 0 + \cdots + 0) = 0.

Step 2 (zero vari­ance gives equal num­bers). Sup­pose σ2=0\sigma^2 = 0. Then

∑i=1n(xi−xˉ)2=0.\displaystyle \sum_{i=1}^{n}(x_i - \bar x)^2 = 0.

Step 3. Each term (xi−xˉ)2≥0(x_i - \bar x)^2 \ge 0. A sum of non-neg­a­tive terms is 00 only if every term is 00. So xi−xˉ=0x_i - \bar x = 0, that is xi=xˉx_i = \bar x for every ii. All the num­bers are equal. ■\blacksquare

Check­ing the answer

Data 5,5,55, 5, 5: mean 55, devi­a­tions all 00, vari­ance 00. Data 5,5,65, 5, 6 has vari­ance 29≠0\displaystyle \frac29 \ne 0, so even one dif­fer­ent value makes the vari­ance pos­i­tive.

Answer

σ2=1n∑(xi−xˉ)2=0\displaystyle \sigma^2 = \frac1n\sum(x_i - \bar x)^2 = 0 exactly when every xi=xˉx_i = \bar x, that is, when all the num­bers are equal.

Ques­tion 10: Mean devi­a­tion against stan­dard devi­a­tion

The prob­lem

Com­pute the mean devi­a­tion about the mean and the stan­dard devi­a­tion of 3,5,7,9,113, 5, 7, 9, 11. Which is larger?

Under­stand­ing the prob­lem

Mean devi­a­tion uses absolute devi­a­tions ∣xi−xˉ∣\lvert x_i - \bar x \rvert; stan­dard devi­a­tion uses squared devi­a­tions and then a square root. Com­pute both and com­pare.

The idea

MD=1n∑∣xi−xˉ∣,σ=1n∑(xi−xˉ)2.\displaystyle \text{MD} = \frac1n\sum\lvert x_i - \bar x \rvert, \qquad \sigma = \sqrt{\frac1n\sum(x_i - \bar x)^2}.

Step-by-step solu­tion

Step 1. Mean.

xˉ=3+5+7+9+115=355=7.\displaystyle \bar x = \frac{3 + 5 + 7 + 9 + 11}{5} = \frac{35}{5} = 7.

Step 2. Devi­a­tions.

xix_i 33 55 77 99 1111
∣xi−7∣\lvert x_i - 7 \rvert 44 22 00 22 44
(xi−7)2(x_i - 7)^2 1616 44 00 44 1616

Step 3. Mean devi­a­tion.

MD=4+2+0+2+45=125=2.4.\displaystyle \text{MD} = \frac{4 + 2 + 0 + 2 + 4}{5} = \frac{12}{5} = 2.4.

Step 4. Stan­dard devi­a­tion.

σ2=16+4+0+4+165=405=8,σ=8=22≈2.83.\displaystyle \sigma^2 = \frac{16 + 4 + 0 + 4 + 16}{5} = \frac{40}{5} = 8, \qquad \sigma = \sqrt{8} = 2\sqrt2 \approx 2.83.

Step 5. Com­pare: 2.83>2.42.83 > 2.4.

Check­ing the answer

Squar­ing gives extra weight to the larger devi­a­tions (44 becomes 1616), so σ\sigma is nor­mally at least as large as the mean devi­a­tion. The result fits.

Answer

MD =2.4= 2.4, σ=22≈2.83\sigma = 2\sqrt2 \approx 2.83; the stan­dard devi­a­tion is larger.