Two-variable data and linear regression
Goals
- Describe a scatterplot by direction, form, strength and unusual features, in context.
- Interpret the correlation and the coefficient of determination .
- Find the least-squares regression line from data or from summary statistics, and interpret its slope and intercept.
- Compute and interpret residuals, and use a residual plot to judge whether a linear model is appropriate.
- Recognise extrapolation and the difference between association and causation.
Exercises
Exercise 1
A used-car model is , where is the age in years and the price in thousands of dollars. Interpret the slope and the intercept in context.
Exercise 2
Using the same model, a -year-old car sells for thousand dollars. Find and interpret its residual.
Exercise 3
For a data set, , , , and . Find the least-squares regression line.
Exercise 4
For the data in the previous exercise, find and interpret it in general terms.
Exercise 5
A scatterplot of the age of trees, in years, and their trunk diameter, in centimetres, shows points close to an increasing straight line with no unusual points, and . Describe the relationship.
Exercise 6
For a group of adults, height in cm and arm span in cm are related by .
a) Predict the height of a person with arm span cm.
b) That person is actually cm tall. Find the residual.
Exercise 7
A model for the height of children aged to years is , where is age in years and height in cm. Use it to predict the height of a -year-old, and comment.
Exercise 8
Data from many towns show a strong positive correlation between monthly ice cream sales and the number of swimming accidents. Does eating ice cream cause swimming accidents? Explain.
Exercise 9 Challenge
For two variables, r=0.8, s_x=2 and s_y=6. If a value of x is one standard deviation above \bar x, by how much is its predicted y above \bar y?
Mini test
15 minutes, without looking back at the lesson. Part I: circle one letter; Part II: write T or F for each statement; Part III: write the answer in the box.
Part I. Multiple choice
Part II. True or false
| a) The line passes through (\bar x,\bar y). | T / F |
| b) The predicted y when x=3 is 11. | T / F |
| c) r^2=0.81. | T / F |
| d) The relationship must be causal. | T / F |
Part III. Short answer
Score: ........ / 10
Hints (only when stuck)
What you need: the slope is the change in predicted y per unit of x; the intercept is the predicted y at x=0.
What you need: residual =y-\hat y.
What you need: b=r\,\dfrac{s_y}{s_x} and a=\bar y-b\bar x.
What you need: square r.
What you need: direction, form, strength, unusual features, in context.
What you need: substitute x=170, then compute actual minus predicted.
What you need: compare x=40 with the range of the data.
What you need: look for a lurking variable.
What you need: b=r\,\dfrac{s_y}{s_x} and the line passes through (\bar x,\bar y).
Self-check
| # | Did it alone | Needed a hint | Not yet |
|---|---|---|---|
| 1 | ☐ | ☐ | ☐ |
| 2 | ☐ | ☐ | ☐ |
| 3 | ☐ | ☐ | ☐ |
| 4 | ☐ | ☐ | ☐ |
| 5 | ☐ | ☐ | ☐ |
| 6 | ☐ | ☐ | ☐ |
| 7 | ☐ | ☐ | ☐ |
| 8 | ☐ | ☐ | ☐ |
| 9 | ☐ | ☐ | ☐ |
Redo the ones you missed after: ☐ 1 day ☐ 3 days ☐ 7 days
Scan for step-by-step solutions