1 / 23

2.4 Cautions about Correlation and Regression

2.4 Cautions about Correlation and Regression. Residuals (again!). Recall our discussion about residuals- what is a residual? The idea for line of best fit was to “minimize” the residuals. While this can always be done, when is the line of best fit a good fit (as opposed to some curve)? .

kanan
Télécharger la présentation

2.4 Cautions about Correlation and Regression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 2.4 Cautions about Correlation and Regression

  2. Residuals (again!) Recall our discussion about residuals- what is a residual? The idea for line of best fit was to “minimize” the residuals. While this can always be done, when is the line of best fit a good fit (as opposed to some curve)?

  3. Residual Plots As we hinted at in 2.3, the mean of the least squares residuals is always 0. This leads to the idea of a residual plot; that is, a scatterplot of the residuals against the explanatory variable. Residual plots help us assess the fit of a regression line.

  4. We began Section 2.2 with the graph What does the residual plot look like?

  5. No overall pattern means line is a good fit.

  6. We also looked at this graph in section 2.3 • Looks great!

  7. But look at residual plot. • Seems to be a pattern at first.

  8. Consider the following data: • Line of best fit is y = 8.71 - 0.499 x. • (2, 20) and (20,2) seem problematic.

  9. Line of best fit is y = 5.51 - 0.256x

  10. Line of best fit is y= 11.2 - 1.10 x

  11. All data Without (20,2) Without (2,20)

  12. What was the point of all that? Eliminating a value which has a large deviation in y made for the best residual plot, and it didn’t change the least squares regression much. Eliminating a value which has a large deviation in x considerably changed the least squares regression line. An observation is influential for a calculation if removing it would drastically change the result of the calculation. Usually an extreme outlier in the x direction is considered influential but not an extreme outlier in the y direction. This leads to the truth that while correlation can imply causation, it does not necessarily.

  13. Lurking Variable When we consider ice cream sales and drowning deaths these variables, they will show a positive and potentially statistically significant correlation. Certainly there is no causal relationship here, despite what the data implies. There is a third variable that is “lurking” behind all of this; namely summertime. A lurking variable is a variable that is not among the explanatory or response variables in a study and still may yet influence the interpretation of relationships among those variables.

  14. 2.5 Data Analysis for Two-Way Tables

  15. Categorical Data Scatter plots are good for quantitative data, but what if we have categorical data? For example, suppose are interested in comparing the number of people in different kinds of colleges according to gender. We use a two-way table to present the data.

  16. Easy to read off data. Could have included a “total” row. • This two-way table gives the actual numbers. Perhaps percentages would be more helpful. The following is a joint distribution.

  17. This is a joint distribution. It is obtained by dividing the cell entry by the total sample size. Notice that the sum of all the values should be 1 (sometimes there is slight round-off error). • If we are interested in the percentage of each variable, we use a marginal distribution.

  18. This is a marginal distribution. The marginal distribution in gender is given in the bottom row, and the marginal distribution in status is given in the rightmost column. • Now a bar graph can help display the data. We’ll graph status of those in college.

  19. This is a conditional distribution in status since we are fixing a status. We could have also looked at a conditional distribution in gender.

  20. Simpson’s Paradox • Simpson’s paradox occurs when the success of a group seems reversed when the groups are combined. • Let’s look at an example.

  21. Simpson’s Paradox cont. • Justice had a better batting average in 1995 and 1996 than Jeter, but Jeter had a better combined batting average than Justice. • Why? Consider the following made-up table of batting averages.

  22. Simpson’s Paradox cont. Notice that the paradox can be attributed to the fact that Jeter’s number of at-bats in 1996 dominates.

More Related