Skip to content
Back to exploration
Applied mathematics / English

Linear Regression Using Least Squares Method - Line of Best Fit Equation

The Organic Chemistry Tutor · YouTube · 15:05

Open original
READ & KEEP

The explanation, unpacked.

Reviewed learning material · Video analysis · English
Read the full overview

Calculate a least-squares regression line by hand and check the slope and intercept in a spreadsheet.

Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.

Chapters

0:00A best-fit line7:30Compute slope then intercept13:30Verify with the same data

Learning script

Generated from the video's visuals and explanation; not verbatim speech.

The data points are not exactly collinear. Least squares selects a line by minimizing the sum of squared vertical residuals, rather than forcing every point onto the line.

The seven-point example uses sums of x, y, xy and x². Its slope is about 2.4142857 and its intercept about −0.828571; avoid rounding intermediate results early.

Spreadsheet SLOPE and INTERCEPT functions reproduce the hand calculation. Predicted values lie close to the observations but are not required to match each one exactly.

Knowledge cards

01

A best-fit line

The data points are not exactly collinear. Least squares selects a line by minimizing the sum of squared vertical residuals, rather than forcing every point onto the line.

02

Compute slope then intercept

The seven-point example uses sums of x, y, xy and x². Its slope is about 2.4142857 and its intercept about −0.828571; avoid rounding intermediate results early.

03

Verify with the same data

Spreadsheet SLOPE and INTERCEPT functions reproduce the hand calculation. Predicted values lie close to the observations but are not required to match each one exactly.

Explore the knowledge in this video

Open video knowledge graph →

  • Least squares ExplanationAt 0:00
    Why this connection?

    The data points are not exactly collinear. Least squares selects a line by minimizing the sum of squared vertical residuals, rather than forcing every point onto the line. The seven-point example uses sums of x, y, xy and x². Its slope is about 2.4142857 and its intercept about −0.828571; avoid rounding intermediate results early. Spreadsheet SLOPE and INTERCEPT functions reproduce the hand calculation. Predicted values lie close to the observations but are not required to match each one exactly.

Questions this video answers