STATS4STEM (2024)

Linear Regression: what is the Least Squares Regression Line, and what does it have to do with Residuals?

Introduction

Imagine you have a scatterplot full of points, and you want to draw the line which will best fit your data. This best line is the Least Squares Regression Line (abbreviated as LSRL).

General LSRL Formula

Formula:\(\widehat{y} = a + bx\)

This is true where\(\widehat{y} \)isthe predicted y-value given x,\(a\)is the y intercept,\(b\)and is the slope.

TheLeast Squares Regression Line Predicts\(\widehat{y} \)

For every x-value, the Least Squares Regression Line makes a predicted y-valuethat is close to the observed y-value, but usuallyslightly off. This predicted y-valueis called "y-hat" and symbolized as\(\widehat{y} \). The observed y-value is merely called "y."

STATS4STEM (1)

Residuals

Let's take a moment to notice the little gap between the observed y-value (thescatter point labelled y) and the predicted y-value(the point on the line labelled \(\widehat{y} \)).This gap is called the residual. Thefull definition and formula are below:

Definition:Theresidual is the vertical distance between the observed point and your predicted y-value.

Formula: residual =\(y - \widehat{y}\)

** REMEMBER: the residual is observed minus predicted!!

For more information on residuals, click here.

The LSRL and Residuals

By now, you know that the LeastSquares Regression Line goes through a scatterplot of points andpredicts ay-value(\(\widehat{y} \))for any given x. You also know that the goal here is to create the best fitting line possible. This is where residuals come into play. The LSRL fits "best" because it reduces the residuals.

The Least Squares Regression Line is the line that minimizes the sum of the residuals squared.

In other words, for any other line other than the LSRL, the sum of the residuals squared will be greater. This is what makes the LSRL the sole best-fitting line.

Calculating the Least Squares Regression Line

When given all of the data points,you can use your calculator to find the LSRL.

Step 1: Go to STAT, and click EDIT. Then enter all of the data points into lists 1 and 2.

Step 2: Go to STAT, and click right to CALC. Then hit LinReg. Hitting enter and running this function will give you the slope and y-intercept of your LSRL as well as the r and r2 values.

When you do not have the data points, there is a way to calculate the LSRL by hand. There are two key facts you need to know:

(1) The LSRL must pass through \(( \bar{x}, \bar{y} )\).

(2) The slope of the LSRL (which, when using the formula \(\widehat{y} = a + bx\), would be \(b\)) is calculated as follows:\(b = (r) ({s_y \over s_x} )\)

Using this information, you can find the LSRL as shown in the example below:

Given the table to the right, find the equation for the Least Squares Regression Line.

\(\bar{x}\)28
\(\bar{y}\)33
\(s_x\)12
\(s_y\)17
\(r\)0.82

Step 1: Find the Slope

\(b = (r) ({s_y \over s_x} )\)

\(b = (0.82) ({17 \over 12} )\)

\(b = 1.16\)

Step 2: Find the y-intercept

\(\widehat{y} = a + bx\)

\(33 = a + (1.16)(28)\)

\(a = 0.52\)

Step 3: Put it all together!

\(\widehat{y} = a + bx\)

\(\widehat{y} = 0.52 + 1.16x\)

Conclusion

  • The Least Squares Regression Line is the line that minimizes the sum of the residuals squared.
  • The residual is the vertical distance between the observed point and the predicted point, and it is calculated by subtracting \(\widehat{y} \)from y.
STATS4STEM (2024)
Top Articles
5 steps to learn to code successfully in 2024
Why Should You Choose QA As Your Career? QA Training Hub
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 5580

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.