Linear Regression (4 of 4) (2024)

Learning Objectives

  • For a linear relationship, use the least squares regression line to model the pattern in the data and to make predictions.

In the previous activity we used technology to find the least-squares regression line from the data values.

We can also find the equation for the least-squares regression line from summary statistics for x and y and the correlation.

If we know the mean and standard deviation for x and y, along with the correlation (r), we can calculate the slope b and the starting value a with the following formulas:

[latex]b=\frac{r⋅{s}_{y}}{{s}_{x}}\text{ and }a=\stackrel{¯}{y}-b\stackrel{¯}{x}[/latex]

As before, the equation of the linear regression line is

Predicted y = a + b * x

Example: Highway Sign Visibility

We will now find the equation of the least-squares regression line using the output from a statistics package.

Linear Regression (4 of 4) (1)

  • The slope of the line is [latex]b=\left(-0.793\right)\ast \left(\frac{82.8}{21.78}\right)=-3[/latex]
  • The intercept of the line is a = 423 – (-3 * 51) = 576 and therefore the least-squares regression line for this example is Predicted distance = 576 + (-3 * Age), which can also be written as Predicted distance = 576 – 3 * Age

Learn By Doing

Learn By Doing

Now you know how to calculate the least-squares regression line from the correlation and the mean and standard deviation of x and y. But what do these formulas tell us about the least-squares line?

We know that the intercept a is the predicted value when x = 0.

The formula [latex]a=\stackrel{¯}{y}\text{}\text{−}\text{}b⋅\stackrel{¯}{x}[/latex] tells us that the we can find the intercept using the point: ([latex]\overline{x},\overline{y}[/latex]).

This is interesting because it says that every least-squares regression line contains this point. In other words, the least-squares regression line goes through the mean of x and the mean of y.

We also know that the slope of the least-squares regression line is the average change in the predicted response when the explanatory variable increases by 1 unit.

The slope formula

[latex]b=\frac{r⋅{s}_{y}}{{s}_{x}}[/latex]

tells us that the slope is related to the correlation in this way: when x increases an x standard deviation, the predicted y-value does not change by a y standard deviation. Instead, the predicted y-value changes by less than a y standard deviation. The change is a fraction of a y standard deviation, and that fraction is r. Another way to say this is that when x increases by a standard deviation in x, the average change in the predicted response is a fractional change of r standard deviations in y.

It is not surprising that slope and correlation are connected. We already know that when a linear relationship is positive, the correlation and the slope are positive. Similarly, when a linear relationship is negative, the correlation and slope are both negative. But now we understand this connection more precisely.

Let’s Summarize

  • The line that best summarizes a linear relationship is the least-squares regression line. The least-squares line is the best fit for the data because it gives the best predictions with the least amount of overall error. The most common measurement of overall error is the sum of the squares of the errors (SSE). The least-squares line is the line with the smallest SSE.
  • We use the least-squares regression line to predict the value of the response variable from a value of the explanatory variable.
  • Prediction for values of the explanatory variable that fall outside the range of the data is called extrapolation. These predictions are unreliable because we do not know if the pattern observed in the data continues outside the range of the data. Avoid making predictions outside the range of the data.
  • The slope of the least-squares regression line is the average change in the predicted values of the response variable when the explanatory variable increases by 1 unit.
  • We have two methods for finding the equation of the least-squares regression line:

Predicted y = a + b * x

Method 1: We use technology to find the equation of the least-squares regression line:

Predicted y = a + b * x

Method 2: We use summary statistics for x and y and the correlation. In this method we can calculate the slope b and the y-intercept a using the following:

[latex]\begin{array}{cc}b=\Large{\frac{\left(r⋅{s}_{y}\right)}{{s}_{x}}}\\\normalsize{\text{ a} = \stackrel{¯}{y}-b\stackrel{¯}{x}}\end{array}[/latex]

Linear Regression (4 of 4) (2024)
Top Articles
Port Checker
Can I manually enter a visa gift card for payment even though there is no ZIP code tied to the card?
Jail Inquiry | Polk County Sheriff's Office
55Th And Kedzie Elite Staffing
Kreme Delite Menu
Regal Amc Near Me
Steve Strange - From Punk To New Romantic
Azeroth Pilot Reloaded - Addons - World of Warcraft
What Does Dwb Mean In Instagram
2016 Hyundai Sonata Price, Value, Depreciation & Reviews | Kelley Blue Book
Oc Craiglsit
Nwi Arrests Lake County
Mile Split Fl
Snow Rider 3D Unblocked Wtf
Char-Em Isd
Blackwolf Run Pro Shop
Lonesome Valley Barber
Copart Atlanta South Ga
Walmart Car Department Phone Number
Air Quality Index Endicott Ny
MyCase Pricing | Start Your 10-Day Free Trial Today
Craigslist Alo
Craigslist Pennsylvania Poconos
Cognitive Science Cornell
Weathervane Broken Monorail
Cowboy Pozisyon
Black Lion Backpack And Glider Voucher
Frank Vascellaro
Srjc.book Store
Core Relief Texas
Ups Drop Off Newton Ks
3473372961
Fairwinds Shred Fest 2023
Craigs List Tallahassee
Restaurants Near Calvary Cemetery
Whas Golf Card
2024 Ford Bronco Sport for sale - McDonough, GA - craigslist
Pensacola Cars Craigslist
5 Tips To Throw A Fun Halloween Party For Adults
The Listings Project New York
How to Get a Better Signal on Your iPhone or Android Smartphone
Bekah Birdsall Measurements
Bmp 202 Blue Round Pill
Keci News
Joy Taylor Nip Slip
Legs Gifs
What Time Do Papa John's Pizza Close
Wild Fork Foods Login
Wrentham Outlets Hours Sunday
Philasd Zimbra
Pauline Frommer's Paris 2007 (Pauline Frommer Guides) - SILO.PUB
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 6104

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.