1 / 25

Chapter 7

Chapter 7. Scatterplots , Association, and Correlation . 60 min. Associations. Associations between two quantitative variables can be explored using scatterplots . Ex: Study time v.s test scores. Scatterplots. Scatterplots may be the most common and most effective display for data.

kolina
Télécharger la présentation

Chapter 7

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. Chapter 7 Scatterplots, Association, and Correlation 60 min

  2. Associations • Associationsbetween two quantitativevariables can be explored using scatterplots. • Ex: Study time v.s test scores

  3. Scatterplots • Scatterplots may be the most common and most effective display for data. • Scatterplots are the best way to start observing the relationship and the ideal way to picture associations between two quantitative variables. • When looking at scatterplots, we will look for direction,form, strength, and unusualfeatures.

  4. Direction • A pattern that runs from the upper left to the lower right is said to have a negative direction. • A trend running the other way has a positive direction. • The figure shows a negative direction between the year since 1970 and the and the prediction errors made by NOAA. • As the years have passed, the predictions have improved (errors have decreased).

  5. Direction • The example in the text shows a negative association between central pressure and maximum wind speed • As the central pressure increases, the maximum wind speed decreases.

  6. Form • If there is a straight line (linear) relationship, it will appear as a cloud or swarm of points stretched out in a generally consistent, straight form.

  7. Example • What is the coldest temperature? • -273.150 ( 0 in Kelvin scale, the so-called absolute zero) • How do scientists determine that it cannot be colder than 0 K? The volume of hydrogen gas depends on its temperature:

  8. Form • The relationship is straight? curved gently? Increasing then decreasing? No pattern?

  9. Strength • How strong is the relationship? • Note: we will quantify the amount of scatter soon.

  10. Unusual features • Look for the unexpected: Oftentimes the most interesting thing to see in a scatterplotis the thing you never thought to look for. • One example of such a surprise is an outlier standing away from the overall pattern of the scatterplot. • Clusters or subgroups should also raise questions.

  11. Roles for Variables • It is important to determine which of the two quantitative variables goes on the x-axis and which on the y-axis. This determination is made based on the roles played by the variables. • When the roles are clear, the explanatory or predictor variable goes on the x-axis, and the response variable goes on the y-axis. • Example 1: Price versus Demand of a product • Example 2: A study confirm that people who use artificial sweeteners in place of sugar tend to be heavier than people who use sugar. Does this mean that artificial sweeteners cause weight gain?

  12. Roles for variables • The roles that we choose for variables are more about how we think about them rather than about the variables themselves. • Just placing a variable on the x-axis doesn’t necessarily mean that it explains or predicts anything. And the variable on the y-axis may not respond to it in any way.

  13. Correlation • Data collected from students in Statistics classes included their heights (in inches) and weights (in pounds): • Here we see a positive association and a fairly straight form, although there seems to be a high outlier.

  14. Correlation (cont.) • How strong is the association between weight and height of Statistics students? • If we had to put a number on the strength, we would not want it to depend on the units we used. • A scatterplot of heights (in centimeters) and weights (in kilograms) doesn’t change the shape of the pattern:

  15. Correlation (cont.) • Since the units don’t matter, why not remove them altogether? • We could standardize both variables and write the coordinates of a point as (zx, zy). • Here is a scatterplot of the standardized weights and heights:

  16. Correlation (cont.) • Some points (those in green) strengthen the impression of a positive association between height and weight. • Other points (those in red) tend to weaken the positive association. • Points with z-scores of zero (those in blue) don’t vote either way.

  17. The correlation coefficient (r) gives us a numerical measurement of the strength of the linear relationship between the explanatory and response variables. For the students’ heights and weights, the correlation is 0.644. What does this mean in terms of strength? We’ll address this shortly. Correlation Coefficient

  18. Correlation Properties • Correlation measures the strength of the linear association between the two variables. • Variables can have a strong association but still have a small correlation if the association isn’t linear. • The sign of a correlation coefficientr gives the direction of the association. • Correlation coefficient r is always between -1 and +1. • A correlation near 1 or -1 corresponds to a very strong linear association. • A correlation near zero corresponds to a weak (or almost no) linear association.

  19. Correlation Properties (cont.) • Correlation treats x and y symmetrically: • The correlation of x with y is the same as the correlation of y with x. • Correlation has no units. • Correlation is not affected by changes in the center or scale of either variable. • Correlation depends only on the z-scores, and they are unaffected by changes in center or scale. • Correlation is sensitive to outliers. A single outlying value can make a small correlation large or make a large one small.

  20. Example: Lying Children will grow up to be successful citizens. • Researchers have recently found that kids who lie may have more success ahead. “Don’t tell a lie” is one of the first lessons parents try to teach their kids, but a new study finds children who lie may end up doing better as adults. A study at Toronto University of more than 1000 children ages 2 to 17 found the ability….(May 21, 2010) Should we encourage our kids to lie?

  21. Correlation ≠ Causation • Whenever we have a strong correlation, it is tempting to explain it by imagining that the predictor variable has caused the response variable to help. • Scatterplots and correlation coefficients never prove causation. • A hidden variable that stands behind a relationship and determines it by simultaneously affecting the other two variables is called a lurking variable.

  22. What Can Go Wrong? • Don’t confuse “correlation” with “causation.” • Scatterplots and correlations never demonstrate causation. These statistical tools can only demonstrate an association between variables. • Don’t correlate categorical variables. • Be sure the association is linear. • There may be a strong association between two variables that have a nonlinear association.

  23. What have we learned? • We examine scatterplots for direction, form, strength, and unusual features. • Although not every relationship is linear, when the scatterplot is straight enough, the correlation coefficient is a useful numerical summary. • The sign of the correlation tells us the direction of the association. • The magnitude of the correlation tells us the strength of a linear association. • Correlation has no units, so shifting or scaling the data, standardizing, or swapping the variables has no effect on the numerical value.

  24. Homework Assignment Page 186 – 193 Problem # 3, 5, 7, 11, 13, 17, 25, 29, 33, 35.

More Related