Grade 10 · Inspect regression residuals · 37 of 750
Inspect regression residuals · practice 4
For inputs [1, 2, 3, 4, 5] and corresponding outputs [7.75, 6.5, 9, 11.5, 10.25], find the least-squares slope, mean output, and sum of squared residuals. Follow the calculation, then test the quantities in the animated example.
Try the question, use a hint when you need one, and compare your reasoning with the worked solution. The animation starts with this chapter’s values; changing its controls explores a new case.
01 · Make a prediction
Your practice question
For inputs [1, 2, 3, 4, 5] and corresponding outputs [7.75, 6.5, 9, 11.5, 10.25], find the least-squares slope, mean output, and sum of squared residuals.
Use this scratch space or work on paper. Your notes stay on this page and clear when you leave. Answers are for self-checking; they are not automatically graded.
A starting point
The input mean is 3 and the sum of squared input deviations is 10.
Work through the reasoning
Step 1
Translate the givens
Mean output = (7.75 + 6.5 + 9 + 11.5 + 10.25)/5 = 9; mean input = 3.
Step 2
Calculate with the model
The cross-deviation sum is 10 and the squared-input-deviation sum is 10, so slope = 10/10 = 1; intercept = 9 − 3 × (1) = 6.
Step 3
Check and interpret
Residuals from y = 1x + (6) are [0.75, -1.5, 0, 1.5, -0.75]. Their squares sum to 5.625. The sum of residuals and their input-weighted sum are both zero.
The answer
Slope = 1; mean output = 9; residual sum of squares = 5.625.
Compare the method as well as the result. A different valid method may reach the same answer. Keep exact values until the last step when the question asks for rounding.
02 · Explore the model
See the mathematical relationship move.
Use Play, Pause, and the timeline to inspect the construction. Reset restores the question’s original settings. The displayed assumptions describe where this model applies.
Watch the relationship
PausedHD animation studio
From experiment to screen.
Present a crisp Canvas scene, save a full-HD image, or capture your model as a silent video.
The mathematical idea
A scatter plot separates a trend from the deviations around it. These five constructed points have residuals whose sum and linear trend both vanish, so y=ax+b is their exact least-squares line. Correlation measures linear association and cannot, by itself, establish cause. Starting quantities: Trend slope = 1; Trend intercept = 6; Residual scale = 0.75.
yᵢ = axᵢ+b+c·eᵢ; e=(1,−2,0,2,−1), x=(1,2,3,4,5)
03 · Reflect and transfer
Explain what changes and why.
Why does the same fitted slope allow different amounts of scatter around the fitted line?
This is a distinct guided scenario using a reusable mathematical model. Similar-looking diagrams can represent different given values and conclusions; they are not different mathematical theories.