Calculating the Least Squares Regression Line

Slides:



Advertisements
Similar presentations
Least-Squares Regression Section 3.3. Correlation measures the strength and direction of a linear relationship between two variables. How do we summarize.
Advertisements

Exponential Regression
Coefficient of Determination- R²
AP Statistics Section 3.2 B Residuals
Section 10-3 Regression.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 12.2.
Least Squares Regression
AP Statistics.  Least Squares regression is a way of finding a line that summarizes the relationship between two variables.
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Lesson Diagnostics on the Least- Squares Regression Line.
Definition  Regression Model  Regression Equation Y i =  0 +  1 X i ^ Given a collection of paired data, the regression equation algebraically describes.
The Coefficient of Determination: r 2 Section
Scatter Diagrams and Linear Correlation
Haroon Alam, Mitchell Sanders, Chuck McAllister- Ashley, and Arjun Patel.
Plotting coordinates into your TI 84 Plus Calculator.
Graphing Scatter Plots and Finding Trend lines
Scatter-plot, Best-Fit Line, and Correlation Coefficient.
5-7 Scatter Plots. _______________ plots are graphs that relate two different sets of data by displaying them as ordered pairs. Usually scatter plots.
Warm-up with 3.3 Notes on Correlation
Correlation Correlation measures the strength of the LINEAR relationship between 2 quantitative variables. Labeled as r Takes on the values -1 < r < 1.
Lesson Least-Squares Regression. Knowledge Objectives Explain what is meant by a regression line. Explain what is meant by extrapolation. Explain.
Section 4.2 Least Squares Regression. Finding Linear Equation that Relates x and y values together Based on Two Points (Algebra) 1.Pick two data points.
Linear Regression Least Squares Method: the Meaning of r 2.
Ch. 4: Correlation and Regression Ma260notes_ch4_ppnotes.pptx.
Modeling a Linear Relationship Lecture 47 Secs – Tue, Apr 25, 2006.
Section 3.2C. The regression line can be found using the calculator Put the data in L1 and L2. Press Stat – Calc - #8 (or 4) - enter To get the correlation.
Statistics Describing, Exploring and Comparing Data
Modeling a Linear Relationship Lecture 44 Secs – Tue, Apr 24, 2007.
For all work in this unit using TI 84 Graphing Calculator the Diagnostics must be turned on. To do so, select CATALOGUE, use ALPHA key to enter the letter.
Tables and graphs taken from Glencoe, Advanced Mathematical Concepts.
Lecture 301 Solving Quadratic Equations Two Methods Unit 4 Lecture 30 Solving Quadratic Equations.
AP Statistics HW: p. 165 #42, 44, 45 Obj: to understand the meaning of r 2 and to use residual plots Do Now: On your calculator select: 2 ND ; 0; DIAGNOSTIC.
Warm-up O Turn in HW – Ch 8 Worksheet O Complete the warm-up that you picked up by the door. (you have 10 minutes)
Regression on the Calculator Hit the “STAT” button and then select edit Enter the data into the lists. The independent data goes in L 1 and the dependent.
Unit 3 Section : Regression Lines on the TI  Step 1: Enter the scatter plot data into L1 and L2  Step 2 : Plot your scatter plot  Remember.
Chapter 8 Linear Regression. Fat Versus Protein: An Example 30 items on the Burger King menu:
Calculating the Least Squares Regression Line Lecture 40 Secs Wed, Dec 6, 2006.
1.8 Quadratic Models Speed (in mi/h) Calories burned Ex. 1.
1.5 Linear Models Warm-up Page 41 #53 How are linear models created to represent real-world situations?
Linear Regression A step-by-step tutorial… Copyright © 2007 College of the Redwoods First edition by Aeron Ives.
Response Variable: measures the outcome of a study (aka Dependent Variable) Explanatory Variable: helps explain or influences the change in the response.
Welcome to Algebra 2! Get out your homework Get out catalogs Get out writing utensils Put bags on the floor Be quiet!!! 3/2/ : Curve Fitting with.
Two-Variable Data Analysis
Correlation: How Strong Is the Linear Relationship? Lecture 46 Sec Mon, Apr 30, 2007.
Bring project data to enter into Fathom
Chapter 4.2 Notes LSRL.
Sections Review.
10.3 Coefficient of Determination and Standard Error of the Estimate
Ch12.1 Simple Linear Regression
3.2 Residuals and the Least-Squares Regression Line
Using the TI84 Graphing Calculator
AP Stats: 3.3 Least-Squares Regression Line
Least-Squares Regression
Warm Up Please sit down and clear your desk. Do not talk. You will have until lunch to finish your quiz.
Least-Squares Regression
Least Squares Method: the Meaning of r2
Calculating the Least Squares Regression Line
Sine Waves Part II: Data Analysis.
Modeling a Linear Relationship
Sine Waves Part II: Data Analysis.
Least-Squares Regression
Calculating the Least Squares Regression Line
Section 3.2: Least Squares Regressions
Describing Bivariate Relationships
Which graph best describes your excitement for …..
Modeling a Linear Relationship
The Squared Correlation r2 – What Does It Tell Us?
Calculating the Least Squares Regression Line
Calculating the Least Squares Regression Line
The Squared Correlation r2 – What Does It Tell Us?
Presentation transcript:

Calculating the Least Squares Regression Line Lecture 45 Sec. 13.3.2 Wed, Apr 25, 2007

The Least Squares Regression Line The equation of the regression line is y^ = a + bx. Thus, we need to find the coefficients a and b. The formulas are or

Example Consider again the data set x y 2 3 5 9 6 12 16

Method 1 Compute the means and deviations for x and y. x y x –x y –y 2 3 -3 -6 5 -2 -4 9 6 12 1 16 4 7 x = 5 y = 9

Method 1 Compute the squared deviations, etc. x y 2 3 -3 -6 9 36 18 5 x –x y –y (x –x)2 (y –y)2 (x –x)(y –y) 2 3 -3 -6 9 36 18 5 -2 -4 4 16 8 6 12 1 7 49 28

Method 1 Find the sums of the last three columns. x y 2 3 -3 -6 9 36 x –x y –y (x –x)2 (y –y)2 (x –x)(y –y) 2 3 -3 -6 9 36 18 5 -2 -4 4 16 8 6 12 1 7 49 28 30 110 57

Method 1 Compute b: Then compute a:

Method 2 Consider again the data x y 2 3 5 9 6 12 16

Method 2 Compute x2, y2, and xy for each row. x y x2 y2 xy 2 3 4 9 6 5 25 15 81 45 12 36 144 72 16 256

Method 2 Then find the sums of x, y, x2, y2, and xy. x y x2 y2 xy 2 3 4 9 6 5 25 15 81 45 12 36 144 72 16 256 25 45 155 515 282

Method 2 Then find the sums of x, y, x2, y2, and xy. x y x2 y2 xy 2 3 4 9 6 5 25 15 81 45 12 36 144 72 16 256 x = 25 y = 45 x2 = 155 y2 = 515 xy = 282 25 45 155 515 282

Method 2 Compute b: Then compute a:

Example The second method is usually easier. By either method, we get the equation y^ = -0.5 + 1.9x.

TI-83 – Regression Line On the TI-83, we could use 2-Var Stats to get the basic summations. Then use the formulas for a and b.

TI-83 – Regression Line 2-Var Stats L1, L2 reports that Etc., etc. x = 25 x2 = 155 y = 45 y2 = 515 xy = 282 Etc., etc.

TI-83 – Regression Line Or we can use the LinReg function. Put the x values in L1 and the y values in L2. Select STAT > CALC > LinReg(a+bx). Press Enter. LinReg(a+bx) appears in the display. Enter L1, L2. Press Enter.

TI-83 – Regression Line The following appear in the display. The title LinReg. The equation y = a + bx. The value of a. The value of b. The value of r2 (to be discussed later). The value of r (to be discussed later).

TI-83 – Regression Line To graph the regression line along with the scatterplot, Put the x values in L1 and the y values in L2. Select STAT > CALC > LinReg(a+bx). Press Enter. LinReg(a+bx) appears in the display. Enter L1, L2, Y1 Press Enter.

TI-83 – Regression Line Press Y= to see the equation. Press ZOOM > ZoomStat to see the graph.

Example Find the equation of the regression line for the Subway data on calories and cholesterol. Calories (x) 350 290 330 320 370 280 310 230 Cholesterol (y) 50 20 45 15 35 25

Example 50 40 30 Cholesterol 20 10 Calories 200 250 300 350 400

Predicting y How much cholesterol would we expect to find in a Subway sandwich that had 300 calories?

Predicting y How much cholesterol would we expect to find in a Subway sandwich that had 300 calories? Enter Y1(300). Press Enter. We get 25.6 calories.

Predicting y 50 40 30 Cholesterol 20 10 Calories 200 250 300 350 400

SST = Variation in the Data (y’s) 50 40 30 Cholesterol 20 10 Calories 200 250 300 350 400

SSR = Variation in the Model 50 40 30 Cholesterol 20 10 Calories 200 250 300 350 400

SSE = Residual Sum of Squares It turns out that SSE = SST – SSR. That is,