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

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.
| Measure | Definition | Use it when | Avoid it when |
|---|---|---|---|
| Mean | Σx / n: the balance point | Data 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 |
| Median | The middle value in sorted order | Data are skewed or have outliers; data are ordinal (ranked); you want "typical" | You need an algebraic quantity for later computation |
| Mode | The most frequent value | Data 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?"
- 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

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 x | Deviation (x − x̄) | Squared deviation (x − x̄)2 |
|---|---|---|
| 48 | 48 − 50 = −2 | 4 |
| 49 | 49 − 50 = −1 | 1 |
| 50 | 50 − 50 = 0 | 0 |
| 51 | 51 − 50 = +1 | 1 |
| 52 | 52 − 50 = +2 | 4 |
| Totals | 0 ← always | SS = 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.
- 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

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:
| Quantity | Calculation | Result |
|---|---|---|
| Minimum | smallest value | 3 |
| Q1 | median of lower half | 10 |
| Median (Q2) | (14 + 18) / 2 | 16 |
| Q3 | median of upper half | 24 |
| Maximum | largest value | 58 |
| IQR | 24 − 10 | 14 |
| 1.5 × IQR | 1.5 × 14 | 21 |
| Lower fence | 10 − 21 | −11 |
| Upper fence | 24 + 21 | 45 |
| Outliers | values < −11 or > 45 | 58 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.
- 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

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.
| Exam | Your score x | Mean μ | SD σ | z-score | Reading |
|---|---|---|---|---|---|
| Exam A | 82 | 75 | 5 | (82 − 75) / 5 = 7 / 5 = +1.40 | 1.40 SD above the mean |
| Exam B | 88 | 80 | 10 | (88 − 80) / 10 = 8 / 10 = +0.80 | 0.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-score | Position | Rough reading (bell-shaped data) |
|---|---|---|
| 0 | At the mean | Perfectly typical; about the 50th percentile |
| +1 | 1 SD above | Around the 84th percentile |
| −1 | 1 SD below | Around the 16th percentile |
| ±2 | 2 SD from the mean | Unusual: only about 5% of values are this far out or farther |
| ±3 | 3 SD from the mean | Very 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.
- 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

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:
| Interval | Approximate share of data | More 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:
- One SD: 100 − 15 = 85 and 100 + 15 = 115. About 68% of scores fall between 85 and 115.
- Two SD: 100 − 30 = 70 and 100 + 30 = 130. About 95% of scores fall between 70 and 130.
- Three SD: 100 − 45 = 55 and 100 + 45 = 145. About 99.7% of scores fall between 55 and 145.
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.
| k | Interval | Chebyshev guarantees at least | Empirical 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.
- 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.