Practice: Choosing a Regression Form
Question
Classification
Three of these can be fitted by ordinary least squares in one step, because they are linear in their coefficients. Which one cannot?
Direct application
A bacterial count is fitted by least squares on the log scale, giving
Enter the value. It is checked against the answer and the precision this task asks for.
2 hints available, least help first.
Hint 1: Retrieval cue
The fitted equation is on the log scale. Undo the logarithm to return to the scale of the count.
Hint 2: Next step
The per-unit factor is
Error diagnosis
Daily counts of equipment failures are fitted by ordinary least squares against machine age. The fitted line passes sensibly through the data, but a plot of residuals against fitted values shows a widening funnel: residuals near a fitted value of 1 are tiny, and residuals near a fitted value of 15 are large in both directions. What does this indicate, and what follows?
Method selection
A clinic records, for each of 400 patients, the number of appointments missed in a year and the distance they live from the clinic. Most patients miss none or one; a few miss more than ten. Which form should be fitted, and on what grounds?
Interpretation
Eight observations run from
Transfer · Evaluation
During the first three weeks of an outbreak, daily case counts are fitted on the log scale and the growth factor is reported as
Construction · Evaluation · Explanation
A utility records, for each of 900 installed meters over one year, the number of repair callouts and the meter's age in years. Ages run from 0 to 14. Most meters had no callouts; a few had more than eight. A colleague has fitted
Write an assessment. Address all of the following.
- The response. Say what kind of quantity the callout count is and which forms its nature rules out, naming the specific assumption each violated form makes.
- The fitted model. State what is wrong with the colleague's fit, including what it predicts for young meters and what its reported standard errors describe.
- The form you would use. Name it, say what it models, and say how you would report its coefficient in a sentence an engineer could act on.
- A curved relationship. Suppose callouts rise slowly to age 8 and then faster. Say how you would accommodate that, whether the resulting model is still a linear model, and how you would choose any flexibility parameter it introduces.
- The projection to age 25. Say what can and cannot be claimed, and why the answer does not depend on which of the forms was fitted.
Write your answer, then compare it with the worked solution.
3 hints available, least help first.
Hint 1: Retrieval cue
Start from what the response can be, not from the shape of the scatter plot.
Hint 2: Concept cue
Two separate defects afflict the colleague's fit: what it can predict, and what its uncertainty describes.
Hint 3: Strategy cue
For the projection, ask what evidence exists between ages 14 and 25, and what is producing the number in its absence.
Compare with the worked solution
Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.
1. The response. Callouts are a count: non-negative integers, no upper bound, concentrated near zero with a long right tail. Two consequences. Ordinary least squares on the raw count assumes the response is continuous and unbounded in both directions, and that its variance is the same for every observation. Counts satisfy neither. Least squares on
A complete answer does each of these:
- reads response type
- fits polynomial terms
- interprets multiplicative scale
- checks variance assumption
- bounds extrapolation
Session complete
Every question in this set has been through once. What you can do now depends on how it went — practising again is worth more than moving on if any of it was uncertain.
Practice data
Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.