Find the least-squares regression line for x = 1, 2, 3, 4, 5, 6 and y = 52, 58, 61, 67, 70, 78: animated lesson
A narrated, step-by-step linear regression video lesson with captions. Final answer: ŷ = 707/15 + (172/35)x; r ≈ 0.992161, r² ≈ 0.984383.
Video with a synthetic English voice and captions. Pick another language for subtitles in that language, or open the interactive version.
Video narrated by a synthetic voice (Piper TTS, en_US-ljspeech-high voice (LJ Speech dataset, public domain)); the steps come from our maths engine and the answer was checked independently. Download MP4 (0.6 MB) · Captions (WebVTT)
Steps on screen
- 1. The problemWorked exampleFind the least-squares regression line for x = 1, 2, 3, 4, 5, 6 and y = 52, 58, 61, 67, 70, 78.
- 2. Steps, part 1
- Means of x and y
- Sums of squares and cross-products about the means
- Slope
- Intercept: the line passes through the point of means
- 3. Steps, part 2
- Regression line
- Correlation and coefficient of determination
- 4. The answer
b = 172/35 ≈ 4.91429, a = 707/15 ≈ 47.1333
- 5. Check
- The residuals sum to 0, as they must for a least-squares line.
Transcript
The problem. Here is the problem: Find the least-squares regression line for x equals 1, 2, 3, 4, 5, 6 and y equals 52, 58, 61, 67, 70, 78. Fit the straight line ŷ equals a plus bx that minimises the sum of squared vertical distances to the data, and measure how well it fits with r and r squared.
Steps, part 1. Means of x and y. Sums of squares and cross-products about the means. Slope. Intercept: the line passes through the point of means.
Steps, part 2. Regression line. Correlation and coefficient of determination. Strong positive linear association; about 98.44 percent of the variation in y is explained by the line.
The answer. So the answer is ŷ equals 707 over 15 plus (172 over 35)x; r approximately 0.992161, r squared approximately 0.984383. The slope is the predicted change in y for each one-unit increase in x. Correlation measures the strength of the linear pattern, not whether x causes y.
Check. The residuals sum to 0, as they must for a least-squares line.
About linear regression
Fit a least-squares regression line and read its slope and intercept.
More lessons like this
- Video lesson1:07Statistics and probabilityCollege6 stepsFind the least-squares regression line for x = 10, 20, 30, 40, 50 and y = 48, 41, 35, 30, 22
Linear regression
- Video lesson1:05Statistics and probabilityCollege6 stepsFind the least-squares regression line for x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5
Linear regression
- Video lesson1:05Statistics and probabilityCollege6 stepsFind the least-squares regression line for x = 0, 1, 2, 3, 4 and y = 1, 3, 7, 9, 11
Linear regression
- Video lesson1:05Statistics and probabilityCollege6 stepsFind the least-squares regression line for x = 2, 4, 6, 8 and y = 3, 7, 8, 12
Linear regression