Regression Lines. Today’s Aim: To learn the method for calculating the most accurate Line of Best Fit for a set of data.

Slides:



Advertisements
Similar presentations
AP Statistics Section 3.2 B Residuals
Advertisements

R Squared. r = r = -.79 y = x y = x if x = 15, y = ? y = (15) y = if x = 6, y = ? y = (6)
AP Statistics.  Least Squares regression is a way of finding a line that summarizes the relationship between two variables.
1 Functions and Applications
A student wonders if tall women tend to date taller men than do short women. She measures herself, her dormitory roommate, and the women in the adjoining.
Regression and Correlation
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #18.
Correlation-Regression The correlation coefficient measures how well one can predict X from Y or Y from X.
Accuracy of Prediction How accurate are predictions based on a correlation?
REGRESSION Predict future scores on Y based on measured scores on X Predictions are based on a correlation from a sample where both X and Y were measured.
1 Relationships We have examined how to measure relationships between two categorical variables (chi-square) one categorical variable and one measurement.
Simple Linear Regression NFL Point Spreads – 2007.
Residuals and Residual Plots Most likely a linear regression will not fit the data perfectly. The residual (e) for each data point is the ________________________.
Biostatistics Unit 9 – Regression and Correlation.
1 Chapter 3: Examining Relationships 3.1Scatterplots 3.2Correlation 3.3Least-Squares Regression.
1.6 Linear Regression & the Correlation Coefficient.
Linear Regression Least Squares Method: the Meaning of r 2.
Chapter 20 Linear Regression. What if… We believe that an important relation between two measures exists? For example, we ask 5 people about their salary.
Linear Regression Least Squares Method: an introduction.
Thomas Knotts. Engineers often: Regress data  Analysis  Fit to theory  Data reduction Use the regression of others  Antoine Equation  DIPPR.
9.2A- Linear Regression Regression Line = Line of best fit The line for which the sum of the squares of the residuals is a minimum Residuals (d) = distance.
Educ 200C Wed. Oct 3, Variation What is it? What does it look like in a data set?
Intro to Regression POL 242. Summary Regression is the process by which we fit a line to depict the relationship between two variables (usually both interval.
Section 2.6 – Draw Scatter Plots and Best Fitting Lines A scatterplot is a graph of a set of data pairs (x, y). If y tends to increase as x increases,
Scatter Plots, Correlation and Linear Regression.
Chapter 2 Examining Relationships.  Response variable measures outcome of a study (dependent variable)  Explanatory variable explains or influences.
Residuals Recall that the vertical distances from the points to the least-squares regression line are as small as possible.  Because those vertical distances.
Linear Prediction Correlation can be used to make predictions – Values on X can be used to predict values on Y – Stronger relationships between X and Y.
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan Simple Linear Regression SECTION 2.6 Least squares line Interpreting coefficients.
Scatterplots and Linear Regressions Unit 8. Warm – up!! As you walk in, please pick up your calculator and begin working on your warm – up! 1. Look at.
Section 1.6 Fitting Linear Functions to Data. Consider the set of points {(3,1), (4,3), (6,6), (8,12)} Plot these points on a graph –This is called a.
Copyright © 2003, N. Ahbel Residuals. Copyright © 2003, N. Ahbel Predicted Actual Actual – Predicted = Error Source:
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
Describing Bivariate Relationships. Bivariate Relationships When exploring/describing a bivariate (x,y) relationship: Determine the Explanatory and Response.
Regression lines A line of best fit should: Go through ( x , y )
LEAST – SQUARES REGRESSION
Statistics 101 Chapter 3 Section 3.
Linear Regression Special Topics.
CHAPTER 3 Describing Relationships
distance prediction observed y value predicted value zero
Regression and Correlation
The Lease Squares Line Finite 1.3.
Least-Squares Regression
Residuals From the Carnegie Foundation math.mtsac.edu/statway/lesson_3.3.1_version1.5A.
Chapter 15 Linear Regression
Data Analysis and Statistical Software I ( ) Quarter: Autumn 02/03
Warm-Up . Math Social Studies P.E. Women Men 2 10
Residuals Learning Target:
AP Stats: 3.3 Least-Squares Regression Line
LEAST – SQUARES REGRESSION
Prediction of new observations
GET OUT p.161 HW!.
R Squared.
Least Squares Method: the Meaning of r2
Least-Squares Regression
Finding the Distance Between Two Points.
7.4 – The Method of Least-Squares
Section 2: Linear Regression.
Least-Squares Regression
Lesson 2.2 Linear Regression.
HW# : Complete the last slide
CALCULATING EQUATION OF LEAST SQUARES REGRESSION LINE
Residuals From the Carnegie Foundation math.mtsac.edu/statway/lesson_3.3.1_version1.5A.
Regression & Prediction
3.2 – Least Squares Regression
Tuesday, September 29 Check HW Probs 3.13, 14, 20 (7-11-doubles)
Homework: pg. 180 #6, 7 6.) A. B. The scatterplot shows a negative, linear, fairly weak relationship. C. long-lived territorial species.
R = R Squared
Residuals From the Carnegie Foundation math.mtsac.edu/statway/lesson_3.3.1_version1.5A.
Presentation transcript:

Regression Lines

Today’s Aim: To learn the method for calculating the most accurate Line of Best Fit for a set of data

Make a Scatterplot of the following data: XY

Lets guess where the Line of Best Fit should go

Now we want to measure the distance between the actual Y values for each point and the predicted Y value on our possible Line of Best Fit

Now, lets try with a different line…

We can also measure with numbers the vertical distances between the Scatterplot points and the Line of Best Fit

Actual y values: Predicted y values: Difference in y values:

For the first possible Line of Best Fit, the sum of the vertical distances (errors) was 6.3

The sum of the vertical distances (errors) on the second possible line was 8.2.

The correct Line of Best Fit is called a Regression Line.

A Regression Line is the line that makes the sum of the squares of the vertical distances (errors) of the data points from the line as small as possible.

To Calculate the Error: Error = actual y value - predicted y value Note: If the predicted value is larger than the actual value, the error will be a negative number. This is why we square the errors - to turn them into positive numbers.

For example… XY Predicted Y values (Line A) Vertical Distances (errors) Distances Squared SUM: 6.35 XY Predicted Y values (Line B) Vertical Distances (errors) Distances Squared SUM:.78