11/26/2015 V. J. Motto 1 Chapter 1: Linear Models V. J. Motto M110 Modeling with Elementary Functions 1.5 Best-Fit Lines and Residuals.

Slides:



Advertisements
Similar presentations
Chapter 3 Examining Relationships Lindsey Van Cleave AP Statistics September 24, 2006.
Advertisements

AP Statistics Section 3.2 C Coefficient of Determination
The Role of r2 in Regression Target Goal: I can use r2 to explain the variation of y that is explained by the LSRL. D4: 3.2b Hw: pg 191 – 43, 46, 48,
R Squared. r = r = -.79 y = x y = x if x = 15, y = ? y = (15) y = if x = 6, y = ? y = (6)
Linear regression and correlation
1 Functions and Applications
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Correlation and Regression
Chapter 3 Bivariate Data
2nd Day: Bear Example Length (in) Weight (lb)
LINEAR REGRESSION: Evaluating Regression Models. Overview Standard Error of the Estimate Goodness of Fit Coefficient of Determination Regression Coefficients.
Statistics for the Social Sciences
FIN357 Li1 The Simple Regression Model y =  0 +  1 x + u.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Linear Regression and Linear Prediction Predicting the score on one variable.
Chapter 2 – Simple Linear Regression - How. Here is a perfect scenario of what we want reality to look like for simple linear regression. Our two variables.
Linear Regression Analysis
Linear Regression.
Introduction to Linear Regression and Correlation Analysis
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Linear Regression When looking for a linear relationship between two sets of data we can plot what is known as a scatter diagram. x y Looking at the graph.
Chapter 6 & 7 Linear Regression & Correlation
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 13-6 Regression and Correlation.
AP STATISTICS LESSON 3 – 3 LEAST – SQUARES REGRESSION.
1.6 Linear Regression & the Correlation Coefficient.
Linear Regression Least Squares Method: the Meaning of r 2.
Section 2.2 Correlation A numerical measure to supplement the graph. Will give us an indication of “how closely” the data points fit a particular line.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Slope-Intercept Form Point-Slope.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 4 Section 2 – Slide 1 of 20 Chapter 4 Section 2 Least-Squares Regression.
Regression Regression relationship = trend + scatter
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
Objective: Understanding and using linear regression Answer the following questions: (c) If one house is larger in size than another, do you think it affects.
Educ 200C Wed. Oct 3, Variation What is it? What does it look like in a data set?
Unit 3 Part 2 Writing Equations Ax + By = C (standard form) y = mx + b (slope – intercept form)
Chapter 8 Linear Regression. Slide 8- 2 Fat Versus Protein: An Example The following is a scatterplot of total fat versus protein for 30 items on the.
STA291 Statistical Methods Lecture LINEar Association o r measures “closeness” of data to the “best” line. What line is that? And best in what terms.
Chapter 6 (cont.) Difference Estimation. Recall the Regression Estimation Procedure 2.
12/5/2015 V. J. Motto 1 Chapter 1: Linear Models V. J. Motto M110 Modeling with Elementary Functions 1.4 Linear Data Sets and “STAT”
12/12/ : Using Formulas Expectation: You will be able to use the formulas for area and perimeter of a rectangle to calculate (with correct units)
CHAPTER 5 CORRELATION & LINEAR REGRESSION. GOAL : Understand and interpret the terms dependent variable and independent variable. Draw a scatter diagram.
9.2 Linear Regression Key Concepts: –Residuals –Least Squares Criterion –Regression Line –Using a Regression Equation to Make Predictions.
CHAPTER 8 Linear Regression. Residuals Slide  The model won’t be perfect, regardless of the line we draw.  Some points will be above the line.
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.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 3 Association: Contingency, Correlation, and Regression Section 3.3 Predicting the Outcome.
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.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Simple Linear Regression Analysis Chapter 13.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
1 1 Slide The Simple Linear Regression Model n Simple Linear Regression Model y =  0 +  1 x +  n Simple Linear Regression Equation E( y ) =  0 + 
Chapter 8 Linear Regression. Fat Versus Protein: An Example 30 items on the Burger King menu:
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
AP STATISTICS LESSON 3 – 3 (DAY 2) The role of r 2 in regression.
Linear Regression Essentials Line Basics y = mx + b vs. Definitions
The simple linear regression model and parameter estimation
CHAPTER 3 Describing Relationships
1 Functions and Applications
Bring project data to enter into Fathom
r = The correlation between price and calories is 0. 79
Linear Regression.
No notecard for this quiz!!
Chapter 3: Describing Relationships
Least-Squares Regression
R Squared.
Least Squares Method: the Meaning of r2
The Least-Squares Line Introduction
Least-Squares Regression
Ch 4.1 & 4.2 Two dimensions concept
R = R Squared
Algebra Review The equation of a straight line y = mx + b
Chapter 14, part C Goodness of Fit..
Presentation transcript:

11/26/2015 V. J. Motto 1 Chapter 1: Linear Models V. J. Motto M110 Modeling with Elementary Functions 1.5 Best-Fit Lines and Residuals

Working Example Consider the data show below Let’s enter this data searching for model. Don’t forget to clear your calculator first! 11/26/2015V. J. Motto 2

Here is what we have… 11/26/2015V. J. Motto 3

Observation The calculator tells us that the linear model is y = 0.3x The linear correlation coefficient r = This is a weak positive correlation. The model only accounts for 30% of the variance. This is not a good model! 11/26/2015V. J. Motto 4

Analysis Observe how far the points of the “line of best fit” do not coincide with the actual data points! Let’s calculate these errors using the formula: actual value -line of best fit value; that is 11/26/2015V. J. Motto 5

The Sum of Square of Error Let’s calculate these errors using the formula: line of best fit value – actual value; that is for each point in the data we find 11/26/2015V. J. Motto 6

Method of Least Squares The calculator uses an algorithm called “the method of least squares” to determine the equation of the “line of best fit.” This algorithm guarantees that the line of best is the line whose sum of squares of the errors is the smallest (the least). 11/26/2015V. J. Motto 7

Some Observations The Line of Best fit Always passes through the point : It has the smallest SSE of any line that passes through the data field. You can always find a line of best fit. However, you must make judgment whether it is a good model or not. 11/26/2015V. J. Motto 8

Another Line Consider the line y = 0.8x + 1 which also goes through the data field. What is its SSE? 11/26/2015V. J. Motto 9