Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 5 Residuals, Residual Plots, Coefficient of determination, & Influential points.

Similar presentations


Presentation on theme: "Chapter 5 Residuals, Residual Plots, Coefficient of determination, & Influential points."— Presentation transcript:

1 Chapter 5 Residuals, Residual Plots, Coefficient of determination, & Influential points

2 Residuals (error) - The vertical deviation between the observations & the LSRL always zerothe sum of the residuals from the LSRL is always zero error = observed - expected

3 Residual plot A scatterplot of the (x, residual) pairs. Residuals can be graphed against other statistics besides x linear associationPurpose is to tell if a linear association exist between the x & y variables

4 Consider a population of adult women. Let’s examine the relationship between their height and weight. Height Weight 606468

5 Suppose we now take a random sample from our population of women. Height Weight 606468 Residuals

6 Residual plot A scatterplot of the (x, residual) pairs. Residuals can be graphed against other statistics besides x linear associationPurpose is to tell if a linear association exist between the x & y variables no pattern linearIf no pattern exists between the points in the residual plot, then the association is linear.

7 Linear Not linear

8 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 One measure of the success of knee surgery is post-surgical range of motion for the knee joint following a knee dislocation. Is there a linear relationship between age & range of motion? Predicted range of motion = 107.58 +.87(age) Graph the data and find the LSRL:

9 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 Predicted range of motion = 107.58 +.87(age) Find the predicted y’s: Find the residuals:

10 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 One measure of the success of knee surgery is post-surgical range of motion for the knee joint following a knee dislocation. Is there a linear relationship between age & range of motion? Sketch a residual plot. Since there is no pattern in the residual plot, there is a linear relationship between age and range of motion x Residuals

11 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 Plot the residuals against the y- hats. How does this residual plot compare to the previous one? Residuals

12 Residual plots are the same no matter if plotted against x or y-hat. x Residuals

13 Coefficient of determination- r 2 variationygives the approximate proportion of variation in y that can be attributed to a linear relationship between x & y remains the same no matter which variable is labeled x

14 Interpretation of r 2 r 2 % y xy Approximately r 2 % of the variation in y can be explained by the LSRL of x & y.

15 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 How well does age predict the range of motion after knee surgery? Approximately 30.6% of the variation in range of motion after knee surgery can be explained by the linear regression of age and range of motion.

16 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 Let’s examine r 2. Suppose you were going to predict a future y but you didn’t know the x-value. Your best guess would be the overall mean of the existing y’s. SS y = 1564.917 Sum of the squared residuals (errors) using the mean of y.

17 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 Now suppose you were going to predict a future y but you DO know the x-value. Your best guess would be the point on the LSRL for that x-value (y-hat). Sum of the squared residuals (errors) using the LSRL. SS y = 1085.735

18 AgeRange of Motion 35154 24142 40137 31133 28122 25126 26135 16135 14108 20120 21127 30122 By what percent did the sum of the squared error go down when you went from just an “overall mean” model to the “regression on x” model? SS y = 1085.735 SS y = 1564.917 This is r 2 – the amount of the variation in the y-values that is explained by the x-values.

19 Computer-generated regression analysis of knee surgery data: PredictorCoefStdevTP Constant107.5811.129.670.000 Age0.87100.41462.100.062 s = 10.42R-sq = 30.6%R-sq(adj) = 23.7% What is the equation of the LSRL? Find the slope & y-intercept. NEVER use adjusted r 2 ! before Be sure to convert r 2 to decimal before taking the square root! What are the correlation coefficient and the coefficient of determination?

20 Outlier – largeIn a regression setting, an outlier is a data point with a large residual

21 Influential point- A point that influences where the LSRL is located If removed, it will significantly change the slope of the LSRL Usually small residual (or 0)

22 RacketResonance Acceleration (Hz) (m/sec/sec) 110536.0 210635.0 311034.5 411136.8 511237.0 611334.0 711334.2 811433.8 911435.0 1011935.0 1112033.6 1212134.2 1312636.2 1418930.0 One factor in the development of tennis elbow is the impact-induced vibration of the racket and arm at ball contact. Sketch a scatterplot of these data. Calculate the LSRL & correlation coefficient. Does there appear to be an influential point? If so, remove it and then calculate the new LSRL & correlation coefficient.

23 (189,30) could be influential. Remove & recalculate LSRL Predicted acceleration = 42.37 -.06(resonance) r = -.775r 2 = 60.1%

24 (189,30) was influential since it moved the LSRL Predicted acceleration = 38.81 -.033(resonance) r = -.174r 2 = 3%

25 Which of these measures are resistant? LSRL Correlation coefficient Coefficient of determination NONE NONE – all are affected by outliers

26 YearTuition 2002$4228 2003$4768 2004$5179 2005$5495 2006$5808 2007$6038 2008$6299 2009$6459 Find the correlation coefficient and describe the relationship. r =.9861 There is a strong, positive, linear relationship between tuition and year at the UofA. Find the LSRL: Predicted tuition = 3821.26 + 311.45(year) Interpret the slope. For each 1 year increase, UA tuition goes up by an average of $311.45. Find the coefficient of determination. Interpret in context of problem. r 2 = 97.2% 97.2% of the variation in tuition can be explained by the linear relationship between tuition and year at the UofA.

27 YearTuition 2002$4228 2003$4768 2004$5179 2005$5495 2006$5808 2007$6038 2008$6299 2009$6459 Make a residual plot of (x, residuals) and (, residuals). Sketch and compare. x Linear not best model. Definite curved pattern in residual plot!


Download ppt "Chapter 5 Residuals, Residual Plots, Coefficient of determination, & Influential points."

Similar presentations


Ads by Google