Chapter 7. Scatterplots, Association, and Correlation. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Similar documents
Lecture 11: Chapter 5, Section 3 Relationships between Two Quantitative Variables; Correlation

Chapter 10. Key Ideas Correlation, Correlation Coefficient (r),

Relationships Between Two Variables: Scatterplots and Correlation

Homework 8 Solutions

Describing Relationships between Two Variables

Correlation Coefficient The correlation coefficient is a summary statistic that describes the linear relationship between two numerical variables 2

Chapter 7: Simple linear regression Learning Objectives

Lecture 13/Chapter 10 Relationships between Measurement (Quantitative) Variables

Section 14 Simple Linear Regression: Introduction to Least Squares Regression

Section 3 Part 1. Relationships between two numerical variables

Father s height (inches)

We are often interested in the relationship between two variables. Do people with more years of full-time education earn higher salaries?

Homework 11. Part 1. Name: Score: / null

Preview. What is a correlation? Las Cucarachas. Equal Footing. z Distributions 2/12/2013. Correlation

Descriptive statistics; Correlation and regression

Chapter 7 Scatterplots, Association, and Correlation

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Diagrams and Graphs of Statistical Data


The Effect of Dropping a Ball from Different Heights on the Number of Times the Ball Bounces

The correlation coefficient

Correlational Research. Correlational Research. Stephen E. Brock, Ph.D., NCSP EDS 250. Descriptive Research 1. Correlational Research: Scatter Plots

Transforming Bivariate Data

Linear Regression. Chapter 5. Prediction via Regression Line Number of new birds and Percent returning. Least Squares

Unit 9 Describing Relationships in Scatter Plots and Line Graphs

Exploring Relationships Between Variables

PLOTTING DATA AND INTERPRETING GRAPHS

Simple Predictive Analytics Curtis Seare

COMP6053 lecture: Relationship between two variables: correlation, covariance and r-squared.

Chapter 9 Descriptive Statistics for Bivariate Data

Session 7 Bivariate Data and Analysis

Statistics. Measurement. Scales of Measurement 7/18/2012

Descriptive Statistics

Summarizing and Displaying Categorical Data

Simple linear regression

Correlation key concepts:

Lesson 4 Measures of Central Tendency

Linear functions Increasing Linear Functions. Decreasing Linear Functions

AP * Statistics Review. Descriptive Statistics

DESCRIPTIVE STATISTICS. The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses.

CORRELATIONAL ANALYSIS: PEARSON S r Purpose of correlational analysis The purpose of performing a correlational analysis: To discover whether there

The Correlation Coefficient

Correlation. What Is Correlation? Perfect Correlation. Perfect Correlation. Greg C Elvers

Updates to Graphing with Excel

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

Simple Regression Theory II 2010 Samuel L. Baker

CORRELATION ANALYSIS

Elasticity. I. What is Elasticity?

Name Partners Date. Energy Diagrams I

Statistics 2014 Scoring Guidelines

Introduction to Quantitative Methods

Module 3: Correlation and Covariance

Quantitative vs. Categorical Data: A Difference Worth Knowing Stephen Few April 2005

Univariate Regression

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

Exercise 1.12 (Pg )

Linear Models in STATA and ANOVA

The Dummy s Guide to Data Analysis Using SPSS

2. Simple Linear Regression

Center: Finding the Median. Median. Spread: Home on the Range. Center: Finding the Median (cont.)

The KaleidaGraph Guide to Curve Fitting

Vieta s Formulas and the Identity Theorem

FREE FALL. Introduction. Reference Young and Freedman, University Physics, 12 th Edition: Chapter 2, section 2.5

SPSS Explore procedure

Introduction to Regression and Data Analysis

Jitter Measurements in Serial Data Signals

Descriptive Statistics and Measurement Scales

Describing, Exploring, and Comparing Data

Means, standard deviations and. and standard errors

Projects Involving Statistics (& SPSS)

Chapter 1 Introduction to Correlation

1 Shapes of Cubic Functions

Physics Lab Report Guidelines

The Big Picture. Correlation. Scatter Plots. Data

A full analysis example Multiple correlations Partial correlations

Scatter Plot, Correlation, and Regression on the TI-83/84

with functions, expressions and equations which follow in units 3 and 4.

Covariance and Correlation

One basic concept in math is that if we multiply a number by 1, the result is equal to the original number. For example,

AP Statistics Ch 3 Aim 1: Scatter Diagrams

Curve Fitting, Loglog Plots, and Semilog Plots 1

STAT 350 Practice Final Exam Solution (Spring 2015)

Ideal Cable. Linear Spring - 1. Cables, Springs and Pulleys

Answer: C. The strength of a correlation does not change if units change by a linear transformation such as: Fahrenheit = 32 + (5/9) * Centigrade

Statistical tests for SPSS

Analysing Questionnaires using Minitab (for SPSS queries contact -)

Week 4: Standard Error and Confidence Intervals

Chapter 4 Online Appendix: The Mathematics of Utility Functions

AP STATISTICS REVIEW (YMS Chapters 1-8)

The Circumference Function

Introduction to nonparametric regression: Least squares vs. Nearest neighbors

What really drives customer satisfaction during the insurance claims process?

Fairfield Public Schools

Best Practices. Create a Better VoC Report. Three Data Visualization Techniques to Get Your Reports Noticed

CURVE FITTING LEAST SQUARES APPROXIMATION

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

CALCULATIONS & STATISTICS

Hedge Effectiveness Testing

Get to Know Golf! John Dunigan

Lesson 26: Reflection & Mirror Diagrams

Transcription:

Chapter 7 Scatterplots, Association, and Correlation Copyright 2012, 2008, 2005 Pearson Education, Inc.

Looking at Scatterplots Scatterplots may be the most common and most effective display for data. In a scatterplot, you can see patterns, trends, relationships, and even the occasional extraordinary value sitting apart from the others. Scatterplots are the best way to start observing the relationship and the ideal way to picture associations between two quantitative variables. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-3

Looking at Scatterplots (cont.) When looking at scatterplots, we will look for direction, form, strength, and unusual features. 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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-4

Looking at Scatterplots (cont.) Can the NOAA predict where a hurricane will go? 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). Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-5

Looking at Scatterplots (cont.) 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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-6

Looking at Scatterplots (cont.) 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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-7

Looking at Scatterplots (cont.) Form: If the relationship isn t straight, but curves gently, while still increasing or decreasing steadily, we can often find ways to make it more nearly straight. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-8

Looking at Scatterplots (cont.) Form: If the relationship curves sharply, the methods of this book cannot really help us. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-9

Looking at Scatterplots (cont.) Strength: At one extreme, the points appear to follow a single stream (whether straight, curved, or bending all over the place). Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-10

Looking at Scatterplots (cont.) Strength: At the other extreme, the points appear as a vague cloud with no discernable trend or pattern: Note: we will quantify the amount of scatter soon. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-11

Looking at Scatterplots (cont.) Unusual features: Look for the unexpected. Often the most interesting thing to see in a scatterplot is 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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-12

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 (variable of interest) goes on the y-axis. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-13

Roles for Variables (cont.) 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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-14

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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-15

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: Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-16

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 (z x, z y ). Here is a scatterplot of the standardized weights and heights: Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-17

Correlation (cont.) Note that the underlying linear pattern seems steeper in the standardized plot than in the original scatterplot. That s because we made the scales of the axes the same. Equal scaling gives a neutral way of drawing the scatterplot and a fairer impression of the strength of the association. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-18

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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-19

Correlation (cont.) The correlation coefficient (r) gives us a numerical measurement of the strength of the linear relationship between the explanatory and response variables. r z x z y n 1 Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-20

Correlation (cont.) For the students heights and weights, the correlation is 0.644. What does this mean in terms of strength? We ll address this shortly. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-21

Correlation Conditions Correlation measures the strength of the linear association between two quantitative variables. Before you use correlation, you must check several conditions: Quantitative Variables Condition Straight Enough Condition Outlier Condition Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-22

Correlation Conditions (cont.) Quantitative Variables Condition: Correlation applies only to quantitative variables. Don t apply correlation to categorical data masquerading as quantitative. Check that you know the variables units and what they measure. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-23

Correlation Conditions (cont.) Straight Enough Condition: You can calculate a correlation coefficient for any pair of variables. But correlation measures the strength only of the linear association, and will be misleading if the relationship is not linear. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-24

Correlation Conditions (cont.) Outlier Condition: Outliers can distort the correlation dramatically. An outlier can make an otherwise small correlation look big or hide a large correlation. It can even give an otherwise positive association a negative correlation coefficient (and vice versa). When you see an outlier, it s often a good idea to report the correlations with and without the point. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-25

Correlation Properties The sign of a correlation coefficient gives the direction of the association. Correlation is always between 1 and +1. Correlation can be exactly equal to 1 or +1, but these values are unusual in real data because they mean that all the data points fall exactly on a single straight line. A correlation near zero corresponds to a weak linear association. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-26

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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-27

Correlation Properties (cont.) 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. Correlation is sensitive to outliers. A single outlying value can make a small correlation large or make a large one small. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-28

Correlation Causation Whenever we have a strong correlation, it is tempting to explain it by imagining that the predictor variable has caused the response 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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-29

Correlation Tables It is common in some fields to compute the correlations between each pair of variables in a collection of variables and arrange these correlations in a table. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-30

Straightening Scatterplots Straight line relationships are the ones that we can measure with correlation. When a scatterplot shows a bent form that consistently increases or decreases, we can often straighten the form of the plot by re-expressing one or both variables. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-31

Straightening Scatterplots (cont.) A scatterplot of f/stop vs. shutter speed shows a bent relationship: Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-32

Straightening Scatterplots (cont.) Re-expressing f/stop vs. shutter speed by squaring the f/stop values straightens the relationship: Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-33

What Can Go Wrong? Don t say correlation when you mean association. More often than not, people say correlation when they mean association. The word correlation should be reserved for measuring the strength and direction of the linear relationship between two quantitative variables. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-34

What Can Go Wrong? Don t correlate categorical variables. Be sure to check the Quantitative Variables Condition. Don t confuse correlation with causation. Scatterplots and correlations never demonstrate causation. These statistical tools can only demonstrate an association between variables. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-35

What Can Go Wrong? (cont.) Be sure the association is linear. There may be a strong association between two variables that have a nonlinear association. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-36

What Can Go Wrong? (cont.) Don t assume the relationship is linear just because the correlation coefficient is high. Here the correlation is 0.979, but the relationship is actually bent. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-37

What Can Go Wrong? (cont.) Beware of outliers. Even a single outlier can dominate the correlation value. Make sure to check the Outlier Condition. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-38

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. Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-39

What have we learned? (cont.) Doing Statistics right means that we have to Think about whether our choice of methods is appropriate. Before finding or talking about a correlation, check the Straight Enough Condition. Watch out for outliers! Don t assume that a high correlation or strong association is evidence of a cause-and-effect relationship beware of lurking variables! Copyright 2012, 2008, 2005 Pearson Education, Inc. Slide 7-40