Presentation is loading. Please wait.

Presentation is loading. Please wait.

Correlations and scatterplots -- Optical illusion ? -- Finding the marginal distributions in the scatterplots (shoe size vs. hours of TV) Regressions --

Similar presentations


Presentation on theme: "Correlations and scatterplots -- Optical illusion ? -- Finding the marginal distributions in the scatterplots (shoe size vs. hours of TV) Regressions --"— Presentation transcript:

1 Correlations and scatterplots -- Optical illusion ? -- Finding the marginal distributions in the scatterplots (shoe size vs. hours of TV) Regressions -- Any model has predicted values and residuals. (Do we always want a model with small residuals ? ) -- The “regression effect” (Why did Galton call these things “regressions” ? ) -- Pitfalls: Outliers -- Pitfalls: Extrapolation -- Conditions for a good regression

2 Which looks like a stronger relationship?

3 Optical Illusion ?

4 correlation =.97 correlation =.71

5 Shoe size vs. hours of TV…

6 Linear models and non-linear models Model A:Model B: y = a + bx + error y = a x 1/2 + error Model B has smaller errors. Is it a better model?

7 aa opas asl poasie ;aaslkf 4-9043578 y = 453209)_(*_n &*^(*LKH l;j;)(*&)(*& + error This model has even smaller errors. In fact, zero errors. Tradeoff: Small errors vs. complexity. (We’ll only consider linear models.)

8 The “Regression” Effect A preschool program attempts to boost children’s reading scores. Children are given a pre-test and a post-test. Pre-test: mean score ≈ 100, SD ≈ 10 Post-test:mean score ≈ 100, SD ≈ 10 The program seems to have no effect.

9 A closer look at the data shows a surprising result: Children who were below average on the pre-test tended to gain about 5-10 points on the post-test Children who were above average on the pre-test tended to lose about 5-10 points on the post-test.

10 A closer look at the data shows a surprising result: Children who were below average on the pre-test tended to gain about 5-10 points on the post-test Children who were above average on the pre-test tended to lose about 5-10 points on the post-test. Maybe we should provide the program only for children whose pre-test scores are below average?

11 Fact: In most test–retest and analogous situations, the bottom group on the first test will on average tend to improve, while the top group on the first test will on average tend to do worse. Other examples: Students who score high on the midterm tend on average to score high on the final, but not as high. An athlete who has a good rookie year tends to slump in his or her second year. (“Sophomore jinx”, "Sports Illustrated Jinx") Tall fathers tend to have sons who are tall, but not as tall. (Galton’s original example!)

12

13

14

15 It works the other way, too: Students who score high on the final tend to have scored high on the midterm, but not as high. Tall sons tend to have fathers who are tall, but not as tall. Students who did well on the post-test showed improvements, on average, of 5-10 points, while students who did poorly on the post-test dropped an average of 5-10 points.

16 Students can do well on the pretest… -- because they are good readers, or -- because they get lucky. The good readers, on average, do exactly as well on the post-test. The lucky group, on average, score lower. Students can get unlucky, too, but fewer of that group are among the high-scorers on the pre-test. So the top group on the pre-test, on average, tends to score a little lower on the post-test.

17 Outliers http://www.whfreeman.com/scc/con_index.htm?99spt (W. H. Freeman, publishers)

18 Extrapolation Interpolation: Using a model to estimate Y for an X value within the range on which the model was based. Extrapolation: Estimating based on an X value outside the range.

19 Extrapolation Interpolation: Using a model to estimate Y for an X value within the range on which the model was based. Extrapolation: Estimating based on an X value outside the range. Interpolation Good, Extrapolation Bad.

20 Nixon’s Graph: Economic Growth

21 Start of Nixon Adm.

22 Nixon’s Graph: Economic Growth Now Start of Nixon Adm.

23 Nixon’s Graph: Economic Growth Now Start of Nixon Adm. Projectio n

24 Conditions for regression “Straight enough” condition (linearity) Errors are mostly independent of X Errors are mostly independent of anything else you can think of Errors are more-or-less normally distributed

25 How to test the quality of a regression— Plot the residuals. Pattern bad, no pattern good R 2 How sure are you of the coefficients ?

26 55.6854.7455.7386.89

27 Computing correlation… 1.Replace each variable with its standardized version. 2.Take an “average” of ( x i ’ times y i ’ ):


Download ppt "Correlations and scatterplots -- Optical illusion ? -- Finding the marginal distributions in the scatterplots (shoe size vs. hours of TV) Regressions --"

Similar presentations


Ads by Google