Chapter 6. September 17, Please pick up a calculator and take out paper and something to write with. Association and Correlation.

Similar documents
Chapter 7. Scatterplots, Association, and Correlation. Copyright 2010 Pearson Education, Inc.

Chapter 7 Summary Scatterplots, Association, and Correlation

AP Statistics. Chapter 6 Scatterplots, Association, and Correlation

STA Module 5 Regression and Correlation. Learning Objectives. Learning Objectives (Cont.) Upon completing this module, you should be able to:

Announcement. Student Opinion of Courses and Teaching (SOCT) forms will be available for you during the dates indicated:

Chapter 8. Linear Regression. The Linear Model. Fat Versus Protein: An Example. The Linear Model (cont.) Residuals

Chapter 8. Linear Regression. Copyright 2010 Pearson Education, Inc.

appstats8.notebook October 11, 2016

1. Create a scatterplot of this data. 2. Find the correlation coefficient.

3.1 Scatterplots and Correlation

AP Statistics S C A T T E R P L O T S, A S S O C I A T I O N, A N D C O R R E L A T I O N C H A P 6

Linear Regression. Linear Regression. Linear Regression. Did You Mean Association Or Correlation?

Chapter 18. Sampling Distribution Models. Copyright 2010, 2007, 2004 Pearson Education, Inc.

appstats27.notebook April 06, 2017

STA Why Sampling? Module 6 The Sampling Distributions. Module Objectives

CHAPTER 3 Describing Relationships

Chapter 27 Summary Inferences for Regression

Chapter 15. Probability Rules! Copyright 2012, 2008, 2005 Pearson Education, Inc.

If the roles of the variable are not clear, then which variable is placed on which axis is not important.

Chapter 6 The Standard Deviation as a Ruler and the Normal Model

Chapter 8. Linear Regression /71

Information Sources. Class webpage (also linked to my.ucdavis page for the class):

Warm-up Using the given data Create a scatterplot Find the regression line

Unit 6 - Introduction to linear regression

AP STATISTICS Name: Period: Review Unit IV Scatterplots & Regressions

Big Data Analysis with Apache Spark UC#BERKELEY

Looking at Data Relationships. 2.1 Scatterplots W. H. Freeman and Company

Chapter 1 Review of Equations and Inequalities

Chapter 6 Scatterplots, Association and Correlation

Relationships between variables. Association Examples: Smoking is associated with heart disease. Weight is associated with height.

Describing Bivariate Relationships

Chapter 3: Examining Relationships

Correlation: basic properties.

Chapter 19 Sir Migo Mendoza

Chapter 10 Correlation and Regression

AP Statistics L I N E A R R E G R E S S I O N C H A P 7

Lecture PowerPoints. Chapter 4 Physics: Principles with Applications, 6 th edition Giancoli

Objectives. 2.1 Scatterplots. Scatterplots Explanatory and response variables. Interpreting scatterplots Outliers

5.1 Bivariate Relationships

Correlation and regression

Chapter 7. Scatterplots, Association, and Correlation. Scatterplots & Correlation. Scatterplots & Correlation. Stat correlation

Unit 6 - Simple linear regression

AP Stats ~ 3A: Scatterplots and Correlation OBJECTIVES:

The following are generally referred to as the laws or rules of exponents. x a x b = x a+b (5.1) 1 x b a (5.2) (x a ) b = x ab (5.

Lecture PowerPoints. Chapter 4 Physics: for Scientists & Engineers, with Modern Physics, 4th edition Giancoli

Lecture PowerPoints. Chapter 4 Physics: Principles with Applications, 7 th edition Giancoli

PS2: Two Variable Statistics

Lecture 4 Scatterplots, Association, and Correlation

Lecture 4 Scatterplots, Association, and Correlation

STAB22 Statistics I. Lecture 7

Scatterplots. 3.1: Scatterplots & Correlation. Scatterplots. Explanatory & Response Variables. Section 3.1 Scatterplots and Correlation

Stat 20 Midterm 1 Review

Math 147 Lecture Notes: Lecture 12

Analyzing Bivariate Data: Interval/Ratio. Today s Content

AP Statistics Two-Variable Data Analysis

The following formulas related to this topic are provided on the formula sheet:

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Chapter 4 Data with Two Variables

MA 1125 Lecture 15 - The Standard Normal Distribution. Friday, October 6, Objectives: Introduce the standard normal distribution and table.

Nov 13 AP STAT. 1. Check/rev HW 2. Review/recap of notes 3. HW: pg #5,7,8,9,11 and read/notes pg smartboad notes ch 3.

Friday, September 21, 2018

Chapter 4 Data with Two Variables

SCATTERPLOTS. We can talk about the correlation or relationship or association between two variables and mean the same thing.

Chapter 3: Examining Relationships

WSMA Algebra - Expressions Lesson 14

Chapter 5 Least Squares Regression

Chapter 7 Linear Regression

Chapter 24. Comparing Means. Copyright 2010 Pearson Education, Inc.

Lecture 3. The Population Variance. The population variance, denoted σ 2, is the sum. of the squared deviations about the population

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Probability Distributions

AP Statistics. Chapter 9 Re-Expressing data: Get it Straight

Conditions for Regression Inference:

Objectives. 2.1 Scatterplots. Scatterplots Explanatory and response variables Interpreting scatterplots Outliers

Chapter 7. Scatterplots, Association, and Correlation

University of Maryland Department of Physics. Spring 2009 Final Exam 20. May (175 points) Post grades on web? (Initial, please) Yes No

PS2.1 & 2.2: Linear Correlations PS2: Bivariate Statistics

Relationships Regression

Performance of fourth-grade students on an agility test

Recall, Positive/Negative Association:

Chapter 5 Friday, May 21st

Rainfall, Part IV. Rain does not normally accumulate above this level

Important note: Transcripts are not substitutes for textbook assignments. 1

BIVARIATE DATA data for two variables

Section 20: Arrow Diagrams on the Integers

Reference Guide. Science Reference 9/25/ Copyright 1996 Gary Lewis Revisions 2007 by John Pratte

Objectives. 2.3 Least-squares regression. Regression lines. Prediction and Extrapolation. Correlation and r 2. Transforming relationships

1 Least Squares Estimation - multiple regression.

Correlation. January 11, 2018

STA Module 8 The Sampling Distribution of the Sample Mean. Rev.F08 1

Announcements: You can turn in homework until 6pm, slot on wall across from 2202 Bren. Make sure you use the correct slot! (Stats 8, closest to wall)

Related Example on Page(s) R , 148 R , 148 R , 156, 157 R3.1, R3.2. Activity on 152, , 190.

AP Statistics Unit 6 Note Packet Linear Regression. Scatterplots and Correlation

Bivariate Data Summary

Appearances Can Be Deceiving!

1) A residual plot: A)

6.1.1 How can I make predictions?

Lesson 1: Forces. Fascinating Education Script Fascinating Intro to Chemistry Lessons. Slide 1: Introduction. Slide 2: Forces

MIT BLOSSOMS INITIATIVE

Correlation & Simple Regression

Transcription:

Please pick up a calculator and take out paper and something to write with. Sep 17 8:08 AM Chapter 6 Scatterplots, Association and Correlation Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 11 1

Looking at Scatterplots 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. Creating a scatterplot in the calculator Pg154 Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 22 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 33 2

Looking at Scatterplots (cont.) Can the NOAA predict where a hurricane will go? The figure shows a negative direction between the years since 1970 and the and the prediction errors made by NOAA. As the years have passed, the predictions have improved (errors have decreased). Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 44 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 55 3

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 66 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 (chapter 9!). Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 77 4

Looking at Scatterplots (cont.) Form: If the relationship curves sharply, a linear method is not helpful. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 88 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 99 5

Looking at Scatterplots (cont.) Strength: At the other extreme, the points appear as a vague cloud with no discernible trend or pattern: Note: we will quantify the amount of scatter soon. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1010 Looking at Scatterplots (cont.) Unusual features: Look for the unexpected. 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1111 6

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. 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1212 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1313 7

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1414 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1515 8

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1616 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1717 9

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 We will find this in the calculator!! Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1818 Sep 17 8:36 AM 10

Correlation (cont.) For the students heights and weights, the correlation is 0.644. What does this mean? The sign is positive, so it tells us there is a positive association. 0.644 is moderate in strength. So we say a correlation of 0.644 tells us there is a positive, moderate, linear relationship between height and weight. Of course, we d also like to see a scatterplot! Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 1919 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2020 11

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2121 Correlation Conditions (cont.) Straight Enough Condition: Correlation measures the strength only of the linear association, and will be misleading if the relationship is not linear. Thus we only calculate and use the correlation coefficient for linear data. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2222 12

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2323 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2424 13

Correlation Properties (cont.) Correlation treats x and y symmetrically: The correlation of xwith 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2525 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. HW Pg167 (#1 17 odds) Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2626 14

Review Question! Which statistics have we studied so far this year that are resistant? Which statistics are not resistant? Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2727 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2828 15

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. We will cover straightening techniques in Chapter 9. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 2929 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3030 16

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3131 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3232 17

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3333 What Can Go Wrong? (cont.) Beware of outliers. Even a single outlier can dominate the correlation value. Make sure to check the Outlier Condition. We will discuss outliers in Chapter 8. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3434 18

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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3535 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 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3636 19

Teaching Tip One of the best ways to finish this lesson is to play Guess my correlation! on one of the websites that provide such an applet. You can find a list of applets on the SMW4e web page. A few rounds of this game is fun and will quickly reinforce what r tells us. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3737 AP Tips Just like the rest of the graphs in this course, scales and labels are required for full credit. You don t have to start either axes at zero, but once you start scaling an axes, it should keep the same scale for its entire length. Describing a scatterplot should be done in context and include the form, strength and association. There is a strong, positive, and linear relationship between age and height. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3838 20

AP Tips, cont. We usually refer to r as simply correlation. But the AP test usually refers to r as the correlation coefficient. Don t get confused by the additional word coefficient. It s just r. Copyright 2015, 2010, 2007 Pearson Education, Inc. Chapter 6, Slide 1 3939 21