Chalk−1

Math · Introductory statistics · Worked example

Find the mean, median and standard deviation

Eight students report how many hours they slept: 4, 8, 6, 5, 3, 7, 9 and 6. Find the mean, the median and the sample standard deviation.

Find the mean

The eight values add to 48.

4+8+6+5+3+7+9+68=6

Find the median

Sorted: 3, 4, 5, 6, 6, 7, 8, 9. With eight values, the median is the average of the 4th and 5th, both 6.

6+62=6

Square the deviations

Subtracting 6 from each value gives −2, 2, 0, −1, −3, 1, 3 and 0. They add to 0, as deviations from the mean always do, which confirms the mean. Squaring makes each one count, and the squares add to 28.

4+4+0+1+9+1+9+0=28

Divide by n−1 and take the root

The eight students are a sample, so divide by n−1=7. The variance is 4 hours2, and its square root is 2 hours.

288−1=2

Result

Mean 6 hours, median 6 hours, sample standard deviation 2 hours.

Your turn

1. One like the example

Find the mean and the sample standard deviation of 10, 12, 14, 16 and 18.

Show the answer and explanation

Mean 14, s=10≈3.16.

The values add to 70, so the mean is 14. The deviations are −4, −2, 0, 2 and 4, which add to 0, and their squares add to 40. Divide by n−1=4 to get 10, then take the square root.

10,12,14,16,1810+12+14+16+185=1416+4+0+4+16=40404≈3.16

2. A variation

A small office has six people, with commutes of 12, 15, 9, 20, 14 and 8 minutes. They are the whole office, a population. Find the mean, the median and σ, and compare σ with s.

Show the answer and explanation

Mean 13 minutes, median 13 minutes, σ=4 minutes. The sample formula would give s≈4.38.

The total is 78, so μ=13. Sorted, the values are 8, 9, 12, 14, 15, 20, and the middle two average 13. The deviations −1, 2, −4, 7, 1 and −5 have squares that add to 96. A population divides by N=6, giving 16, and σ=4. Dividing by 5 instead gives s≈4.38.

12,15,9,20,14,812+15+9+20+14+86=1312+142=131+4+16+49+1+25=96966=4965≈4.38

3. Somewhere new

Next week every student in the sleep data sleeps one hour more: 5, 9, 7, 6, 4, 8, 10 and 7. Predict the new mean and s before computing, then check.

Show the answer and explanation

The mean rises by 1 to 7 hours, and s stays 2 hours.

Adding 1 to every value moves the balance point up by 1, so the mean is 7. Each value moves with it, so every deviation is unchanged and so is s. Multiplying every value by a number would scale s instead.

5,9,7,6,4,8,10,75+9+7+6+4+8+10+78=74+4+0+1+9+1+9+0=28288−1=2

Keep exploring

In Statistics, the Summary shows the mean 6, the median 6 and the sample standard deviation 2. The population standard deviation beside it, about 1.87, divides by 8 instead of 7.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Summarize the data in Statistics Check the arithmetic in Math Study the 8 key terms Open worked example on a board Sample standard deviation in Math Reference

Your existing work stays on this device. Examples open as editable copies.