Measures of Center
A measure of center is a single number that describes the “middle” of a data set.
- [leftmargin=1.4em,itemsep=2pt]
- 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.
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 .
- [leftmargin=1.4em,itemsep=2pt]
- 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 .
Measures of Spread
A measure of spread tells how spread out the data is.
- [leftmargin=1.4em,itemsep=2pt]
- 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.
One outlier drags the mean but not the median.
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 .
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.
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.
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 .
Outlier rule (advanced): A value is usually called an outlier if it is more than below or above .
Displaying Data & Describing Shape
- [leftmargin=1.4em,itemsep=2pt]
- 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.
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 ).
- [leftmargin=1.4em,itemsep=2pt]
- 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.
Scatter Plots & Correlation
A scatter plot graphs pairs of data as points. It shows whether two quantities are related. The correlation describes the pattern:
- [leftmargin=1.4em,itemsep=2pt]
- 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 study records hours of sleep and a reaction-time score for several students. As sleep increases, the reaction-time score steadily rises, and the points cluster closely along a rising line. This is a strong positive correlation: more sleep is associated with better scores.
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.
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 :
- [leftmargin=1.4em,itemsep=2pt]
- 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.
A trend line for a plant's height (cm) after weeks is
Predict the height at week : cm.
Slope : the plant grows about cm each week.
Intercept : the plant was about cm tall at week (when it was planted).
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!
Two-Way Frequency Tables
A two-way frequency table sorts data by two categories at once (rows and columns).
- [leftmargin=1.4em,itemsep=2pt]
- 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.
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.
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!
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.
One outlier drags the mean but not the median.
The range and IQR describe spread using just a few values. Standard deviation uses every value, measuring the typical distance from the mean.
- [leftmargin=1.4em,itemsep=2pt]
- 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.
- [leftmargin=1.4em,itemsep=2pt]
- 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:
- [leftmargin=1.4em,itemsep=2pt]
- 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.
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.