Residuals (resids).

Slides:



Advertisements
Similar presentations
 Will help you gain knowledge in: ◦ Improving performance characteristics ◦ Reducing costs ◦ Understand regression analysis ◦ Understand relationships.
Advertisements

Relationship of two variables
Scatter Plots and Linear Correlation. How do you determine if something causes something else to happen? We want to see if the dependent variable (response.
AP STATISTICS LESSON 3 – 3 LEAST – SQUARES REGRESSION.
1.6 Linear Regression & the Correlation Coefficient.
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
 Graph of a set of data points  Used to evaluate the correlation between two variables.
Regression Regression relationship = trend + scatter
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. DosageHeart rate
Creating a Residual Plot and Investigating the Correlation Coefficient.
Correlation The apparent relation between two variables.
2.5 Using Linear Models A scatter plot is a graph that relates two sets of data by plotting the data as ordered pairs. You can use a scatter plot to determine.
SWBAT: Calculate and interpret the residual plot for a line of regression Do Now: Do heavier cars really use more gasoline? In the following data set,
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.
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.
LEAST-SQUARES REGRESSION 3.2 Role of s and r 2 in Regression.
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.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Unit 3 Section : Regression  Regression – statistical method used to describe the nature of the relationship between variables.  Positive.
REGRESSION MODELS OF BEST FIT Assess the fit of a function model for bivariate (2 variables) data by plotting and analyzing residuals.
CHAPTER 3 Describing Relationships
Regression Analysis AGEC 784.
Lesson 4.5 Topic/ Objective: To use residuals to determine how well lines of fit model data. To use linear regression to find lines of best fit. To distinguish.
Unit 4 LSRL.
LSRL.
Least Squares Regression Line.
Chapter 5 LSRL.
LSRL Least Squares Regression Line
Chapter 3.2 LSRL.
Residuals From the Carnegie Foundation math.mtsac.edu/statway/lesson_3.3.1_version1.5A.
Linear Trends and Correlations
CHAPTER 10 Correlation and Regression (Objectives)
2.5 Correlation and Best-Fitting Lines
2. Find the equation of line of regression
2-7 Curve Fitting with Linear Models Holt Algebra 2.
2.6 Draw Scatter Plots and Best-Fitting Lines
Describing Bivariate Relationships
Lesson 5.3 How do you write linear equations in point-slope form?
Least Squares Regression Line LSRL Chapter 7-continued
^ y = a + bx Stats Chapter 5 - Least Squares Regression
CHAPTER 3 Describing Relationships
The Weather Turbulence
Linear Models and Equations
Investigation 4 Students will be able to identify correlations in data and calculate and interpret standard deviation.
Residuals and Residual Plots
1.7 Nonlinear Regression.
Correlation and Regression
Section 1.4 Curve Fitting with Linear Models
Chapter 5 LSRL.
Chapter 5 LSRL.
Chapter 5 LSRL.
Correlation and Regression
Correlation.
7.1 Draw Scatter Plots & Best-Fitting Lines
y = mx + b Linear Regression line of best fit REMEMBER:
Residuals From the Carnegie Foundation math.mtsac.edu/statway/lesson_3.3.1_version1.5A.
Line of Best Fit Objective: Students will be able to draw in, find the equation of and apply the line of best fit to predict future outcomes.
Ch 4.1 & 4.2 Two dimensions concept
Unit 2 Quantitative Interpretation of Correlation
Lesson – How can I measure my linear fit? - Correlations
A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret.
7.1 Draw Scatter Plots and Best Fitting Lines
Ch 9.
9/27/ A Least-Squares Regression.
Draw Scatter Plots and Best-Fitting Lines
Monday, March 10th Warm Up To find the residual you take the ACTUAL data and ______________ the PREDICTED data. If the residual plot creates a pattern.
Regression and Correlation of Data
Residuals From the Carnegie Foundation math.mtsac.edu/statway/lesson_3.3.1_version1.5A.
Presentation transcript:

Residuals (resids)

Residuals are.. A residual is just the difference of the actual value of the response (dependent variable) minus the expected value or the y-hat ( 𝑦 ) value. A plot of the residuals from a strong relationship should look totally random. We can calculate the standard deviation of the residuals using the formula 𝑠 𝑟𝑒𝑠𝑖𝑑𝑠 = 𝑦− 𝑦 2 𝑛−2

For homework, you should have calculated “r” (correlation coefficient) for the following data x y 1 10 2 8 3 12 4 16 5 20

Please verify your calculations

Calculate the regression line using the previous data 𝑏=𝑟 𝑠 𝑦 𝑠 𝑥 = .92∗ 4.817 1.58 =2.8 (or the slope is 2.8. Note, .92 is a strong r). 𝑎 𝑦_𝑖𝑛𝑡𝑒𝑟𝑐𝑒𝑝𝑡 = 𝑦 −𝑏 𝑥 =13.2−2.8∗3=4.8 So our regression line is 𝑦 =4.8+2.8𝑥

Calculate the resids for the previous Data and the regression equation 𝑦 =4.8+2.8𝑥

analysis The residual plot is not as good as we would like to see. Ideally, The pattern would be more random (as if this were a target shot with a shot gun). With this plot, there is more positive (4.8 more), residual value then negative. We will look at other ways to find a better fit shortly!