Calculating the Least Squares Regression Line

Slides:



Advertisements
Similar presentations
TI Calculator Creating a Scatterplot … Step #1 – Enter the Data
Advertisements

Least-Squares Regression Section 3.3. Correlation measures the strength and direction of a linear relationship between two variables. How do we summarize.
Exponential Regression
Using TI graphing calculators
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.
Linear Regression on the Calculator Please view this tutorial and answer the follow-up questions on loose leaf to turn in to your teacher.
The Coefficient of Determination: r 2 Section
Scatter Diagrams and Linear Correlation
Correlation-Regression The correlation coefficient measures how well one can predict X from Y or Y from X.
Box Plots Calculator Commands 12/1/10. CA Stats Standard 3.02 Locating the 5-Number Summary on TI83/84 A box plot is a graph of the 5-# Summary for a.
Plotting coordinates into your TI 84 Plus Calculator.
Graphing Scatter Plots and Finding Trend lines
5-7 Scatter Plots. _______________ plots are graphs that relate two different sets of data by displaying them as ordered pairs. Usually scatter plots.
Chapter 10 Correlation and Regression. SCATTER DIAGRAMS AND LINEAR CORRELATION.
Check it out! 4.3.3: Distinguishing Between Correlation and Causation
Ch. 12– part 2 Sec 12.6: Correlation and Regression.
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.
2-5: Using Linear Models Algebra 2 CP. Scatterplots & Correlation Scatterplot ◦ Relates two sets of data ◦ Plots the data as ordered pairs ◦ Used to tell.
Academy Algebra II 4.2: Building Linear Functions From Data HW: p (3-8 all,18 – by hand,20 – calc) Bring your graphing calculator to class on Monday.
The Standard Deviation of a Discrete Random Variable Lecture 24 Section Fri, Oct 20, 2006.
Modeling a Linear Relationship Lecture 47 Secs – Tue, Apr 25, 2006.
Section 4.1 Scatter Diagrams and Correlation. Definitions The Response Variable is the variable whose value can be explained by the value of the explanatory.
Review 1) How do you enter a set of data into your graphing calculator? How do you find a line of best fit for that set of data? 2)Find the length and.
Finding a Linear Equation and Regression Finding a Linear Equation Using the LINDEMO data as a Distance in meters from the motion detector vs Time in seconds.
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.
Lecture 301 Solving Quadratic Equations Two Methods Unit 4 Lecture 30 Solving Quadratic Equations.
USING THE CALCULATOR 3.2 Residuals and the Least-Squares Regression Line.
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.
Lines Goal I will review different equations for lines, and find a linear regression equation on my calculator.
Finding an Exponential Regression Use the data in the program file COOL to find an exponential model.
Scatter Plot A scatter plot is a graph of a collection of ordered pairs (x,y). The ordered pairs are not connected The graph looks like a bunch of dots,
The Variance of a Random Variable Lecture 35 Section Fri, Mar 26, 2004.
Mean and Standard Deviation Lecture 23 Section Fri, Mar 3, 2006.
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.
5.8: Modeling with Quadratic Functions Objectives: Students will be able to… Write a quadratic function from its graph given a point and the vertex Write.
The Line of Best Fit CHAPTER 2 LESSON 3  Observed Values- Data collected from sources such as experiments or surveys  Predicted (Expected) Values-
Two-Variable Data Analysis
Bring project data to enter into Fathom
Chapter 4.2 Notes LSRL.
Graphing Histograms on the Calculator
10.3 Coefficient of Determination and Standard Error of the Estimate
Confidence Interval Estimation for a Population Proportion
Calculations with Lists
3.2 Residuals and the Least-Squares Regression Line
Using the TI84 Graphing Calculator
Independent Samples: Comparing Proportions
Warm Up Please sit down and clear your desk. Do not talk. You will have until lunch to finish your quiz.
Calculating the Least Squares Regression Line
Sine Waves Part II: Data Analysis.
Modeling a Linear Relationship
Sine Waves Part II: Data Analysis.
Calculating the Least Squares Regression Line
Calculating the Least Squares Regression Line
Mean and Standard Deviation
Finding Numerical Measures and Boxplots
Describing Bivariate Relationships
Which graph best describes your excitement for …..
9.6 Modeling with Trigonometric Functions
Modeling a Linear Relationship
The Squared Correlation r2 – What Does It Tell Us?
Calculating the Least Squares Regression Line
Presentation transcript:

Calculating the Least Squares Regression Line Lecture 49 Secs. 13.3.2 Fri, Apr 28, 2006

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. For our example, 2-Var Stats L1, L2 reports that n = 5 x = 25 x2 = 155 y = 45 y2 = 515 xy = 282

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. Press Y= to see the equation. Press ZOOM > ZoomStat to see the graph.