Calculating the Least Squares Regression Line Lecture 40 Secs. 13.3.2 Wed, Dec 6, 2006.

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
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.
Scatter Diagrams and Linear Correlation
Correlation-Regression The correlation coefficient measures how well one can predict X from Y or Y from X.
Plotting coordinates into your TI 84 Plus Calculator.
Graphing Scatter Plots and Finding Trend lines
The Line of Best Fit Linear Regression. Definition - A Line of Best or a trend line is a straight line on a Scatter plot that comes closest to all of.
Scatter-plot, Best-Fit Line, and Correlation Coefficient.
SECTION 2.2 BUILDING LINEAR FUNCTIONS FROM DATA BUILDING LINEAR FUNCTIONS FROM DATA.
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.
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.
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
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.
Scatter Plots, Correlation and Linear Regression.
Tables and graphs taken from Glencoe, Advanced Mathematical Concepts.
Sec. 2-4: Using Linear Models. Scatter Plots 1.Dependent Variable: The variable whose value DEPENDS on another’s value. (y) 2.Independent Variable: The.
Lecture 301 Solving Quadratic Equations Two Methods Unit 4 Lecture 30 Solving Quadratic Equations.
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.
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.
Least Squares Regression Lines Text: Chapter 3.3 Unit 4: Notes page 58.
Lines Goal I will review different equations for lines, and find a linear regression equation on my calculator.
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,
1.8 Quadratic Models Speed (in mi/h) Calories burned Ex. 1.
Regression and Median Fit Lines
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.
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
Correlation: How Strong Is the Linear Relationship? Lecture 46 Sec Mon, Apr 30, 2007.
Chapter 4.2 Notes LSRL.
Sections Review.
10.3 Coefficient of Determination and Standard Error of the Estimate
Calculations with Lists
3.2 Residuals and the Least-Squares Regression Line
Using the TI84 Graphing Calculator
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
Do Now What is the predicted English score when the math score is 10?
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
Section 3.2: Least Squares Regressions
Describing Bivariate Relationships
Which graph best describes your excitement for …..
9.6 Modeling with Trigonometric Functions
Modeling a Linear Relationship
Finding Correlation Coefficient & Line of Best Fit
Calculating the Least Squares Regression Line
Calculating the Least Squares Regression Line
Presentation transcript:

Calculating the Least Squares Regression Line Lecture 40 Secs Wed, Dec 6, 2006

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

Example Consider again the data set Consider again the data set xy

Method 1 Compute the means and deviations for x and y. Compute the means and deviations for x and y. xy x –  xy –  y  x = 5  y = 9

Method 1 Compute the squared deviations, etc. Compute the squared deviations, etc. xy x –  xy –  y(x –  x) 2 (y –  y) 2 (x –  x)(y –  y)

Method 1 Find the sums of the last three columns. Find the sums of the last three columns. xy x –  xy –  y(x –  x) 2 (y –  y) 2 (x –  x)(y –  y)

Method 1 Compute b: Compute b: Then compute a: Then compute a:

Method 2 Consider again the data Consider again the data xy

Method 2 Compute x 2, y 2, and xy for each row. Compute x 2, y 2, and xy for each row. xyx2x2 y2y2 xy

Method 2 Then find the sums of x, y, x 2, y 2, and xy. Then find the sums of x, y, x 2, y 2, and xy. xyx2x2 y2y2 xy

Method 2 Then find the sums of x, y, x 2, y 2, and xy. Then find the sums of x, y, x 2, y 2, and xy. xyx2x2 y2y2 xy  x = 25  y = 45  x 2 = 155  y 2 = 515  xy =

Method 2 Compute b: Compute b: Then compute a: Then compute a:

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

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

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

TI-83 – Regression Line The following appear in the display. The following appear in the display. The title LinReg. The title LinReg. The equation y = a + bx. The equation y = a + bx. The value of a. The value of a. The value of b. The value of b. The value of r 2 (to be discussed later). The value of r 2 (to be discussed later). The value of r (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, To graph the regression line along with the scatterplot, Put the x values in L 1 and the y values in L 2. Put the x values in L 1 and the y values in L 2. Select STAT > CALC > LinReg(a+bx). Select STAT > CALC > LinReg(a+bx). Press Enter. LinReg(a+bx) appears in the display. Press Enter. LinReg(a+bx) appears in the display. Enter L 1, L 2, Y 1 Enter L 1, L 2, Y 1 Press Enter. Press Enter. Press Y= to see the equation. Press Y= to see the equation. Press ZOOM > ZoomStat to see the graph. Press ZOOM > ZoomStat to see the graph.

Example Find the regression line for the Calorie/Cholesterol data. Find the regression line for the Calorie/Cholesterol data. Calories (x) Cholesterol (y)

Example Calories Cholesterol

Example Estimate the cholesterol content of sandwiches with 290 calories and 250 calories. Estimate the cholesterol content of sandwiches with 290 calories and 250 calories. Predict the cholesterol content of sandwiches with 500 calories and 1000 calories. Predict the cholesterol content of sandwiches with 500 calories and 1000 calories.

Example Calories Cholesterol

Example Calories Cholesterol

Example Calories Cholesterol