๐Ÿ“– Contents · Hub · Full version Chapter 4 ยท Center & Spread
Statistics Easy Read · Chapter 4

Center & Spread

A pile of numbers tells you nothing until you can answer two questions about it. Where is the middle? And how spread out is everything else? Those two questions, center and spread, are the whole business of this chapter. Together they are the most useful pair of ideas in all of descriptive statistics. You will learn three ways to describe the middle and four ways to describe the spread. You will learn when each one tells the truth and when it quietly lies. None of this needs a talent for math. It needs only that you add, subtract, divide and take a square root, one careful step at a time. Every formula here is worked out with numbers at least once. So you can follow the math with your finger if you want to.

By the end of this chapter you can

  • Work out the mean, median and mode of a data set. Explain what each one measures.
  • Choose the right measure of center for skewed data, symmetric data and data made of groups (categorical data).
  • Work out the range, variance and standard deviation. Explain why we divide by n − 1 for a sample.
  • Build a five-number summary, find the interquartile range and sketch a boxplot.
  • Use the 1.5 × IQR rule to flag outliers, and state its limits.
  • Turn a raw value into a z-score and back again; use z-scores to compare values from different distributions.
  • Use the empirical rule (68 to 95 to 99.7) on bell shaped data. Say just when it does not apply.
  • Use Chebyshev's theorem to set a floor you can count on for the data in any distribution, whatever its shape.

Section 1Measures of center

Curves showing how the mean and median sit relative to each other in left-skewed, symmetric, and right-skewed distributions
Reference. The mean and the median under different shapes; they match when a distribution is symmetric and pull apart when it is skewed. Source and license: see the figure credits

Three different ideas of "middle"

Everyday English has one word for the middle of a group of numbers. Statistics has three, because there are three truly different things you might mean; the mean is the balance point. Add everything up and share it out equally; the median is the middle by position. Line the values up from smallest to largest and take the one standing in the center. The mode is the most popular value, whichever number shows up most often. On nicely symmetric data, all three land in nearly the same place. That is why it is easy to think they can be swapped; they cannot.

Start with a small, honest data set. Seven people report the number of hours they spent on a task:

4, 8, 9, 9, 12, 13, 15

The mean is the sum divided by the count; it is written x̄ ("x-bar") for a sample and μ ("mu") for a population:

x̄ = Σx / n

Here Σx = 4 + 8 + 9 + 9 + 12 + 13 + 15 = 70, and n = 7. So x̄ = 70 / 7 = 10 hours; the capital Greek sigma, Σ, is just an order: "add up everything that follows."

The median needs the values sorted, and they already are. With n = 7 (odd), the middle position is the (7 + 1) / 2 = 4th value. Count in: 4, 8, 9, 9, 12, 13, 15; the median is 9 hours. When n is even, there is no single middle value, so you average the two middle ones. For 3, 7, 8, 12, 13, 14, the two middle values are 8 and 12. The median is (8 + 12) / 2 = 10.

The mode is the value that comes up most often; only 9 appears twice, so the mode is 9 hours. A data set can have one mode, two (bimodal), several (multimodal) or none at all if every value appears just once.

Why the choice matters: the outlier problem

Here is where the three measures come apart. Say a company of six people reports yearly pay, in thousands of dollars:

38, 42, 45, 48, 52, 275

The mean is (38 + 42 + 45 + 48 + 52 + 275) / 6 = 500 / 6 = 83.3 thousand. The median, averaging the two middle values, is (45 + 48) / 2 = 46.5 thousand. Look at what just happened; the "average" salary at this company is $83,300. Yet five of the six workers earn less than that. One extreme value dragged the mean nearly forty thousand dollars away from anything a typical worker earns; the median did not budge.

That difference has a name; a statistic is resistant (or robust) if extreme values barely move it; the median and the mode are resistant. The mean is not; the mean is not "wrong" here. It is a perfectly correct balance point. If you want the total payroll, the mean times the head count gives it to you exactly. It just answers a different question from the one most people mean when they say "typical."

How the mean and median relate is also a quick way to detect shape. Think of a right-skewed (positively skewed) distribution, with a long tail stretching toward high values. Income and hospital stays are examples; there the mean is pulled above the median. In a left-skewed distribution, the mean falls below the median. When the mean and median are close, the distribution is about symmetric.

Picking the right one

The choice is not a matter of taste; it follows from the data's shape and its level of measurement; you cannot average eye color. And you should not average a data set whose whole story is in its tail.

MeasureDefinitionUse it whenAvoid it when
MeanΣx / n: the balance pointData are about symmetric and quantitative; you need a value that feeds later formulas (variance, z-scores, most inference).Data are strongly skewed or contain outliers; data are categorical
MedianThe middle value in sorted orderData are skewed or have outliers; data are ordinal (ranked); you want "typical"You need an algebraic quantity for later computation
ModeThe most frequent valueData are made of groups (blood type, brand, color); you want the most common group, or you suspect two clusters.Values are continuous and mostly unique: the mode is then meaningless

One more practical point. "Averages" reported in the news are almost always means. And they are almost always applied to skewed amounts, such as income, home prices, wait times and medical costs. Whenever you see the word average attached to money or time, the honest follow up question is "and what was the median?"

Mean for balance, median for typical. If one huge value would change your conclusion, you are looking at a job for the median. Report both when they disagree; the gap between them is information, not a problem to hide.
Interactive Drag one value away from the crowd and watch the mean chase it a fixed 1/n of the way while the median sits still, with a live dot plot, a balance-point marker, and a trace of both statistics against the value you are dragging. Open full ↑
Key points
  • The mean x̄ = Σx / n is the balance point; the median is the middle by position; the mode is the most common value.
  • For an even n, the median is the average of the two middle sorted values.
  • The median and mode are resistant to outliers; the mean is not.
  • Mean > median hints at right skew. Mean < median hints at left skew. Mean ≈ median hints at symmetry.
  • Only the mode works for categorical data.

Section 2Measures of spread

Two normal curves with the same center but different widths, showing small versus large spread
Reference. Two distributions with the same center but very different spread; the mean alone cannot tell them apart. Source and license: see the figure credits

Why the center is only half the story

Consider two groups of five measurements:

Set A: 48, 49, 50, 51, 52
Set B: 30, 40, 50, 60, 70

Both add up to 250, so both have a mean of exactly 50. Report only the mean, and the two sets look like twins; look at them, and they are nothing alike. Set A is packed tight. Set B is scattered. Spread (also called dispersion or variability) is the measure that tells them apart. In practice, it often matters more than the center. A process that averages the right answer but swings wildly is most often worse than one that is a bit off but steady.

The roughest measure of spread is the range:

Range = maximum − minimum

For Set A, the range is 52 − 48 = 4. For Set B, it is 70 − 30 = 40; that already tells them apart. And the range is easy to understand at once, which is why it is quoted so often. But its weakness is fatal for serious work; it uses only two numbers and throws away everything in between. And those two numbers are the most extreme values in the data set, just the ones most likely to be flukes. Add one typo to your spreadsheet, and the range can change by a factor of ten (an order of magnitude).

Variance and standard deviation, step by step

A better measure uses every value; the natural idea is to measure how far each value sits from the mean. That is its deviation, (x − x̄). Then you average those distances; there is one snag. The deviations always add up to exactly zero, because the mean is the balance point; the pluses and minuses cancel perfectly, every time; the fix is to square each deviation first; that makes everything positive. As a bonus, it punishes large gaps more than small ones.

Squaring gives the variance; there are two versions, and the difference is not just for show:

Population: σ2 = Σ(x − μ)2 / N
Sample: s2 = Σ(x − x̄)2 / (n − 1)

The top part, Σ(x − x̄)2, is called the sum of squares, or SS for short. Variance is in squared units, such as squared dollars or squared minutes, which nobody can picture. So we most often take the square root and report the standard deviation; that brings us back to the original units:

σ = √(σ2)     s = √(s2)

Read the standard deviation as about how far a typical value sits from the mean; that is not its exact definition. (It is the root mean square deviation, not the average absolute deviation.) But it is the right picture to hold in your head, and it will not mislead you.

Now the math, worked in full for Set A treated as a sample. First the mean: x̄ = 250 / 5 = 50.

Value xDeviation (x − x̄)Squared deviation (x − x̄)2
4848 − 50 = −24
4949 − 50 = −11
5050 − 50 = 00
5151 − 50 = +11
5252 − 50 = +24
Totals0 ← alwaysSS = 10

Divide the sum of squares by n − 1 = 4:

s2 = 10 / 4 = 2.5     s = √2.5 ≈ 1.58

Run the same steps on Set B. The deviations are −20, −10, 0, +10, +20. Their squares are 400, 100, 0, 100, 400, so SS = 1000. So s2 = 1000 / 4 = 250 and s = √250 ≈ 15.81. Every deviation in Set B is exactly ten times the matching deviation in Set A. So the standard deviation is exactly ten times as large; that is a useful sanity check. It is also a reminder that the standard deviation scales the same way the data do.

Say we had treated Set A as a whole population. Then we would have divided SS by N = 5 instead: σ2 = 10 / 5 = 2 and σ = √2 ≈ 1.41. Notice that the sample version is always the larger of the two.

Why n − 1, and how to compare spreads fairly

The n − 1 in the sample formula is called Bessel's correction; the reason for it is worth understanding, not just memorizing; you work out deviations from the sample mean; that center was itself worked out from those same data points. By design, the sample mean sits right in the middle of your own sample. So distances from it are steadily a little too small, compared with distances from the true population mean μ, which you do not know. Dividing by the smaller number n − 1 raises the result just enough to fix that tilt. Worked out this way, s2 is an unbiased estimator of σ2. That means over many repeated samples, it averages out to the right answer. The number n − 1 is also called the degrees of freedom. Once you know the mean and any four of five values, the fifth is forced. So only four of the deviations are free to vary.

Last, a standard deviation only means something next to its own mean. An s of 15 is huge for adult body temperature and tiny for yearly income. To compare spread across different scales or units, use the coefficient of variation. It gives the standard deviation as a percentage of the mean:

CV = (s / x̄) × 100%

For Set A, CV = (1.58 / 50) × 100% ≈ 3.2%. For Set B, CV = (15.81 / 50) × 100% ≈ 31.6%. Set B is about ten times as spread out, compared with its own center. The CV needs a ratio level variable with a true zero and a positive mean. It is nonsense for a scale like Celsius temperature, where zero is just a chosen point.

Variance is squared; standard deviation is not. If your data are in minutes, the variance is in "square minutes." That unit has no physical meaning. That is just why we take the square root and report s. Never read a variance as a distance, and never compare a variance with a mean.
Interactive Turn a spread dial and watch every deviation from the mean stretch or shrink in real time, with s tracking the dial exactly, the variance tracking its square, and the full arithmetic recomputed live from the values on screen. Open full ↑
Key points
  • Range = max − min; it is simple, but it is built from the two least trustworthy values.
  • Deviations (x − x̄) always add up to zero, so we square them; the total is the sum of squares.
  • Sample variance s2 = SS / (n − 1). Population variance σ2 = SS / N.
  • Standard deviation is the square root of the variance, and it is back in the original units.
  • n − 1 (Bessel's correction, the degrees of freedom) makes s2 an unbiased estimate of σ2.

Section 3The five-number summary

Labeled boxplot showing minimum, first quartile, median, third quartile, maximum, whiskers, and outliers
Reference. The parts of a boxplot; the box edges sit at the quartiles, with a line at the median. Whiskers reach to the last value that is not an outlier. Outliers are plotted as single points. Source and license: see the figure credits

Quartiles and the summary itself

The median splits a sorted data set into two halves. Split each half again, and you get the quartiles. These are three cut points that carve the data into four quarters of equal size. Q1, the first quartile, has 25% of the data below it. Q2 is the median, with 50% below. Q3, the third quartile, has 75% below it. Quartiles are a special case of percentiles; the pth percentile is the value below which about p% of the data fall. So Q1 is the 25th percentile and Q3 is the 75th.

Put the two extremes on either end, and you have the five-number summary: minimum, Q1, median, Q3 and maximum. With five numbers, you know the center, the spread, the shape and the reach of the data. No description in statistics packs more information into fewer characters.

Work an example; here are twelve response times, in minutes, already sorted:

3, 7, 8, 12, 13, 14, 18, 21, 22, 26, 31, 58

Step 1: median. With n = 12 (even), average the 6th and 7th values: (14 + 18) / 2 = 16.

Step 2: Q1. Take the lower half, the six values below the median position: 3, 7, 8, 12, 13, 14; its median is (8 + 12) / 2 = 10.

Step 3: Q3. Take the upper half: 18, 21, 22, 26, 31, 58. Its median is (22 + 26) / 2 = 24.

Step 4: the summary. Minimum 3, Q1 10, median 16, Q3 24, maximum 58.

From these, you get the interquartile range right away:

IQR = Q3 − Q1 = 24 − 10 = 14

The IQR is the width of the middle 50% of the data. Compare it with the range, which is 58 − 3 = 55; the range says these data sprawl across 55 minutes; the IQR says the typical half of them fit inside a 14 minute window; both are true. The gap between them is telling you that something unusual lives out in the right tail. Like the median, the IQR is resistant; you could change that 58 to 5800, and the IQR would not move at all.

Here is a small warning that saves a lot of confusion later; there are several fair ways to work out quartiles. They differ in whether the median value itself is included when you split a data set with an odd count. They also differ in how they fill in between values (interpolate); the method used above is to take the median of each half; it is the one taught in most first courses; those leave the median out of both halves when n is odd. Tukey's original hinges include it in both instead. With an even n, as here, the two agree exactly. Different software may report a Q1 and Q3 that differ a little from your hand math. Neither is wrong; they answer the question with different rules.

Boxplots and the 1.5 × IQR rule

A boxplot (box-and-whisker plot) draws the five-number summary; a box spans from Q1 to Q3, so its width is the IQR. A line inside marks the median. Whiskers then reach outward, but not always to the minimum and maximum. They stop at the most extreme values that still count as ordinary. Anything beyond them is plotted as a single dot.

What counts as ordinary is set by the 1.5 × IQR rule; it sets two fences:

Lower fence = Q1 − 1.5 × IQR
Upper fence = Q3 + 1.5 × IQR

Any value outside the fences is flagged as an outlier. For our response times, 1.5 × IQR = 1.5 × 14 = 21, so:

QuantityCalculationResult
Minimumsmallest value3
Q1median of lower half10
Median (Q2)(14 + 18) / 216
Q3median of upper half24
Maximumlargest value58
IQR24 − 1014
1.5 × IQR1.5 × 1421
Lower fence10 − 21−11
Upper fence24 + 2145
Outliersvalues < −11 or > 4558 only

So the boxplot's left whisker reaches down to 3; that is the smallest value, well inside the lower fence. The right whisker stops at 31, the largest value that is not an outlier. And 58 is drawn as a lone point off to the right. Note that no value can fall below the lower fence of −11 here, since times cannot be negative. So this rule can only ever flag high outliers in these data. Remember that before you read the one flag as proof of anything by itself. The skew is better judged from the summary as a whole; the outlier sits in the upper tail. Q3 is farther from the median (24 − 16 = 8) than Q1 is (16 − 10 = 6). And the mean of these twelve values, 233 / 12 ≈ 19.4, sits well above the median of 16. All three point the same way; the data are right skewed.

Boxplots really pay off when you place several side by side. Compare three groups by boxplot, and you can read many things at a glance. You see differences in center (the median lines) and in spread (the box lengths). You see differences in skew, shown by whether the median sits off center in its box, and you see any stragglers. All of this comes without assuming anything about the shape of the distributions.

An outlier is a flag, not a verdict. The 1.5 × IQR rule picks out values worth looking into. It does not give you the right to delete them; a flagged point may be a typing error, so fix it. It may be a measurement from a different population, so document it and maybe leave it out. Or it may be the single most important real observation you have. Deleting data you do not like because a formula flagged it is how findings get faked.
Interactive Drag one value across the 1.5 ร— IQR fence and watch the boxplot rebuild itself: five numbers computed live, a whisker that retreats to the last value inside the fence, and a sweep of every multiplier showing how many points each one would flag. Open full ↑
Key points
  • The five-number summary is minimum, Q1, median, Q3 and maximum.
  • IQR = Q3 − Q1 is the width of the middle 50%, and it is resistant to outliers.
  • A boxplot draws the box from Q1 to Q3 with the median inside. Whiskers reach the last value that is not an outlier.
  • Fences sit at Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. Values beyond them are flagged as outliers.
  • Ways of working out quartiles vary a little between textbooks and software. Expect small differences.

Section 4Z-scores

Normal curve aligned with standard deviation markings, z-score scale, and percentile scale
Reference. A normal curve with its standard deviation, z-score and percentile scales lined up beneath it. Source and license: see the figure credits

Standardizing a value

Take two exams with two different scoring systems; you scored 82 on one and 88 on the other; which result was better? The raw numbers cannot say, because they are measured on different rulers. You need a way to strip away the scale of each exam. Then you can ask a question that does not depend on scale: how far above or below its own mean did each score fall, measured in standard deviations?

That is just what a z-score (also called a standard score) does:

z = (x − μ) / σ     or, for a sample,     z = (x − x̄) / s

Read the formula in two moves. The top part, (x − μ), says how far the value sits from the center, in the original units. Dividing by σ says in what currency to state that distance: standard deviations; the result is a pure number with no units at all. That is what lets you compare it across any two distributions you like.

Now settle the exam question. Say Exam A had a mean of 75 with a standard deviation of 5. Exam B had a mean of 80 with a standard deviation of 10.

ExamYour score xMean μSD σz-scoreReading
Exam A82755(82 − 75) / 5 = 7 / 5 = +1.401.40 SD above the mean
Exam B888010(88 − 80) / 10 = 8 / 10 = +0.800.80 SD above the mean

The lower raw score is the stronger result. On Exam A, you beat your classmates by 1.40 standard deviations. On Exam B, it was only 0.80; the 88 looked better only because Exam B was easier and more spread out; this is the whole point of standardizing; it turns "how many points" into "how unusual," and only the second one can be compared.

The sign carries meaning on its own; a positive z means above the mean; a negative z means below. And z = 0 means the value is exactly at the mean. Standardize a whole data set, and the new values always have a mean of 0 and a standard deviation of 1. Try it on Set A from Section 2 (x̄ = 50, s ≈ 1.58). The values 48, 49, 50, 51, 52 become z-scores of about −1.26, −0.63, 0, +0.63 and +1.26; they add up to zero.

Running the formula backwards, and reading the size

The formula can be rearranged, which is just as useful. Solve z = (x − μ) / σ for x:

x = μ + zσ

Say a measurement has μ = 70 and σ = 8; you are told one observation has z = −1.50, then x = 70 + (−1.50)(8) = 70 − 12 = 58. Any question of the form "what value sits two standard deviations above the mean?" is answered this way.

How big must a z-score be before it is interesting? A common working habit treats |z| > 2 as unusual and |z| > 3 as very unusual. Those cutoffs come from the empirical rule in the next section, so they assume a distribution that is about bell shaped; they are habits, not laws.

z-scorePositionRough reading (bell-shaped data)
0At the meanPerfectly typical; about the 50th percentile
+11 SD aboveAround the 84th percentile
−11 SD belowAround the 16th percentile
±22 SD from the meanUnusual: only about 5% of values are this far out or farther
±33 SD from the meanVery unusual: roughly 0.3% of values

Here is one warning that trips up nearly everyone. Working out a z-score needs no assumption about the shape of the distribution. You can standardize any data set with a mean and a standard deviation, however lopsided. But turning a z-score into a percentile or a probability does need you to know the shape. The right hand column of the table above holds for bell shaped data; it can be badly wrong for skewed data. A z of +2 sits at about the 98th percentile of a bell shaped distribution. In a strongly right skewed one, it can land nearer the 95th. With other shapes, it can miss the other way; the only way to know is to look at the distribution.

A z-score is a location, not a probability. "z = 2" means "two standard deviations above the mean" and nothing more. It only becomes a statement about how likely a value is once you commit to a shape for the distribution. That is a separate claim, and you have to back it with the data.
Interactive Standardize a value with z = (x โˆ’ mean) รท SD and watch two scores from completely different distributions, race times, house prices, a height and a weight, land on one shared unitless ruler, with every z, percentile and curve computed live. Open full ↑
Key points
  • z = (x − μ) / σ states a value as a number of standard deviations from the mean.
  • z-scores have no units (they are unitless); that is what lets you compare values from different distributions.
  • Rearranged, x = μ + zσ turns a z-score back into a value on the original scale.
  • A standardized data set always has a mean of 0 and a standard deviation of 1.
  • Standardizing needs no assumption about shape. Turning z into a percentile does.

Section 5The empirical rule

Normal distribution curve labeled with the 68, 95, and 99.7 percent intervals at one, two, and three standard deviations
Reference. The empirical rule. About 68%, 95% and 99.7% of a bell shaped distribution lies within one, two and three standard deviations of the mean. Source and license: see the figure credits

68 to 95 to 99.7 for bell-shaped data

Say a distribution is bell shaped; it is about symmetric, with one peak and tails that thin out smoothly on both sides, then the standard deviation does something remarkable; it predicts, quite exactly, how much of the data lies where. This is the empirical rule, also called the 68 to 95 to 99.7 rule:

IntervalApproximate share of dataMore precise value
μ ± 1σabout 68%68.27%
μ ± 2σabout 95%95.45%
μ ± 3σabout 99.7%99.73%

Work an example; a standardized test is bell shaped with μ = 100 and σ = 15. Then:

The bell is symmetric, so you can split the leftovers evenly and answer one sided questions too. Outside ±2σ lies 100% − 95% = 5% of the data, half in each tail. So about 2.5% of scores are above 130, and about 2.5% fall below 70. Outside ±1σ lies 32%, so about 16% of scores are above 115, and since 68% sits inside ±1σ, half of that, 34%, lies between 100 and 115.

A note for later chapters: "95%" is rounded; the interval holding exactly 95% of a normal distribution is μ ± 1.96σ, not μ ± 2σ. The 1.96 will show up again and again once you reach confidence intervals, so it is worth meeting now.

Chebyshev's theorem: the guarantee that always holds

The empirical rule has a strict condition: the data must be bell shaped. Use it on a strongly skewed distribution, such as incomes, wait times or insurance claims, and it will lie to you, often badly. So what can you say when you do not know the shape? Or when you know it is not bell shaped?

Chebyshev's theorem answers that. It works for any distribution at all, with any shape, any skew and any number of peaks, as long as it has a mean and a standard deviation. The share of data lying within k standard deviations of the mean is at least:

1 − 1 / k2     (for any k > 1)

Put in a few values of k. For k = 2: 1 − 1/22 = 1 − 1/4 = 0.75. So at least 75% of any data set lies within 2 SD of its mean. For k = 3: 1 − 1/9 = 0.889, so at least 88.9% lies within 3 SD. For k = 4: 1 − 1/16 = 0.9375, at least 93.75%. The rule k > 1 exists because at k = 1 the formula gives 1 − 1 = 0. That is true but useless.

A worked case; a right skewed set of processing times has μ = 200 seconds and σ = 20 seconds. You are asked what share of jobs finish between 140 and 260 seconds. First find k. The interval reaches 60 seconds on either side of the mean, and 60 / 20 = 3, so k = 3. Chebyshev then promises that at least 1 − 1/32 = 1 − 0.111 = 88.9% of jobs fall in that window. You did not need to know the shape at all; that is the point.

kIntervalChebyshev guarantees at leastEmpirical rule says (bell-shaped only)
2μ ± 2σ75%about 95%
3μ ± 3σ88.9%about 99.7%
4μ ± 4σ93.75%about 99.99%
5μ ± 5σ96%> 99.99%

Read that table with care, because the two columns are not rival estimates. Chebyshev states a floor that is never broken; the empirical rule states an approximation that holds when the bell shape holds. There is no clash between "at least 75%" and "about 95%" for the same interval. 95% is well over 75%. Chebyshev buys the power to work everywhere at the price of being vague. The empirical rule buys precision at the price of an assumption you must check.

How do you check it? Look at the data before you assume. Plot a histogram. Compare the mean with the median. Sketch a boxplot and see whether the median sits centered in its box. Every tool from Sections 1 through 3 exists partly to answer this one question.

Never use 68 to 95 to 99.7 on skewed data. On a right skewed distribution, μ − 2σ is often a negative number for an amount that cannot be negative. That is a sure sign the rule does not fit. When the shape is unknown or clearly lopsided, fall back on Chebyshev. Or better, report the actual quartiles.
Interactive Shade any slice of a normal curve and watch the area integrate live: drag the boundary out to 1, 2 and 3 standard deviations to find 68, 95 and 99.7 percent, then draw a real sample and count how many values actually landed inside. Open full ↑
Key points
  • The empirical rule: about 68%, 95% and 99.7% of bell shaped data lie within 1, 2 and 3 SD of the mean.
  • Symmetry lets you halve the leftover. About 2.5% of bell shaped data lie above μ + 2σ.
  • Exactly 95% matches μ ± 1.96σ, not ±2σ.
  • Chebyshev's theorem: for any shape, at least 1 − 1/k2 of the data lie within k SD of the mean (k > 1).
  • Chebyshev is a minimum you can count on; the empirical rule is an approximation that needs the bell shape.

The chapter in one breath

  • Center comes in three kinds: the mean (balance point), the median (middle by position) and the mode (most common value).
  • The mean is pulled by outliers and skew; the median is resistant, so report it whenever the data are lopsided. Report both when they disagree.
  • Spread is the other half of the story. Two data sets with the same mean can be nothing alike.
  • Variance averages squared deviations. σ2 = SS / N for a population, and s2 = SS / (n − 1) for a sample. The standard deviation is its square root, back in the original units.
  • The five-number summary (min, Q1, median, Q3, max) plus the IQR describes center, spread and shape without assuming anything; the boxplot draws it.
  • The 1.5 × IQR rule flags outliers to look into; it is a prompt to look, never a right to delete.
  • A z-score, (x − μ) / σ, turns any value into standard deviations from its own mean. That lets you compare values from different distributions directly.
  • The empirical rule (68 to 95 to 99.7) is exact but demands a bell shape. Chebyshev's theorem (at least 1 − 1/k2) is vaguer but always true.

ReferenceWords worth knowing

A quick reference for the terms in this chapter. Skim it now, or come back whenever a word trips you up.

Bessel's correction
Dividing the sum of squares by n − 1 instead of n when working out a sample variance. Then s2 is an unbiased estimate of the population variance σ2.
Boxplot
A box-and-whisker plot; a box runs from Q1 to Q3 with the median marked inside. Whiskers reach to the most extreme values that are not outliers, and outliers are drawn as separate points.
Chebyshev's theorem
For any distribution, whatever its shape, at least 1 − 1/k2 of the data lie within k standard deviations of the mean, for any k > 1.
Coefficient of variation (CV)
The standard deviation given as a percentage of the mean, (s / x̄) × 100%. It is used to compare spread across different scales or units.
Degrees of freedom
The number of values in a calculation that are free to vary. For a sample variance it is n − 1, because fixing the mean sets the last value.
Deviation
The signed distance of a single value from the mean, (x − x̄). Deviations from the mean always add up to zero.
Empirical rule
For bell shaped distributions, about 68%, 95% and 99.7% of the data lie within one, two and three standard deviations of the mean.
Five-number summary
The set of minimum, Q1, median, Q3 and maximum; it is a compact description of center, spread and shape.
Interquartile range (IQR)
Q3 − Q1, the width of the middle 50% of the data; it is a resistant measure of spread.
Mean
The arithmetic average: x̄ = Σx / n for a sample and μ = Σx / N for a population. It is the balance point of the data.
Median
The middle value of sorted data. With an even count, it is the average of the two middle values. It is also the 50th percentile and the second quartile.
Mode
The value that comes up most often; it is the only measure of center you can use with categorical data. A data set may have one mode, several or none.
Outlier
A value far from the bulk of the data. It is most often defined as any value beyond Q1 − 1.5 × IQR or Q3 + 1.5 × IQR.
Percentile
The value below which a given percentage of the data falls; the 25th, 50th and 75th percentiles are the three quartiles.
Quartile
One of the three cut points (Q1, Q2, Q3) that split sorted data into four groups of equal size.
Range
Maximum minus minimum. It is the simplest measure of spread and the least resistant, since it depends only on the two extreme values.
Resistant measure
A statistic that changes little when extreme values are added or changed. The median and IQR are resistant; the mean and range are not.
Skewed distribution
A lopsided (asymmetric) distribution with a longer tail on one side. Right (positive) skew pulls the mean above the median. Left (negative) skew pulls it below.
Standard deviation
The square root of the variance (σ or s). Roughly, it is how far a typical value sits from the mean, in the original units.
Sum of squares (SS)
Σ(x − x̄)2, the total of the squared deviations; it is the top part of every variance formula.
Variance
The mean of the squared deviations: σ2 = SS / N for a population, and s2 = SS / (n − 1) for a sample. Its units are the original units squared.
Z-score
A standardized value, z = (x − μ) / σ. It gives the number of standard deviations a value lies above or below its mean. It has no units, so it can be compared across distributions.

Check yourself

1. Find the mean, median and mode of: 4, 8, 9, 9, 12, 13, 15.
Mean 10, median 9, mode 9. The sum is 70 and n = 7, so x̄ = 70 / 7 = 10. With seven sorted values, the median is the 4th, which is 9; only the value 9 repeats, so it is the mode.
2. Six salaries (in thousands) are 38, 42, 45, 48, 52 and 275. Work out the mean and median. Say which better describes a typical worker.
Mean = 500 / 6 ≈ 83.3; median = (45 + 48) / 2 = 46.5; the median is the better description. One extreme value drags the mean above five of the six salaries. So the mean no longer describes anyone in the data set. The median is resistant and stays near the bulk of the values.
3. A data set has a mean of 62 and a median of 48. What does that tell you about its shape, and why?
It is right skewed (positively skewed). The mean is above the median because a long right tail of large values pulls the balance point up. The middle by position stays put. When the mean and median are close, the distribution is about symmetric.
4. Why can't you take the mean of a variable like blood type or favorite brand? What should you report instead?
Those are categorical (nominal) variables with no number order, so adding and dividing means nothing. Report the mode. The mode, the most common group, is the only measure of center that works for nominal data.
5. For the sample 48, 49, 50, 51, 52, work out the sum of squares, the sample variance and the sample standard deviation. Show the steps.
SS = 10, s2 = 2.5, s ≈ 1.58. The mean is 250 / 5 = 50. The deviations are −2, −1, 0, +1, +2. Squared, they are 4, 1, 0, 1, 4, which add up to SS = 10. Then s2 = 10 / (5 − 1) = 2.5 and s = √2.5 ≈ 1.58.
6. Treat the same five numbers as a whole population; what are σ2 and σ? Why do they differ from the sample answers?
σ2 = 10 / 5 = 2 and σ = √2 ≈ 1.41. The population formula divides SS by N instead of n − 1. Since n − 1 is smaller, the sample variance is always the larger of the two. That boost (Bessel's correction) makes up for the fact that deviations from the sample mean are steadily too small.
7. Why do we square the deviations before averaging them, instead of just averaging (x − x̄) directly?
Because the deviations from the mean always add up to exactly zero. So their average is always 0 and tells you nothing. Squaring makes every term zero or more, so they cannot cancel. It also weights large gaps more than small ones. The square root at the end brings the answer back to the original units.
8. For the sorted data 3, 7, 8, 12, 13, 14, 18, 21, 22, 26, 31, 58, give the five-number summary and the IQR.
Min 3, Q1 = 10, median = 16, Q3 = 24, max 58; IQR = 14. With n = 12, the median is (14 + 18) / 2 = 16. The lower half, 3, 7, 8, 12, 13, 14, has median (8 + 12) / 2 = 10 = Q1. The upper half, 18, 21, 22, 26, 31, 58, has median (22 + 26) / 2 = 24 = Q3. IQR = 24 − 10 = 14.
9. Use that same data set with the 1.5 × IQR rule. Which values are flagged, and where do the whiskers of the boxplot end?
Only 58 is flagged; the whiskers run from 3 to 31. 1.5 × IQR = 1.5 × 14 = 21. So the lower fence is 10 − 21 = −11, and the upper fence is 24 + 21 = 45. Every value except 58 lies inside the fences. So the whiskers stop at the smallest and largest values that are not outliers, 3 and 31. And 58 is plotted as a single point.
10. You scored 82 on Exam A (mean 75, SD 5) and 88 on Exam B (mean 80, SD 10). Which was the stronger result compared with the class? Show the z-scores.
Exam A, with z = +1.40 versus z = +0.80 on Exam B. For A, z = (82 − 75) / 5 = 1.40. For B, z = (88 − 80) / 10 = 0.80. The 82 sits farther above its own mean in standard deviation units, even though the raw score is lower. Exam B was just easier and more spread out.
11. A bell shaped variable has μ = 100 and σ = 15; what interval holds about 95% of values? About what percentage of values are above 130?
About 95% lie between 70 and 130. About 2.5% are above 130. Two standard deviations is 2 × 15 = 30. That gives 100 ± 30 = 70 to 130. By symmetry, the other 5% is split evenly between the two tails, so about 2.5% falls above 130. (Strictly, exactly 95% matches μ ± 1.96σ.)
12. Processing times are strongly right skewed with μ = 200 s and σ = 20 s. What can you say about the share of jobs finishing between 140 and 260 seconds? Why can't you use the empirical rule?
By Chebyshev's theorem, at least 88.9% of jobs fall in that window. The interval reaches 60 s on each side, and 60 / 20 = 3. So k = 3, and the minimum you can count on is 1 − 1/32 = 1 − 0.111 = 0.889. The empirical rule is off limits because it needs a bell shape, and these data are strongly skewed. Note that Chebyshev gives a floor, not an estimate; the true share could be quite a bit higher.