Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.
Every lesson of the chapter, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.
To save a PDF, choose “Save as PDF” in the print dialog.
Statistics (AP-aligned)
Exploring one-variable data
NicknameDate
Scan to open onlineenglish.sedifier.com/en-us/us-ma-2017/statistics/us.stats.one-variable/
1. Cases and variables: categorical and quantitative
Discover
A spreadsheet has one row per student and columns for age, favorite color and number of pets. Which column holds categorical data?
Favorite color
Number of pets
Key idea
Data are values of variables recorded on cases.
Cases (individuals) are what the data describe; variables are what is recorded. A categorical variable places cases in groups; a quantitative variable takes numerical values for which arithmetic makes sense (discrete counts or continuous measurements).
Worked example
A café records each order: drink size (S, M, L), price in dollars, and table number.
Cases: the orders
Each row is an order.
Price: quantitative
Price: averaging makes sense.
Size and table number: categorical
Table numbers are labels; size is a category.
Your turn, guided
Your turn: how many quantitative variables among height, jersey number, goals scored?
2
Height and goals; jersey numbers are labels.
Practice ★
A survey of 23 students records the following. Tick all the categorical variables.
Eye color
ZIP code
Takes the bus to school (yes/no)
Height in cm
Number of siblings
A survey of 80 students records the following. Tick all the categorical variables.
Eye color
ZIP code
Takes the bus to school (yes/no)
Height in cm
Number of siblings
Watch out!
Practice ★★
Area codes such as 770 are numbers. Is the area code of a phone number a quantitative variable?
No: it is categorical, a label that only looks like a number
Yes: its values are numbers
Yes, a discrete quantitative variable
A study measures the resting heart rate of 29 runners. What are the cases (observational units)?
The 29 runners
The heart rates
The number 29
Exit ticket
Three questions to check you have got it.
A survey of 23 students records the following. Tick all the categorical variables.
Eye color
ZIP code
Takes the bus to school (yes/no)
Height in cm
Number of siblings
A survey of 80 students records the following. Tick all the categorical variables.
Eye color
ZIP code
Takes the bus to school (yes/no)
Height in cm
Number of siblings
A survey of 54 students records the following. Tick all the categorical variables.
Watch out: numeric codes (ZIP, ID) are categorical.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
A data table has one row for each of 27 students (the cases) and one column for each of 3 variables. How many data values does it hold?
2. Displaying and describing distributions
Warm-up
Three quick questions from earlier lessons.
A survey of 23 students records the following. Tick all the categorical variables.
Eye color
ZIP code
Takes the bus to school (yes/no)
Height in cm
Number of siblings
Area codes such as 770 are numbers. Is the area code of a phone number a quantitative variable?
No: it is categorical, a label that only looks like a number
Yes: its values are numbers
Yes, a discrete quantitative variable
A study measures the resting heart rate of 29 runners. What are the cases (observational units)?
The 29 runners
The heart rates
The number 29
Discover
House prices in a town: most around 300 thousand dollars, a few mansions above 2 million dollars. Which is pulled up by the mansions?
The mean
The median
Key idea
Describe a distribution by its shape, center, spread and unusual values.
Shape: symmetric, skewed right (long tail of high values) or skewed left; number of peaks. Center: mean or median. Spread: SD, IQR or range. Outliers: values far from the rest. In a right-skewed distribution the mean is usually above the median.
Worked example
Commute times: median 22 min, mean 29 min, a few 90-min commutes.
Mean > median
The mean is pulled towards the long tail.
Skewed right
The tail is on the high side.
The median describes a typical commute better
Resistant to the tail.
Your turn, guided
Your turn: test scores have mean 61 and median 70. How far below the median is the mean?
9 points: skewed left
70 − 61: the mean is pulled down by a tail of low scores, so the distribution is skewed left.
Practice ★
A distribution of incomes has mean 54 thousand dollars and median 43 thousand dollars. What is its most likely shape?
Skewed right: a long tail of high values pulls the mean up
Skewed left
Symmetric
A distribution of incomes has mean 59 thousand dollars and median 54 thousand dollars. What is its most likely shape?
Skewed right: a long tail of high values pulls the mean up
Skewed left
Symmetric
43 students name their favorite sport. Which display suits these data?
A bar chart
A histogram
A boxplot
Watch out!
Practice ★★
Which four features should you describe for the distribution of a quantitative variable (here, 42 test scores)?
Shape, center, spread and unusual values (outliers)
The mean, the median, the mode and the sample size
The type of graph, the title, the axes and the colors
Exit ticket
Three questions to check you have got it.
A distribution of incomes has mean 54 thousand dollars and median 43 thousand dollars. What is its most likely shape?
Skewed right: a long tail of high values pulls the mean up
Skewed left
Symmetric
A distribution of incomes has mean 59 thousand dollars and median 54 thousand dollars. What is its most likely shape?
Skewed right: a long tail of high values pulls the mean up
Skewed left
Symmetric
A distribution of incomes has mean 58 thousand dollars and median 46 thousand dollars. What is its most likely shape?
Skewed right: a long tail of high values pulls the mean up
Skewed left
Symmetric
Summary card
Describing a distribution
Shape, center, spread, outliers, in context.
Watch out: skewed right means mean > median (usually).
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
Find the mode of the data 2, 2, 3, 9, 9, 9, 10.
3. Measures of center: mean and median
Warm-up
Three quick questions from earlier lessons.
A distribution of incomes has mean 54 thousand dollars and median 43 thousand dollars. What is its most likely shape?
Skewed right: a long tail of high values pulls the mean up
Skewed left
Symmetric
43 students name their favorite sport. Which display suits these data?
A bar chart
A histogram
A boxplot
Which four features should you describe for the distribution of a quantitative variable (here, 42 test scores)?
Shape, center, spread and unusual values (outliers)
The mean, the median, the mode and the sample size
The type of graph, the title, the axes and the colors
Discover
Five friends earn 10, 12, 13, 15 and 150 dollars an hour. Which number describes a typical friend better?
The median, 13 dollars
The mean, 40 dollars
Key idea
Two ways to measure the center.
Meanxˉ=n∑xi: the balance point; sensitive to extremes. Median: the middle value of the ordered data (with an even count, the average of the two middle values); resistant to extremes.
Worked example
Data: 4, 7, 7, 9, 13, 20.
Mean =10
Sum 60, six values.
Median =8
Middle values 7 and 9.
Mean > median: slight right skew
The 20 pulls the mean up.
Your turn, guided
Your turn: the median of 3, 8, 10, 15.
9
(8 + 10)/2.
Practice ★
Find the mean of the data 5, 11, 24, 33, 41.
Find the mean of the data 3, 11, 20, 38, 65.
Find the mean of the data 9, 19, 24, 39, 68.
Watch out!
Practice ★★
Find the median of the data 9, 14, 24, 37, 44, 79.
Find the median of the data 2, 10, 28, 36, 43, 64.
One value in a data set is changed from 20 to 712. What happens to the mean and the median?
The mean increases; the median stays about the same
Both increase by the same amount
The median increases; the mean stays the same
Exit ticket
Three questions to check you have got it.
Find the median of the data 9, 14, 24, 37, 44, 79.
Find the median of the data 2, 10, 28, 36, 43, 64.
Find the median of the data 8, 18, 26, 32, 43, 97.
Summary card
Center
Mean: sum ÷ n; pulled by extremes.
Median: middle value; resistant.
Watch out: even count: average the two middle values.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
The mean of 4 numbers is 12. When a fifth number is added, the mean becomes 13. What is the fifth number?
4. Measures of spread: range, IQR, standard deviation
Warm-up
Three quick questions from earlier lessons.
Find the mean of the data 5, 11, 24, 33, 41.
Find the median of the data 9, 14, 24, 37, 44, 79.
One value in a data set is changed from 20 to 712. What happens to the mean and the median?
The mean increases; the median stays about the same
Both increase by the same amount
The median increases; the mean stays the same
Discover
Data A: 48, 50, 52. Data B: 20, 50, 80. Same mean, 50. Which is more spread out?
B
Neither: the means are equal
Key idea
Spread measures how far values lie from each other or from the center.
Range = max − min. IQR = Q3−Q1 (spread of the middle half; resistant). Sample standard deviations=n−1∑(xi−xˉ)2 (typical distance from the mean; s2 is the variance).
Worked example
s for 2, 4, 6.
Squares: 4, 0, 4, sum 8
Mean 4; deviations −2, 0, 2.
s2=4
Divide by n − 1 = 2.
s=2
Square root.
Your turn, guided
Your turn: the IQR when Q1=12 and Q3=30.
IQR =18
30 − 12.
Practice ★
Find the (sample) standard deviation of 29, 31, 33.
Find the (sample) standard deviation of 573, 587, 601.
Find the interquartile range (IQR) of the 8 values 3, 9, 14, 17, 24, 27, 33, 46.
Find the interquartile range (IQR) of the 8 values 4, 9, 13, 19, 24, 29, 32, 45.
Watch out!
Practice ★★
Two classes both have mean score 78. In class A the scores range from 76 to 80; in class B from 63 to 93. Which has the larger standard deviation?
Class B: its scores are more spread out
Class A
The same, because the means are equal
Exit ticket
Three questions to check you have got it.
Find the (sample) standard deviation of 29, 31, 33.
Find the (sample) standard deviation of 573, 587, 601.
Find the (sample) standard deviation of 51, 54, 57.
Summary card
Spread
Range, IQR (resistant), standard deviation.
s divides by n−1; s2 is the variance.
Watch out: the SD is the square root of the variance.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
Find the population standard deviation (divide by n) of 74, 82, 90. Give an exact value.
5. Outliers and boxplots
Warm-up
Three quick questions from earlier lessons.
Find the interquartile range (IQR) of the 8 values 3, 9, 14, 17, 24, 27, 33, 46.
Find the (sample) standard deviation of 29, 31, 33.
Two classes both have mean score 78. In class A the scores range from 76 to 80; in class B from 63 to 93. Which has the larger standard deviation?
Class B: its scores are more spread out
Class A
The same, because the means are equal
Discover
Q1=20, Q3=30, so IQR =10. Is a value of 48 unusually large?
Yes, it is above 30+1.5×10=45
No: only values above twice Q3, 60, are outliers
Key idea
A rule of thumb for outliers, and a picture of the five-number summary.
1.5 × IQR rule: a value is an outlier if it is below Q1−1.5IQR or above Q3+1.5IQR. A boxplot draws the box from Q1 to Q3, a line at the median, whiskers to the most extreme non-outliers, and outliers as separate points.
Worked example
Q1=14, Q3=26. The fences.
IQR =12
26 − 14.
Fences 14−18=−4 and 26+18=44
1.5 × 12 = 18.
Outliers: below −4 or above 44
Any value beyond them.
Your turn, guided
Your turn: Q1=40, Q3=50. The lower fence.
25
40 − 15.
Practice ★
A data set has Q1=22 and Q3=28. Above which value is a data point an outlier by the 1.5×IQR rule?
A data set has Q1=315 and Q3=513. Above which value is a data point an outlier by the 1.5×IQR rule?
A data set has Q1=36 and Q3=40. Above which value is a data point an outlier by the 1.5×IQR rule?
Watch out!
Practice ★★
Q1=58 and Q3=62. Below which value is a data point an outlier?
Q1=194 and Q3=228. Below which value is a data point an outlier?
A boxplot of 81 values shows which summary?
The five-number summary (min, Q1, median, Q3, max), with outliers plotted separately
The mean and the standard deviation
How many values fall in each interval
Exit ticket
Three questions to check you have got it.
A data set has Q1=22 and Q3=28. Above which value is a data point an outlier by the 1.5×IQR rule?
A data set has Q1=315 and Q3=513. Above which value is a data point an outlier by the 1.5×IQR rule?
A data set has Q1=36 and Q3=40. Above which value is a data point an outlier by the 1.5×IQR rule?
Summary card
Outliers and boxplots
Fences: Q1−1.5IQR and Q3+1.5IQR.
Boxplot: five-number summary plus outliers.
Watch out: 1.5 × IQR, not 1 × IQR.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
A data set has Q1=17, Q3=33 and maximum 65. By how much does the maximum exceed the upper outlier fence?
6. Transforming data: effect on center and spread
Warm-up
Three quick questions from earlier lessons.
Find the interquartile range (IQR) of the 8 values 3, 9, 14, 17, 24, 27, 33, 46.
Find the (sample) standard deviation of 29, 31, 33.
Two classes both have mean score 78. In class A the scores range from 76 to 80; in class B from 63 to 93. Which has the larger standard deviation?
Class B: its scores are more spread out
Class A
The same, because the means are equal
Discover
Everyone in a class grows 2 cm over the summer. What happens to the standard deviation of their heights?
It stays the same
It goes up by 2 cm
Key idea
Shifts move the center; scalings stretch center and spread.
For new values a+bx: center (mean, median) becomes a+b× center; spread (SD, IQR, range) becomes ∣b∣× spread. Adding a does not change the spread.
Worked example
Scores: mean 60, SD 8. New score =1.5× old +10.
New mean =1.5×60+10=100
Apply to the center.
New SD =1.5×8=12
Only the factor affects spread.
Your turn, guided
Your turn: mean 20, SD 4, new =3x−5. The new SD.
12
|3| × 4.
Practice ★
A set of test scores has standard deviation 4. The teacher adds 10 points to every score. What is the new standard deviation?
A set of test scores has standard deviation 28. The teacher adds 52 points to every score. What is the new standard deviation?
Lengths have standard deviation 11 cm. Each length is multiplied by 3. What is the new standard deviation, in the new units?
Lengths have standard deviation 16 cm. Each length is multiplied by 27. What is the new standard deviation, in the new units?
Watch out!
Practice ★★
Daily temperatures have mean 11 °C. With F=59C+32, what is the mean in °F?
Daily temperatures have mean 29 °C. With F=59C+32, what is the mean in °F?
Exit ticket
Three questions to check you have got it.
Lengths have standard deviation 11 cm. Each length is multiplied by 3. What is the new standard deviation, in the new units?
Lengths have standard deviation 16 cm. Each length is multiplied by 27. What is the new standard deviation, in the new units?
Lengths have standard deviation 7 cm. Each length is multiplied by 3. What is the new standard deviation, in the new units?
Summary card
Transforming data
a+bx: center → a+b⋅center; spread → ∣b∣⋅spread.
Watch out: adding a constant never changes the spread.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
Data have standard deviation 10. Every value x is replaced by 2x+8. What is the new variance?
7. z-scores and the normal model
Warm-up
Three quick questions from earlier lessons.
A set of test scores has standard deviation 4. The teacher adds 10 points to every score. What is the new standard deviation?
Lengths have standard deviation 11 cm. Each length is multiplied by 3. What is the new standard deviation, in the new units?
Daily temperatures have mean 11 °C. With F=59C+32, what is the mean in °F?
Discover
The blue curve is a normal distribution with mean m and standard deviation s. Move them.
A normal curve with mean m and standard deviation s: symmetric and bell-shaped, centered at m, wider and lower as s grows.
What happens to the curve when s increases?
It gets wider and lower
It moves to the right
Key idea
Standardize to compare, and use the 68–95–99.7 rule.
z-score:z=σx−μ, the number of SDs above the mean. For a normal distribution, about 68% of values lie within 1 SD of the mean, 95% within 2, 99.7% within 3.
Worked example
SAT maths: mean 520, SD 110. A score of 685.
z=1.5
(685 − 520)/110.
Between 300 and 740: about 95% of scores
Within 2 SDs: about 95%.
Above 740: about 2.5%
Half of the remaining 5%.
Your turn, guided
Your turn: mean 70, SD 5. The z-score of 62.
z=−1.6
(62 − 70)/5.
Practice ★
Test scores have mean 61 and standard deviation 10. Find the z-score of a score of 48.
Test scores have mean 309 and standard deviation 34. Find the z-score of a score of 437.
Test scores have mean 58 and standard deviation 2. Find the z-score of a score of 62.
Watch out!
Practice ★★
Heights are approximately normal with mean 76 and standard deviation 4. By the 68–95–99.7 rule, what percent are between 72 and 84?
Heights are approximately normal with mean 69 and standard deviation 6. By the 68–95–99.7 rule, what percent are between 63 and 81?
Mean 72, standard deviation 2. Which value has z-score −3?
Mean 295, standard deviation 16. Which value has z-score 1?
Exit ticket
Three questions to check you have got it.
Test scores have mean 61 and standard deviation 10. Find the z-score of a score of 48.
Test scores have mean 309 and standard deviation 34. Find the z-score of a score of 437.
Test scores have mean 58 and standard deviation 2. Find the z-score of a score of 62.
Summary card
z-scores and the normal model
z=(x−μ)/σ; x=μ+zσ.
68–95–99.7 within 1, 2, 3 SDs.
Watch out: the percentages are for both sides together.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
Test scores have mean 68. A score of 74 has a z-score of 2. What is the standard deviation?
8. The weighted mean
Discover
Class A (20 students) has a mean of 12 on a test, class B (10 students) a mean of 18. Is the mean of all 30 students 15?
No: class A counts twice as much
Yes: (12+18)÷2=15
Key idea
The weighted mean.
With values x1,x2,… and weights (counts) w1,w2,…:
xˉ=w1+w2+…w1x1+w2x2+….
Worked example
The two classes together:
20×12+10×18=420
Total of all scores.
xˉ=420÷30=14
Divide by all 30 students.
Your turn, guided
Your turn: a test counts 3 times, homework once. Test 10, homework 18. Weighted mean?
12
(3×10+1×18)÷4.
Practice ★
Group 1 has 23 people with mean 9; group 2 has 10 people with mean 11. Find the mean of all 33 people.
Group 1 has 10 people with mean 8; group 2 has 15 people with mean 14. Find the mean of all 25 people.
Group 1 has 22 people with mean 9; group 2 has 17 people with mean 11. Find the mean of all 39 people.
Practice ★★
A test counts 2 times and homework counts once. The test score is 14 and the homework score is 16. Find the weighted mean.
A test counts 4 times and homework counts once. The test score is 13 and the homework score is 14. Find the weighted mean.
Exit ticket
Two questions to check.
Group 1 has 23 people with mean 9; group 2 has 10 people with mean 11. Find the mean of all 33 people.
Group 1 has 10 people with mean 8; group 2 has 15 people with mean 14. Find the mean of all 25 people.
Summary card
Weighted mean
Multiply each value by its weight, add, divide by the total weight.
Combining groups: weight each mean by the group size.
Grade averages, price indexes and GPS position fixes all use weighted means.
9. History of statistics: Quetelet and Nightingale
Discover
In January 1855, in the British army's field hospitals of the Crimean War, 2,761 soldiers died of contagious diseases, 83 of wounds and 324 of other causes. Florence Nightingale turned such numbers into pictures. What did they show?
Most soldiers died of diseases that could be prevented
Most soldiers died of their wounds
Key idea
Statistics to understand people.
Step 1Adolphe Quetelet1796–1874Joseph-Arnold Demannez. Public domain1835: Quetelet's book describes the 'average man': a new era in statistics begins.
Step 2Florence Nightingale1820–1910Henry Hering (1814-1893), about 1860. Public domainCrimean War, 1854–56: Nightingale's diagrams show that disease, not wounds, kills most soldiers.
Step 3Florence Nightingale1820–1910Henry Hering (1814-1893), about 1860. Public domain1858: Nightingale becomes the first woman elected a Fellow of the Royal Statistical Society.
In 1835 Adolphe Quetelet described the average man, the central value around which measurements of people are spread. Florence Nightingale drew her polar area diagrams (1854–56). In 1858 she became the first woman elected a Fellow of the Royal Statistical Society.
Worked example
What share of the deaths in January 1855 came from contagious diseases?
2761+83+324=3168
Total deaths.
31682761≈87%
Share from disease.
Practice ★
What did Florence Nightingale become in 1858, for her work on army and hospital statistics?
The first woman elected a Fellow of the Royal Statistical Society
The inventor of the bar chart
A professor of mathematics
January 1855: 2,761 deaths from contagious diseases, 83 from wounds and 324 from other causes. How many deaths were there in all?
Thanks to clean water and better care, the death rate in the hospital fell from 60 % to 2.2 % by the spring of 1855. By how many percentage points did it fall?
Summary card
Statistics today
Hospitals track infection rates to keep patients safe, as Nightingale did.
Governments plan schools and transport from census data.
Sports teams and apps summarise data with means, medians and charts.
Sources: MacTutor biographies of Adolphe Quetelet and Florence Nightingale (see "Sources and credits").
Answers: Exploring one-variable data
1. Cases and variables: categorical and quantitative
A
Eye color · ZIP code · Takes the bus to school (yes/no)
Eye color · ZIP code · Takes the bus to school (yes/no)
B
No: it is categorical, a label that only looks like a number
C
The 29 runners
D
Eye color · ZIP code · Takes the bus to school (yes/no)
Eye color · ZIP code · Takes the bus to school (yes/no)
Eye color · ZIP code · Takes the bus to school (yes/no)
E
81
2. Displaying and describing distributions
A
Eye color · ZIP code · Takes the bus to school (yes/no)
No: it is categorical, a label that only looks like a number
The 29 runners
B
Skewed right: a long tail of high values pulls the mean up
Skewed right: a long tail of high values pulls the mean up
C
A bar chart
D
Shape, center, spread and unusual values (outliers)
E
Skewed right: a long tail of high values pulls the mean up
Skewed right: a long tail of high values pulls the mean up
Skewed right: a long tail of high values pulls the mean up
F
9
3. Measures of center: mean and median
A
Skewed right: a long tail of high values pulls the mean up
A bar chart
Shape, center, spread and unusual values (outliers)
B
22.8
27.4
31.8
C
30.5
32
D
The mean increases; the median stays about the same
E
30.5
32
29
F
17
4. Measures of spread: range, IQR, standard deviation
A
22.8
30.5
The mean increases; the median stays about the same
B
2
14
C
18.5
19.5
D
Class B: its scores are more spread out
E
2
14
3
F
386
5. Outliers and boxplots
A
18.5
2
Class B: its scores are more spread out
B
37
810
46
C
52
143
D
The five-number summary (min, Q1, median, Q3, max), with outliers plotted separately
E
37
810
46
F
8
6. Transforming data: effect on center and spread
A
18.5
2
Class B: its scores are more spread out
B
4
28
C
33
432
D
51.8
84.2
E
33
432
21
F
400
7. z-scores and the normal model
A
4
33
51.8
B
−1.3
1764
2
C
81.5
81.5
D
66
311
E
−1.3
1764
2
F
3
8. The weighted mean
A
33317
11.6
39385
B
344
13.2
C
33317
11.6
9. History of statistics: Quetelet and Nightingale
A
The first woman elected a Fellow of the Royal Statistical Society