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 two-variable data
NameDate
Scan to open online
1. Two-way tables: joint, marginal and conditional proportions
Warm-up
Three quick questions from earlier lessons.
Discover
In a class, 12 of 20 girls and 9 of 15 boys play a sport. Who is more likely to play, a girl or a boy?
Equally likely: 60% each
A girl: 12 is more than 9
Key idea
A two-way table counts cases by two categorical variables.
Joint proportion: a cell ÷ grand total. Marginal proportion: a row or column total ÷ grand total. Conditional proportion: a cell ÷ its row (or column) total: the proportion within one group.
A survey asked 145 people whether they exercise weekly. Under 30: 22 yes, 43 no. Age 30 or over: 27 yes, 53 no. What proportion of the under-30s exercise weekly?
A survey asked 121 people whether they exercise weekly. Under 30: 59 yes, 12 no. Age 30 or over: 23 yes, 27 no. What proportion of the under-30s exercise weekly?
A survey asked 150 people whether they exercise weekly. Under 30: 41 yes, 40 no. Age 30 or over: 19 yes, 50 no. What proportion of the under-30s exercise weekly?
Watch out!
Practice ★★
A survey asked 124 people whether they exercise weekly. Under 30: 21 yes, 50 no. Age 30 or over: 31 yes, 22 no. What proportion of all the people exercise weekly?
A survey asked 140 people whether they exercise weekly. Under 30: 47 yes, 17 no. Age 30 or over: 37 yes, 39 no. What proportion of all the people are under 30 and exercise weekly?
A survey asked 135 people whether they exercise weekly. Under 30: 44 yes, 25 no. Age 30 or over: 10 yes, 56 no. What proportion of all the people are under 30 and exercise weekly?
Exit ticket
Three questions to check you have got it.
A survey asked 145 people whether they exercise weekly. Under 30: 22 yes, 43 no. Age 30 or over: 27 yes, 53 no. What proportion of the under-30s exercise weekly?
A survey asked 121 people whether they exercise weekly. Under 30: 59 yes, 12 no. Age 30 or over: 23 yes, 27 no. What proportion of the under-30s exercise weekly?
A survey asked 150 people whether they exercise weekly. Under 30: 41 yes, 40 no. Age 30 or over: 19 yes, 50 no. What proportion of the under-30s exercise weekly?
Summary card
Two-way tables
Joint: cell / total. Marginal: margin / total.
Conditional: cell / its group total.
Watch out: name the group you condition on.
2. Association between categorical variables
Warm-up
Three quick questions from earlier lessons.
Discover
70% of students who sleep 8+ hours passed a test, and 40% of those who sleep less passed. Is there an association between sleep and passing?
Yes, the pass rates differ
We cannot tell without an experiment
Key idea
Compare conditional distributions.
Two categorical variables are associated if the conditional distribution of one differs across the groups of the other. If the conditional proportions are all equal, there is no association. Association in observational data does not show causation.
Worked example
Of 50 phone users, 30 sleep badly; of 50 non-users, 10 sleep badly.
60% vs 20% sleep badly
Within each group.
Association between phone use and sleep
A big difference.
It does not prove phones cause bad sleep
Observational data.
Your turn, guided
Your turn: the difference in proportions (users − non-users).
0.4
0.6 − 0.2.
Practice ★
Of 40 drivers who texted, 30 had a near-miss; of 40 who did not text, 10 had one. Is there an association between texting and near-misses in these data?
Yes: 75% of texters vs 25% of non-texters had a near-miss
No: both groups have 40 drivers
Yes, and it proves texting causes near-misses
In a school, 50 of 125 girls and 100 of 250 boys walk to school. What does this suggest?
No association: 40% of each group walks
Boys are more likely to walk: 100 > 50
Girls are more likely to walk
Watch out!
Practice ★★
A survey asked 135 people whether they exercise weekly. Under 30: 44 yes, 40 no. Age 30 or over: 18 yes, 33 no. Find the proportion of under-30s who exercise minus the proportion of those 30 or over who exercise.
A survey asked 163 people whether they exercise weekly. Under 30: 45 yes, 37 no. Age 30 or over: 48 yes, 33 no. Find the proportion of under-30s who exercise minus the proportion of those 30 or over who exercise.
Exit ticket
Three questions to check you have got it.
A survey asked 135 people whether they exercise weekly. Under 30: 44 yes, 40 no. Age 30 or over: 18 yes, 33 no. Find the proportion of under-30s who exercise minus the proportion of those 30 or over who exercise.
A survey asked 163 people whether they exercise weekly. Under 30: 45 yes, 37 no. Age 30 or over: 48 yes, 33 no. Find the proportion of under-30s who exercise minus the proportion of those 30 or over who exercise.
A survey asked 112 people whether they exercise weekly. Under 30: 28 yes, 48 no. Age 30 or over: 13 yes, 23 no. Find the proportion of under-30s who exercise minus the proportion of those 30 or over who exercise.
Summary card
Association
Compare conditional proportions across groups.
Different: associated. Equal: not associated.
Watch out: association is not causation; counts are not rates.
3. Scatterplots and correlation
Warm-up
Three quick questions from earlier lessons.
Discover
Points lie close to a line going down from left to right. Which correlation fits?
r=−0.95
r=0.2
Key idea
Describe a scatterplot by direction, form, strength and unusual points. Correlation measures linear strength.
The correlationr is between −1 and 1: its sign gives the direction, ∣r∣ the strength of a linear relationship. It has no units, does not change when units change, and is the same if x and y are swapped. It is sensitive to outliers and misleading for curved patterns.
Worked example
Hours of study vs test score: r=0.78.
Direction: positive (more study, higher scores)
Positive r.
Strength: fairly strong, linear
|r| = 0.78.
Scores out of 50 or 100: same r
Unitless.
Your turn, guided
Your turn: r=0.6 for (x,y). What is r for (y,x)?
0.6
Symmetric in x and y.
Practice ★
A scatterplot of car age against resale value has r=−0.94. How would you describe the relationship?
Strong, negative, linear: older cars tend to be worth less
Weak, because r is negative
Each extra year causes a fixed loss of value
A scatterplot of car age against resale value has r=−0.92. How would you describe the relationship?
Strong, negative, linear: older cars tend to be worth less
Weak, because r is negative
Each extra year causes a fixed loss of value
Heights (cm) and weights (kg) of students have r=0.58. Heights are converted to inches. What is the new correlation?
Still 0.58: changing units does not change r
Smaller, since inches are bigger units
It cannot be known without the data
Watch out!
Practice ★★
Which statements about the correlation r of 50 pairs (x,y) are true? Tick all that are.
−1≤r≤1
r has no units
Swapping x and y does not change r
r measures the strength of any relationship, curved or straight
r=0 means there is no relationship at all
Exit ticket
Three questions to check you have got it.
A scatterplot of car age against resale value has r=−0.94. How would you describe the relationship?
Strong, negative, linear: older cars tend to be worth less
Weak, because r is negative
Each extra year causes a fixed loss of value
A scatterplot of car age against resale value has r=−0.92. How would you describe the relationship?
Strong, negative, linear: older cars tend to be worth less
Weak, because r is negative
Each extra year causes a fixed loss of value
A scatterplot of car age against resale value has r=−0.90. How would you describe the relationship?
Strong, negative, linear: older cars tend to be worth less
Weak, because r is negative
Each extra year causes a fixed loss of value
Summary card
Correlation
−1≤r≤1; sign = direction, size = linear strength.
Unitless; symmetric in x and y.
Watch out: r only sees straight lines.
4. The least-squares regression line
Warm-up
Three quick questions from earlier lessons.
Discover
If r=1, every point is on a line. A student 1 SD above the mean in x is then 1 SD above the mean in y. If r=0.5, how many SDs above the mean in y would you predict?
0.5 SD
1 SD
Key idea
The line that minimizes the sum of squared residuals.
Least-squares regression liney^=a+bx with slope b=rsxsy and intercept a=yˉ−bxˉ; it always passes through (xˉ,yˉ).
Worked example
r=0.6, xˉ=10, sx=2, yˉ=50, sy=8.
Step 1The data.
Step 2The point of means (x̄, ȳ) = (10, 50).
Step 3The line ŷ = 26 + 2.4x passes through it.
Step 4Residuals: no other line makes the sum of their squares smaller.
b=2.4
0.6 × 8/2.
a=26
50 − 2.4 × 10.
y^=26+2.4×12=54.8
At x = 12.
Your turn, guided
Your turn: r=0.5, sx=4, sy=6. The slope.
b=0.75
0.5 × 6/4.
Practice ★
r=0.6, sx=15 and sy=16. Find the slope of the least-squares regression line of y on x.
r=0.5, sx=11 and sy=17. Find the slope of the least-squares regression line of y on x.
The regression line is y^=27+9x. Predict y for x=7.
Watch out!
Practice ★★
The least-squares line has slope 2, and xˉ=37, yˉ=52. Find its intercept.
The least-squares line has slope 5, and xˉ=28, yˉ=53. Find its intercept.
Boss problem. r=0.8, xˉ=15, sx=4, yˉ=42, sy=8.
Exit ticket
Three questions to check you have got it.
r=0.6, sx=15 and sy=16. Find the slope of the least-squares regression line of y on x.
r=0.5, sx=11 and sy=17. Find the slope of the least-squares regression line of y on x.
r=0.9, sx=19 and sy=12. Find the slope of the least-squares regression line of y on x.
Summary card
Least-squares line
b=rsy/sx, a=yˉ−bxˉ, through (xˉ,yˉ).
Watch out: sy on top.
5. Residuals and residual plots
Warm-up
Three quick questions from earlier lessons.
Discover
The model predicts 70 for a student who actually scored 76. Is the student above or below the line, and by how much?
6 above
6 below
Key idea
Residuals show what the line misses.
Residual = observed − predicted =y−y^. Positive: point above the line. A residual plot (residuals against x) should look like random scatter around 0; a curve or a fan shape means a linear model is not appropriate.
Worked example
y^=12+3x; the data point is (5,30).
y^=27
Predicted.
Residual =30−27=3
Observed − predicted.
The point is 3 above the line
Positive.
Your turn, guided
Your turn: same line, point (4,20).
Residual −4
20 − 24.
Practice ★
y^=30+3x. A data point is (7,46). Find its residual.
y^=36+4x. A data point is (3,41). Find its residual.
y^=32+6x. A data point is (7,70). Find its residual.
Watch out!
Practice ★★
The residual plot of a linear model fitted to 56 points shows a clear U-shaped curve. What does that tell you?
A straight line is not a good model: the relationship is curved
The model is good, because residuals are both positive and negative
There is one outlier
A point has residual +8. Where is it relative to the regression line?
8 units above the line: the model underpredicts it
8 units below the line
On the line
Exit ticket
Three questions to check you have got it.
y^=30+3x. A data point is (7,46). Find its residual.
y^=36+4x. A data point is (3,41). Find its residual.
y^=32+6x. A data point is (7,70). Find its residual.
Summary card
Residuals
e=y−y^; positive is above the line.
Residual plot: no pattern means a linear model is appropriate.
Watch out: observed minus predicted, in that order.
6. Interpreting a regression model: slope, r², extrapolation
Warm-up
Three quick questions from earlier lessons.
Discover
price=2+0.5weight for bags of rice (dollars, kg). What does 0.5 mean?
Each extra kg adds 0.5 dollars to the predicted price
Every bag costs exactly 0.5 dollars per kg
Key idea
Interpret in context, and know the limits.
Slope: the predicted change in y for each one-unit increase in x. Intercept: the predicted y when x=0 (meaningful only if x=0 makes sense). r2: the fraction of the variation in y explained by the linear model. Predicting outside the range of the data is extrapolation and is unreliable.
Worked example
r=0.9 for study hours and scores.
r2=0.81
Square r.
81% of the variation in scores is explained by the linear model on hours
Interpretation.
19% is not explained
The rest is other factors and chance.
Your turn, guided
Your turn: r=−0.7. Find r2.
0.49
(−0.7)².
Practice ★
A regression has r=0.2. What fraction of the variation in y is explained by the linear model (r2)?
A regression has r=0.8. What fraction of the variation in y is explained by the linear model (r2)?
For trees, height=3+8age (feet, years). What does 8 mean?
For each extra year of age, the predicted height increases by 8 feet
Every tree grows exactly 8 feet each year
A tree of age 0 is 8 feet tall
Watch out!
Practice ★★
A model for children aged 2 to 6 predicts height from age. Is it reasonable to use it for a 40-year-old?
No: 40 is far outside the ages used to fit the model (extrapolation)
Yes, if r is close to 1
Yes: a line can be extended forever
Exit ticket
Three questions to check you have got it.
A regression has r=0.2. What fraction of the variation in y is explained by the linear model (r2)?
A regression has r=0.8. What fraction of the variation in y is explained by the linear model (r2)?
A regression has r=0.4. What fraction of the variation in y is explained by the linear model (r2)?
Summary card
Interpreting regression
Slope: predicted change per unit of x.
r2: share of variation explained.
No extrapolation.
Watch out: r2, not r, is the explained fraction.
7. Outliers, leverage and influential points
Warm-up
Three quick questions from earlier lessons.
Discover
A scatterplot of 20 points has a line through them. One more point is added far to the right, well below the trend. What happens to the line?
It tilts towards the new point
Nothing: one point cannot change a line fitted to 20
Key idea
Some unusual points matter more than others.
An outlier in regression has a large residual. A high-leverage point has an x-value far from xˉ. An influential point changes the slope (or intercept) a lot when removed; high-leverage points are often influential.
Worked example
Three unusual points.
Outlier in y: lowers r, barely moves the slope
x near x̄, large residual.
High leverage, not influential: it strengthens r
x far away, on the trend.
High leverage and influential: tilts the line
x far away, off the trend.
Your turn, guided
Your turn: removing a point changes the slope from 2.1 to 0.4. By how much did the slope change?
1.7
2.1 − 0.4: influential.
Practice ★
In a scatterplot, the x-values lie between 10 and 51, except one point at x=153. What is that point called?
A high-leverage point: its x is far from the others
A point with a large residual
The median point
Removing one of 52 points changes the regression slope a lot. What is that point?
An influential point
Any outlier: all outliers change the slope a lot
A typical point near the center of the data
Watch out!
Practice ★★
Among 46 points, one has x close to xˉ but a very large residual. Removing it mostly changes what?
The correlation (it rises); the slope barely changes
The slope a lot
Nothing at all
Among 77 points, one has x close to xˉ but a very large residual. Removing it mostly changes what?
The correlation (it rises); the slope barely changes
The slope a lot
Nothing at all
Exit ticket
Three questions to check you have got it.
In a scatterplot, the x-values lie between 10 and 51, except one point at x=153. What is that point called?
A high-leverage point: its x is far from the others
A point with a large residual
The median point
In a scatterplot, the x-values lie between 10 and 36, except one point at x=108. What is that point called?
A high-leverage point: its x is far from the others
A point with a large residual
The median point
In a scatterplot, the x-values lie between 10 and 30, except one point at x=90. What is that point called?
A high-leverage point: its x is far from the others
A point with a large residual
The median point
Summary card
Unusual points
Outlier: large residual. Leverage: extreme x.
Influential: removing it changes the line.
Watch out: leverage, not residual size, drives influence.
Answers: Exploring two-variable data
1. Two-way tables: joint, marginal and conditional proportions
A
6522
7159
8141
B
3113
C
14047
13544
D
6522
7159
8141
2. Association between categorical variables
A
Yes: 75% of texters vs 25% of non-texters had a near-miss
B
No association: 40% of each group walks
C
35761
−221497
D
35761
−221497
6845
3. Scatterplots and correlation
A
Strong, negative, linear: older cars tend to be worth less
Strong, negative, linear: older cars tend to be worth less
B
Still 0.58: changing units does not change r
C
−1≤r≤1 · r has no units · Swapping x and y does not change r
D
Strong, negative, linear: older cars tend to be worth less
Strong, negative, linear: older cars tend to be worth less
Strong, negative, linear: older cars tend to be worth less
4. The least-squares regression line
A
2516
2217
B
90
C
−22
−87
D
3
E
2516
2217
9554
5. Residuals and residual plots
A
−5
−7
−4
B
A straight line is not a good model: the relationship is curved
C
8 units above the line: the model underpredicts it
D
−5
−7
−4
6. Interpreting a regression model: slope, r², extrapolation
A
251
2516
B
For each extra year of age, the predicted height increases by 8 feet
C
No: 40 is far outside the ages used to fit the model (extrapolation)
D
251
2516
254
7. Outliers, leverage and influential points
A
A high-leverage point: its x is far from the others
B
An influential point
C
The correlation (it rises); the slope barely changes
The correlation (it rises); the slope barely changes
D
A high-leverage point: its x is far from the others
A high-leverage point: its x is far from the others
A high-leverage point: its x is far from the others