- Home
- English lessons
- Precalculus
- Statistics
// Chapter 27.15 · Precalculus · Statistics
Statistics: Measures of Center and Spread, Quartiles, Box Plots, z-Scores, the Normal Distribution, Correlation and Linear Regression
Descriptive statistics answers three questions about a data set: where most of the values lie (center), how widely they are spread (spread), and what shape they have (histogram, box plot). After that, the normal distribution tells you how unusual a value is, and linear regression lets you predict one variable from another. This page explains what each measure measures, how to compute it for raw and grouped data, and when to choose which. The statistics calculator below accepts data pasted straight from a spreadsheet.
- · median at position · mode is the most frequent value
- ·
- at position · outliers lie outside to
- · normal: 68% within ±1σ, 95% within ±2σ, 99.7% within ±3σ
- , ,
Measures of center
The mean uses every value, so it is sensitive to extremes: if one of ten employees is an executive with an unusually large salary, the mean salary overstates what a typical employee earns, and the median, the middle value, gives a truer picture. The mode suits qualitative data, such as the best-selling shirt size. For data grouped into class intervals, the class midpoint stands in for every value in the class.
D1 Mean
D2 Median
L lower boundary of the median class · F cumulative frequency before it · f its frequency · I class width
For the data 12, 15, 11, 18, 15, 20, 14, find the mean, median, mode and standard deviation
Sorted: 11, 12, 14, 15, 15, 18, 20 · · median at position 4 = 15 · mode 15
·
15, 15, 15 · σ ≈ 2.928 · s ≈ 3.162
Scores of 40 students: 40–49 (3), 50–59 (7), 60–69 (12), 70–79 (10), 80–89 (6), 90–99 (2). Find the mean and the median
Midpoints 44.5, 54.5, …, 94.5 · ·
; cumulative frequencies 3, 10, 22 ⇒ median class 60–69 ·
Median
· median ≈ 67.83
Spread, quartiles and box plots
Two data sets with the same mean can be very different. Two machines may both make parts 50 mm long on average, but one is accurate to ±0.1 mm and the other only to ±2 mm. The standard deviation measures the typical distance from the center in the same units as the data. Quartiles split the sorted data into four equal parts, and a box plot shows five numbers (minimum, Q₁, median, Q₃, maximum) in one picture, so skewness and outliers are visible at a glance.
D3 Variance & SD
D4 Quartiles
D5 Outliers & box plot
D6 CV & transforms
Using the data of Example D-1, find Q₁, Q₃ and the IQR, and check for outliers
n = 7: Q₁ at position 8/4 = 2 → 12 · Q₃ at position 24/4 = 6 → 18
IQR = 6 · fences and
Q₁ = 12, Q₃ = 18, IQR = 6 · no outliers
Temperatures have mean 30 °C and standard deviation 2 °C. What are they in Fahrenheit, ?
The mean follows the whole formula:
The SD is only multiplied, because adding 32 does not change the spread:
Mean 86 °F · SD 3.6 °F
Statistics calculator: histogram, box plot and frequency table
Paste data separated by spaces, commas or new lines (a whole column copied from Excel or Google Sheets works). The calculator computes center, spread, quartiles by the r(n+1)/4 positions, outliers, and both σ and s, draws a histogram and a box plot on the same axis, and builds a frequency table. The green dot in the box is the mean; when it sits far from the median line, the data are skewed.
z-scores and the normal distribution
Many natural measurements, such as heights, measurement errors or the test scores of a large group, follow a symmetric bell shape around the mean, called the normal distribution. Every normal distribution can be converted to the standard normal (mean 0, standard deviation 1) with a z-score, so a single z table answers every normal-probability question. The area under the curve between two values is the proportion of data in that interval.
D7 z-score
D8 Normal distribution
A student scores 72 in math (mean 60, SD 8) and 80 in physics (mean 70, SD 10). In which subject did the student do better relative to the class?
·
Math is better relative to the group, even though the raw score is lower
Adult heights are normal with μ = 165 cm, σ = 6 cm. (a) What proportion are taller than 177 cm? (b) Between 159 and 171 cm? (c) Test scores have μ = 70, σ = 8. What score puts you in the top 10%?
(a) ·
(b) ·
(c) ·
(a) ≈ 0.0228 · (b) ≈ 0.6827 · (c) ≈ 80.25
To look values up yourself, see the z tables, both Φ(z) and the area from 0 to z.
Correlation and linear regression
With paired data, such as hours of study and test scores, a scatter plot shows whether the two variables have a linear relationship. The correlation coefficient r lies between −1 and 1 and gives both the direction and the strength. The least-squares regression line is the line that makes the sum of the squared vertical distances from the points to the line as small as possible, and it is used to predict y from x within the range of the data.
D9 Regression & correlation
Review hours x = 1, 2, …, 8 give scores y = 52, 55, 61, 64, 70, 71, 78, 80. Find the regression line and r, and predict the score for 10 hours
· ·
·
·
· · prediction ≈ 89.1 (outside the data range, so treat with care)
Practice (with answers)
1Median of 8, 3, 5, 12, 7, 10
Sorted 3, 5, 7, 8, 10, 12, position 3.5
7.5
2The mean of 30 students is 64. A new student scores 95. What is the new mean?
65
3Find σ for 2, 4, 4, 4, 5, 5, 7, 9
· ·
σ = 2
4If z = −1.5 with μ = 50 and σ = 4, what is the value?
44
5Normal with μ = 100, σ = 15: what proportion is below 70?
·
≈ 0.0228
Read next
- 27.16 Statistical tables: z, t, χ² and F — full tables with a p-value calculator
- The binomial distribution — the basis of the normal approximation
Frequently asked questions
What is the difference between population and sample standard deviation?
The population SD (σ) divides by N, the total number of values. The sample SD (s) divides by n − 1, because using the sample mean in place of the true mean makes the sum of squares slightly too small, and dividing by n − 1 corrects for that. Use σ when the data are everything you care about, and s when they are a sample used to estimate a larger group.
How do I find quartiles of raw data?
Sort the data in increasing order. The position of Q_r is r(n + 1)/4. If it is a whole number, read the value at that position; if not, interpolate between the two neighbouring positions. That is the method used in many textbooks and in the calculator on this page; some software uses other definitions and may give slightly different values.
What is a z-score used for?
A z-score tells you how many standard deviations a value lies from the mean. It lets you compare values from different data sets with different units or spreads, such as a math score and a physics score, and it is what you look up in a z table to find areas under the normal curve.
If r is close to 1, does x cause y?
No. Correlation only measures a linear relationship; it says nothing about cause and effect. Two variables may move together because a third variable drives both, or by chance. Also, r close to 0 does not mean there is no relationship: the relationship may simply not be linear.