Measures of Center
A measure of center is a single number that describes the “middle” of a data set.
- Mean (the “average”): add all the values, then divide by how many there are. @@BLOCK0@@
- Median: the middle value after the data is put in order. If there is an even number of values, average the two middle ones.
- Mode: the value that appears most often. A set can have no mode, one mode, or several.
Describing data means reporting a center and a spread, and choosing which ones: mean and standard deviation for symmetric data, median and quartiles when outliers are present. Box plots show the five-number summary at a glance; scatter plots and lines of best fit show whether two variables move together.
The mean is the balance point of the data: the distances of the values below it exactly cancel the distances above it. That is why a single extreme value moves it so much, since one long distance must be balanced. The median only counts positions (half the data on each side), so an extreme value can move it by at most one position.
Find the mean, median, and mode of: .
Mean: sum , and there are values, so
Median: order the data first: . With values the two middle ones are the th and th: and .
Mode: appears three times, more than any other value, so the mode is .
Finding the median of an even-length list by picking one middle value: for , "the median is " or "." With two middle values, the median is their average, .
- Use the mean when the data is fairly even with no extreme values.
- Use the median when there are outliers (values far from the rest), because the median is not pulled toward them.
- Use the mode for categories or “most popular” questions (favorite color, most common shoe size).
An outlier is a value much larger or smaller than the rest of the data.
Remember: Always order the data before finding the median. An outlier drags the mean toward itself but barely moves the median. Example: for the mean is ; change the to and the mean jumps to , but the median only moves from to .
Salaries at a small firm (in thousands): . Find the mean and median. Which better describes a typical salary?
Show the answerHide the answer
Mean: . Median: middle two are and , so . Five of the six salaries are below the mean; the median, thousand, describes a typical salary.
Measures of Spread
A measure of spread tells how spread out the data is.
- Range maximum minimum.
- Quartiles split ordered data into four equal parts. is just the median. (the lower quartile) is the median of the lower half; (the upper quartile) is the median of the upper half.
- Interquartile range (IQR) . It measures the spread of the middle of the data and ignores outliers.
The range uses only the two most extreme values, so one unusual value can change it a lot. The IQR measures the width of the middle half of the data, from to , and ignores both tails, which makes it resistant to outliers in the same way the median is.
Find the range, quartiles, and IQR of the ordered data
There are values. Range .
The median () is the th value: .
Lower half (values below the median): . Its median is .
Upper half (values above the median): . Its median is .
Including the median in both halves when the count is odd: for values, taking as the lower half gives . The median (the th value, ) is left out of both halves: , so .
Tip: When the number of values is odd, do not include the middle value in either half when finding and . When it is even, split the ordered list exactly in half.
Find the median, , and IQR of .
Show the answerHide the answer
Eight values: the median is the average of the th and th, . Lower half : . Upper half : . IQR .
Five-Number Summary & Box Plots
The five-number summary lists, in order:
A box-and-whisker plot draws these five numbers on a number line: a box stretches from to with a line at the median, and whiskers reach out to the minimum and maximum. The box holds the middle of the data.
Each of the four sections of a box plot holds a quarter of the data, so a long section means those values are spread thin and a short section means they are packed together. That is how a box plot shows skew at a glance: the right whisker here is longer because the top quarter is spread out.
Using the example above, the five-number summary is
So the box runs from to , with a line at . The left whisker reaches and the right whisker reaches . Because the right whisker ( to ) is a bit longer than the left, the data is slightly skewed right. Half of all values lie between and .
Reading box length as number of values: "the box from to holds more data than the whisker from to because it is longer." The box always holds half the data and each whisker a quarter, whatever their lengths.
Outlier rule (advanced): A value is usually called an outlier if it is more than below or above .
A data set has and . Using the IQR rule, which of , , , are outliers?
Show the answerHide the answer
IQR and . Fences: and . Outliers are below or above : and . ( and are inside the fences.)
Displaying Data & Describing Shape
- Dot plot: one dot per data value stacked above a number line. Great for small sets; the mode is the tallest stack.
- Stem-and-leaf plot: each value is split into a stem (the leading digits) and a leaf (the last digit). Keeps every original value.
- Frequency table: lists each value or interval and how many times it occurs (its frequency).
- Histogram: a bar graph for intervals of data, with bars touching. The height of each bar is the frequency of that interval.
Grouping trades detail for shape: the frequency table and histogram show where the scores pile up (high, with a tail toward the s), while the stem-and-leaf plot keeps every value. A left-skewed shape like this one pulls the mean below the median, because the few low scores drag the balance point down.
Test scores: .
A frequency table (grouped by tens):
The same data as a stem-and-leaf plot (stem tens digit):
The mode is (three leaves of on the stem ). Unlike the grouped table, the stem-and-leaf plot keeps every original score.
Leaving gaps or unequal bins in a histogram, or listing leaves out of order. The bins must have equal widths and touch; a stem-and-leaf plot lists each stem's leaves in increasing order so the median can be counted off directly.
- Symmetric: the left and right sides roughly mirror each other (a “bell” shape peaks in the middle).
- Skewed right: a long tail stretches toward the high values; most data sits on the left.
- Skewed left: a long tail stretches toward the low values; most data sits on the right.
Tip: In a right-skewed set the mean is pulled above the median; in a left-skewed set the mean is pulled below the median. In a symmetric set the mean and median are about equal.
For the nine test scores, find the mean and median. Does their order match the shape of the histogram?
Show the answerHide the answer
Sum: , so the mean is . Ordered: , median . The mean is below the median, as expected for data with a tail to the left.
Scatter Plots & Correlation
A scatter plot graphs pairs of data as points. It shows whether two quantities are related. The correlation describes the pattern:
- Positive: as increases, tends to increase (points rise from left to right).
- Negative: as increases, tends to decrease (points fall from left to right).
- No correlation: no clear upward or downward pattern.
Correlation can also be strong (points hug a line tightly) or weak (points are loosely scattered).
A scatter plot turns each pair into a point, so a relationship between two quantities becomes a visible shape. Correlation describes how closely that shape follows a line and in which direction. It measures association only: a third quantity can drive both, which is why correlation alone never proves cause.
A study records hours of sleep and a reaction-time score for five students:
As sleep increases, the score rises every time, and the points cluster closely along a rising line. This is a strong positive correlation: more sleep is associated with better scores.
Reading correlation as causation. Ice-cream sales and drownings rise together every summer; neither causes the other. Hot weather drives both.
Big idea: correlation causation. Two things can rise together without one causing the other. Ice-cream sales and swimming-pool accidents both climb in summer, but ice cream does not cause accidents — hot weather (a “lurking variable”) drives both.
Describe the correlation you would expect for (a) a car's age and its resale value; (b) shoe size and reading level among all students in a K–8 school. Could (b) be causal?
Show the answerHide the answer
(a) Negative: older cars tend to be worth less. (b) Positive, because both grow with age across grades K–8. It is not causal: age is the lurking variable; bigger feet do not improve reading.
Line of Best Fit: Slope & Intercept
A line of best fit (or trend line) is a straight line that comes as close as possible to the points of a scatter plot with a linear pattern. Written as :
- The slope is the predicted change in for each -unit increase in (a rate).
- The -intercept is the predicted value of when (a starting amount).
Plug an -value into the equation to predict a -value.
The line of best fit is the line that makes the vertical gaps (residuals) between the points and the line as small as possible overall, measured by the sum of their squares. For this data the residuals are : they sum to zero, as they always do for the best-fit line, so the line runs through the middle of the cloud rather than above or below it.
A plant's height (cm) was measured for six weeks:
The line of best fit for these points is
Predict the height at week : cm (the plant actually measured ).
Slope : the plant grows about cm each week.
Intercept : the plant was about cm tall at week (when it was planted).
Reading the intercept as meaningful far outside the data. A trend line for adult heights against age with intercept cm does not mean newborns are cm tall; is outside the data, and extrapolating there is not reliable.
Tip: Predictions made within the range of the data are usually reliable. Predicting far outside the data (called extrapolation) can give silly answers — that plant will not keep growing cm a week forever!
With , predict the height at week and find the residual for the measured cm. When will the model predict cm, and should you trust it?
Show the answerHide the answer
Predicted at week : cm; residual cm. For : gives weeks, which is outside the six measured weeks, so it is an extrapolation; plants slow down, so treat it with caution.
Two-Way Frequency Tables
A two-way frequency table sorts data by two categories at once (rows and columns).
- A joint frequency is a count inside the table (one row and one column).
- A marginal frequency is a row total or column total (found in the margins).
- The grand total (bottom-right corner) is the total number of items surveyed.
A two-way table lets you ask conditional questions by changing the denominator. "What fraction of walkers are sixth-graders?" divides by the Walk column total, ; "what fraction of sixth-graders walk?" divides by the Grade 6 row total, . Same count, different whole.
Students were asked whether they walk or ride the bus to school:
Joint: sixth-graders walk. Marginal: students are in Grade 6, and students total ride the bus. Grand total: students were surveyed.
Using the grand total for a conditional question: "the percent of Grade 7 students who ride the bus is ." Among Grade 7 students, the whole is the row total : .
Check: The row totals add to the grand total and the column totals add to the grand total. Here and . If they don't match, recount!
From the table, what percent of all students walk? What percent of bus riders are in Grade 6? Are sixth-graders more likely to walk than seventh-graders?
Show the answerHide the answer
Walk: . Bus riders in Grade 6: . Walking rates: Grade 6 , Grade 7 , so sixth-graders are slightly more likely to walk.
Going Deeper: Advanced Statistics
Center and spread are only the beginning. This section pushes into the tools that show up on advanced exams and in real data analysis: variance and standard deviation, formal outlier fences, reading the correlation coefficient, making and judging predictions, weighted averages, and residuals.
The range and IQR describe spread using just a few values. Standard deviation uses every value, measuring the typical distance from the mean.
- A deviation is how far one value sits from the mean: (where is the mean).
- The variance is the average of the squared deviations. We square so that positive and negative gaps don't cancel out.
- The standard deviation is the square root of the variance, returning to the original units.
A small standard deviation means values cluster near the mean; a large one means they are widely spread.
Find the standard deviation of .
Step 1 — mean:
Step 2 — squared deviations (organized in a table):
Step 3 — variance: average the squared deviations:
Step 4 — standard deviation:
So the values sit, on average, about units away from the mean of .
Population vs. sample: Dividing by gives the population standard deviation . When your data is only a sample of a larger group, statisticians divide by instead (the sample standard deviation ); this slightly larger value corrects for the sample underestimating the true spread. Check which one a problem asks for.
Earlier we named outliers informally. Here is the formal test. From the five-number summary, compute , then build two fences:
Any value below the lower fence or above the upper fence is an outlier. On a box plot, these are drawn as separate dots, and the whiskers only reach to the most extreme values still inside the fences.
A data set has five-number summary
Step 1 — IQR:
Step 2 — fences:
Step 3 — compare: The minimum is above , so it is fine. But the maximum is above the upper fence of , so is an outlier. On the box plot, the right whisker stops at the largest value at or below , and is marked as its own dot.
The words “strong” and “weak” can be made precise with the correlation coefficient , a number between and that measures how tightly points cluster around a straight line.
- The sign of gives the direction: is positive correlation, is negative.
- The size of gives the strength: near (or ) the points hug a line; near there is little linear pattern.
- or means the points lie exactly on a line; means no linear relationship.
Rough guide: is strong, is moderate, and is weak.
Warning — measures linear fit only. A tight U-shaped or curved pattern can have near even though the two variables are strongly related. And, as before, a large still does not prove causation — it only measures how well a line describes the cloud of points. A lurking variable can inflate without either variable causing the other.
A shop fits the trend line relating advertising spending (in hundreds of dollars) to weekly sales (in units), with .
Predict sales when the shop spends $ on ads, so :
Interpret the slope : each extra $ of advertising (a -unit rise in ) is associated with about more units sold per week.
Interpret the intercept : with no advertising (), the model predicts about units sold — a baseline level of sales.
Judge the fit: means , a strong positive linear relationship, so this prediction is trustworthy within the data range. Predicting sales for $ of ads would be risky extrapolation.
A residual measures the error at a single data point:
- A positive residual means the actual value is above the line (the model under-predicted).
- A negative residual means the actual value is below the line (the model over-predicted).
- A residual of means the point lands exactly on the line.
The line of best fit is precisely the line that makes the sum of the squared residuals as small as possible — which is why it is also called the least-squares line.
Residual plots: Plot each residual against its -value. If the residuals scatter randomly above and below zero with no pattern, a line is a good model. If they curve or fan out, the data is not really linear and a line is the wrong tool. Example: for the plant line , if a plant was actually cm at week (predicted ), its residual is cm.
An ordinary mean treats every value equally. A weighted average lets some values count more than others by assigning each a weight:
Weights often represent importance, frequency, or size — like the number of credit hours behind each course grade, or the percentage each category contributes to a final grade.
A class grade is homework, quizzes, and the final exam. A student earns on homework, on quizzes, and on the final. Find the course grade.
Using the weights as decimals (, which sum to ):
The weighted grade is . Notice this is below the plain mean of the three scores () because the low final exam carries the heaviest weight.
Sanity check: A weighted average always lands between the smallest and largest of the values ( and above). If your answer falls outside that range, you multiplied or divided by the wrong number. When the weights already add to (or ), the denominator is just and you can skip dividing.
Find the range of the data set: .
Work it on paper before revealing the answer.
Show the answerHide the answer
Answer: Range .
Why It Works
The median is resistant to outliers because it depends only on the ORDER of the data, not on the values themselves: replacing the largest value by a million does not change which value sits in the middle. The mean uses every value's size, so one extreme value drags it. The interquartile range inherits the median's resistance, and the standard deviation inherits the mean's sensitivity — which is why the two pairs go together.
Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.
Formulas, Proofs & Tips
What it means. The mean is the balancing point; the median is the middle value once sorted; the mode is the most frequent value; the range is largest minus smallest.
Example. For : mean , median , mode , range .
Why it works. The mean shares the total equally among the values: if everyone had , the total would still be .
Tip. Sort the list before taking a median. With an even count the median is the average of the two middle values. One extreme outlier drags the mean but barely moves the median.