1.Three Values That Describe the Middle
The mean is the sum of all the values divided by how many there are. It tells you how much each would get if everything were shared out equally. The median is the value in the very middle when the values are lined up in order of size; if there is an even number of values, you use the mean of the two middle values. The mode is the value that appears most often.
The three can differ even for the same data, and you should pick one based on what you want to know. The mode tells a shoe store which size to stock the most of; the median better represents "a typical person's income"; and the mean is right for calculations that divide up a total (such as usage per person).
- Step 1: Mean: the sum is 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40 and the count is 8, so 40 ÷ 8 = 5.
- Step 2: Median: the data are already in order. With 8 values, it is the mean of the 4th and 5th values, 4 and 5: (4 + 5) ÷ 2 = 4.5.
- Step 3: Mode: 4 appears the most, 3 times. The mode is 4.
- Check: Subtract the mean of 5 from each value to get the deviations −3, −1, −1, −1, 0, 0, 2, 4; they add up to 0. If the deviations sum to 0, the mean is correct.
2.The Mean of Means Is Not the Mean: Weighted Averages
When you know the means of two groups and want the overall mean, adding the two means and dividing by 2 is usually wrong. That only works when the two groups have the same number of people. If the sizes differ, the mean of the larger group should have more influence on the overall mean.
The right method is to go back to the definition of the mean. Recover each group's total as "mean × number of people," add them all up, and divide by the total number of people. A mean found this way, by multiplying each value by its weight (number of people, mass, time, and so on), is called a weighted average. A grade point average where courses carry different credits, and an average purchase price where you bought different quantities at different times, are both weighted averages.
- Step 1: Recover each class's total score: Class A 80 × 20 = 1,600 points, Class B 70 × 30 = 2,100 points.
- Step 2: Overall total 1,600 + 2,100 = 3,700 points; total students 20 + 30 = 50.
- Step 3: Overall mean = 3,700 ÷ 50 = 74 points.
- Step 4: A common mistake: (80 + 70) ÷ 2 = 75 points. It misses that the mean is pulled toward Class B (70 points), which has more students.
- Check: 74 points lies between the two class means and is closer to the 70 of the larger Class B. 74 × 50 = 3,700, so the total matches too.
3.Spread: The Same Mean Doesn't Mean the Same Data
Here are test scores from two classes. Class A's five students scored 70, 70, 70, 70, 70, and Class B's five students scored 50, 60, 70, 80, 90. Both classes have a mean of 70, but they are completely different classes. In Class A everyone is similar, while Class B has big differences in ability. Variance and standard deviation put this difference into numbers.
Here is how. Find how far each value is from the mean (its deviation). Simply adding the deviations always gives 0, so you square them to make them all positive. The mean of the squared deviations is the variance. Variance is in squared units (points²), which makes it hard to interpret, so you take its square root to return to the original units: that is the standard deviation.
In this lesson, we treat all the data we have as a single population and use the population variance, dividing by n. Class B's deviations are −20, −10, 0, 10, 20; squared, they are 400, 100, 0, 100, 400, which sum to 1,000. 1,000 ÷ 5 = 200 is the variance, and √200 ≈ 14.1 points is the standard deviation. In Class A, all deviations are 0, so both the variance and the standard deviation are 0.
4.Calculating Variance and Standard Deviation by Hand
Let's work through the earlier data 2, 4, 4, 4, 5, 5, 7, 9 from start to finish. Making a table and filling in the cells one by one greatly reduces mistakes.
- Population variance (divide by n): when the data you have is the entire group you care about. In this example, 4.
- Sample variance (divide by n − 1): when you estimate the variance of a whole group from a sample drawn from it. In this example, 32 ÷ 7 ≈ 4.57, with a standard deviation ≈ 2.14.
- When you calculate from a sample, the mean also comes from the sample, so the spread tends to come out a little smaller than it really is; dividing by n − 1 corrects for this.
- Check first which one Excel, your calculator, or an AI is using. The same data can give different values.
| Value | Deviation (value − 5) | Deviation² |
|---|---|---|
| 2 | −3 | 9 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Sum | 0 | 32 |
- Step 1: Find the mean, 5 (previous section).
- Step 2: Sum of squared deviations: 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
- Step 3: Population variance = 32 ÷ 8 = 4.
- Step 4: Standard deviation = √4 = 2.
- Check: Confirm that the deviations sum to 0: −3 − 1 − 1 − 1 + 0 + 0 + 2 + 4. The sum is 0, so the mean and deviations are correct.
5.Outliers: One Person Who Shakes the Mean
A value far away from the rest is called an outlier. Because the mean adds up every value, a single outlier pulls it a long way, while the median looks only at order and barely moves. That's why, for data with a few very large values mixed in, such as incomes or house prices, the median represents "typical" better than the mean.
Deleting outliers automatically isn't the answer either. If one is a data entry error, it should be fixed, but if it is a value that really occurred, it may be important information in itself. Look at the mean and median together, and if they differ a lot, take that as a sign of an outlier or a lopsided distribution.
- Step 1: The first 5 people: sum 17,500, mean 17,500 ÷ 5 = 3,500. The median is the 3rd value, 3,500.
- Step 2: 6 people: sum 17,500 + 30,000 = 47,500, mean 47,500 ÷ 6 ≈ 7,917.
- Step 3: The median of 6 people: in the sorted list 3,000, 3,200, 3,500, 3,800, 4,000, 30,000, it is the mean of the 3rd and 4th values: (3,500 + 3,800) ÷ 2 = 3,650.
- Check: Of the 6 people, only 1 earns more than the mean of 7,917. This means the mean is failing to represent "a typical person."
📌 Key points
- The mean divides up the total, the median is the middle in order, and the mode is the most common value
- Data with the same mean can have different spreads; variance and standard deviation measure spread
- Variance = the mean of the squared deviations; standard deviation = √variance (back in the original units)
- Population variance divides by n and sample variance by n − 1; say which one you use and use it consistently
- An outlier shakes the mean a lot but barely moves the median
🔁 Unlimited practice
Problems are generated endlessly. Type your answer and press "Check" to have it graded right away, or press "Show solution" to see a step-by-step solution in the same order as the lesson. You can choose the difficulty, and your streak of correct answers is counted.
- Easy: mean and median
- Medium: mean, median, and population variance
- Hard: median, population variance, and standard deviation
These drills are generated in your browser with JavaScript, which is not running right now. Use the examples and practice questions above, then reopen this page with JavaScript turned on.
Answer
Type whole numbers, decimals or fractions (e.g. 12, 0.75, 3/4, −2/3, 1 3/4). A fraction answer also counts as a decimal correct to three places. Your streak resets if you look at the solution first or get one wrong; only your best streak is saved, in this browser.
🤖 Try asking AI like this
Copy a prompt and replace the [ ] parts with your own situation. Don't take the answer on trust — check it against this lesson.
When you want to check a statistics calculation
Find the mean, median, mode, variance, and standard deviation of the data [numbers]. Show it step by step in a table with columns for value, deviation, and deviation², calculate both the population variance (dividing by n) and the sample variance (dividing by n − 1), and label which is which. Also check that the deviations sum to 0.
When you're unsure which average to use
My data is [description of data]. Explain whether the mean or the median is the better summary value to report, along with criteria for judging whether there are outliers. Also tell me if this is a case where I should report both.
- Standard middle and high school math textbook content (measures of center and spread)
- Standard explanations in introductory statistics textbooks (population variance and sample variance)
Reached every goal above? Mark the lesson complete.
Storage is unavailable in this browser, so this lasts only for this page.📐 Math Basics
- 1Numbers and Operations: Fractions and Decimals Revisited
- 2Ratios and Rates: Reading Percentages Correctly
- 3Equations: A Balance for Finding Unknown Numbers
- 4Functions and Graphs: An Eye for Change
- 5Exponents and Logarithms: A World That Grows by Multiplying
- 6Geometry Basics: Area and Pythagoras
- 7Probability: Putting Numbers on Uncertainty
- 8Statistics: Mean, Median, and Variance
- 9Reading Data: The Traps in Graphs
- 10The Math for Understanding AI