Correlation and Regression

Slides:



Advertisements
Similar presentations
Lesson 10: Linear Regression and Correlation
Advertisements

Correlation and regression Dr. Ghada Abo-Zaid
Correlation & Regression Chapter 10. Outline Section 10-1Introduction Section 10-2Scatter Plots Section 10-3Correlation Section 10-4Regression Section.
Statistics Measures of Regression and Prediction Intervals.
BIVARIATE DATA: CORRELATION AND REGRESSION Two variables of interest: X, Y. GOAL: Quantify association between X and Y: correlation. Predict value of Y.
Linear Regression and Correlation
SIMPLE LINEAR REGRESSION
Correlation A correlation exists between two variables when one of them is related to the other in some way. A scatterplot is a graph in which the paired.
Chapter 9: Correlation and Regression
Linear Regression Larson/Farber 4th ed. 1 Section 9.2.
Correlation and Regression
SIMPLE LINEAR REGRESSION
Correlation and Linear Regression
Correlation and Linear Regression
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 13 Linear Regression and Correlation.
Correlation and Linear Regression Chapter 13 Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Section 9.2 Linear Regression © 2012 Pearson Education, Inc. All rights reserved.
SIMPLE LINEAR REGRESSION
Measures of Regression and Prediction Intervals
Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
Linear Regression and Correlation
Correlation and Regression
Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.
Correlation and Regression
Sections 9-1 and 9-2 Overview Correlation. PAIRED DATA Is there a relationship? If so, what is the equation? Use that equation for prediction. In this.
S ECTION 9.1 Correlation Larson/Farber 4th ed. 1.
Jon Curwin and Roger Slater, QUANTITATIVE METHODS: A SHORT COURSE ISBN © Thomson Learning 2004 Jon Curwin and Roger Slater, QUANTITATIVE.
Unit 3 Section : Correlation  Correlation – statistical method used to determine whether a relationship between variables exists.  The correlation.
2-5 Using Linear Models Make predictions by writing linear equations that model real-world data.
Correlation and Regression
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 12 Statistics.
Production Planning and Control. A correlation is a relationship between two variables. The data can be represented by the ordered pairs (x, y) where.
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 13 Linear Regression and Correlation.
Correlation & Regression
Welcome to MM207 Unit 8 Seminar Dr. R. Correlation, Regression and Excel!
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Chapter 9 Correlation and Regression.
Correlation and Regression. fourth lecture We will learn in this lecture: Correlation and Regression 1- Linear Correlation Coefficient of Pearson 2- Simple.
5.7 Scatter Plots and Line of Best Fit I can write an equation of a line of best fit and use a line of best fit to make predictions.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
9.1B – Computing the Correlation Coefficient by Hand
Foundations for Functions Chapter Exploring Functions Terms you need to know – Transformation, Translation, Reflection, Stretch, and Compression.
Measures of Association: Pairwise Correlation
9.1 - Correlation Correlation = relationship between 2 variables (x,y): x= independent or explanatory variable y= dependent or response variable Types.
Linear Regression 1 Section 9.2. Section 9.2 Objectives 2 Find the equation of a regression line Predict y-values using a regression equation.
Copyright © 2015, 2012, and 2009 Pearson Education, Inc. 1 Chapter Correlation and Regression 9.
Linear Regression and Correlation Chapter GOALS 1. Understand and interpret the terms dependent and independent variable. 2. Calculate and interpret.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Go to Table of Content Correlation Go to Table of Content Mr.V.K Malhotra, the marketing manager of SP pickles pvt ltd was wondering about the reasons.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Linear Regression and Correlation Chapter 13.
4.5 – Analyzing Lines of Best Fit Today’s learning goal is that students will be able to Use residuals to determine how well lines of fit model data. Distinguish.
Copyright © 2016 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. C ORRELATION Section 4.1.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Scatterplots, Association, and Correlation.
Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.
Correlation and Regression. O UTLINE Introduction  10-1 Scatter plots.  10-2 Correlation.  10-3 Correlation Coefficient.  10-4 Regression.
Slide Slide 1 Chapter 10 Correlation and Regression 10-1 Overview 10-2 Correlation 10-3 Regression 10-4 Variation and Prediction Intervals 10-5 Multiple.
Section 9-1 – Correlation A correlation is a relationship between two variables. The data can be represented by ordered pairs (x,y) where x is the independent.
Correlation and Regression
Correlation and Simple Linear Regression
Copyright © Cengage Learning. All rights reserved.
Correlation and Regression
CHAPTER 10 Correlation and Regression (Objectives)
Correlation and Regression
SIMPLE LINEAR REGRESSION
Section 10-1 Correlation © 2012 Pearson Education, Inc. All rights reserved.
Correlation and Regression
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

Correlation and Regression Statistics Correlation and Regression

Warm-up Suppose that the average salary for a K-12 teacher in South Carolina is $40,000. Which of the following values would be a reasonable value for the standard deviation? a) -1,000 b) 0 c) 1,000 d) 5,000 e) 23,000

Liquid Diet Prepared Meals Low Carb They are the same Warm-up A personal trainer was interested in studying the effects of different types of diets (liquid diet, prepared meals, and low carb) on total weight loss in two months. Which boxplot has the biggest IQR? Liquid Diet Prepared Meals Low Carb They are the same Cannot be determined

Objectives Introduce linear correlation, independent and dependent variables, and the types of correlation Find a correlation coefficient Distinguish between correlation and causation

A relationship between two variables. Correlation Correlation A relationship between two variables. The data can be represented by ordered pairs (x, y) x is the independent (or explanatory) variable y is the dependent (or response) variable

Correlation A scatter plot can be used to determine whether a linear (straight line) correlation exists between two variables. x 2 4 –2 – 4 y 6 Example: x 1 2 3 4 5 y – 4 – 2 – 1

Types of Correlation As x increases, y tends to decrease. As x increases, y tends to increase. Negative Linear Correlation Positive Linear Correlation x y x y No Correlation Nonlinear Correlation 7

Example: Constructing a Scatter Plot Advertising expenses, ($1000), x Company sales ($1000), y 2.4 225 1.6 184 2.0 220 2.6 240 1.4 180 186 2.2 215 A marketing manager conducted a study to determine whether there is a linear relationship between money spent on advertising and company sales. The data are shown in the table. Display the data in a scatter plot and determine whether there appears to be a positive or negative linear correlation or no linear correlation.

Solution: Constructing a Scatter Plot x y Advertising expenses (in thousands of dollars) Company sales Appears to be a positive linear correlation. As the advertising expenses increase, the sales tend to increase.

Example: Constructing a Scatter Plot Using Technology Old Faithful, located in Yellowstone National Park, is the world’s most famous geyser. The duration (in minutes) of several of Old Faithful’s eruptions and the times (in minutes) until the next eruption are shown in the table. Using a TI-83/84, display the data in a scatter plot. Determine the type of correlation. Duration x Time, y 1.8 56 3.78 79 1.82 58 3.83 85 1.9 62 3.88 80 1.93 4.1 89 1.98 57 4.27 90 2.05 4.3 2.13 60 4.43 2.3 4.47 86 2.37 61 4.53 2.82 73 4.55 3.13 76 4.6 92 3.27 77 4.63 91 3.65  

Solution: Constructing a Scatter Plot Using Technology Enter the x-values into list L1 and the y-values into list L2. Use Stat Plot to construct the scatter plot. STAT > Edit… STATPLOT 1 5 50 100 From the scatter plot, it appears that the variables have a positive linear correlation.

Correlation Coefficient A measure of the strength and the direction of a linear relationship between two variables. The symbol r represents the sample correlation coefficient. A formula for r is The population correlation coefficient is represented by ρ (rho). n is the number of data pairs

Correlation Coefficient The range of the correlation coefficient is -1 to 1. -1 1 If r = -1 there is a perfect negative correlation If r is close to 0 there is no linear correlation If r = 1 there is a perfect positive correlation

Linear Correlation Strong negative correlation x y x y r = 0.91 r = 0.88 Strong negative correlation Strong positive correlation x y x y r = 0.42 r = 0.07 Weak positive correlation Nonlinear Correlation 14

Calculating a Correlation Coefficient In Words In Symbols Find the sum of the x-values. Find the sum of the y-values. Multiply each x-value by its corresponding y-value and find the sum. 15

Calculating a Correlation Coefficient In Words In Symbols Square each x-value and find the sum. Square each y-value and find the sum. Use these five sums to calculate the correlation coefficient. 16

Example: Finding the Correlation Coefficient Calculate the correlation coefficient for the advertising expenditures and company sales data. What can you conclude? Advertising expenses, ($1000), x Company sales ($1000), y 2.4 225 1.6 184 2.0 220 2.6 240 1.4 180 186 2.2 215

Solution: Finding the Correlation Coefficient x y xy x2 y2 2.4 225 1.6 184 2.0 220 2.6 240 1.4 180 186 2.2 215 540 5.76 50,625 294.4 2.56 33,856 440 4 48,400 624 6.76 57,600 252 1.96 32,400 294.4 2.56 33,856 372 4 34,596 473 4.84 46,225 Σx = 15.8 Σy = 1634 Σxy = 3289.8 Σx2 = 32.44 Σy2 = 337,558

Solution: Finding the Correlation Coefficient Σx = 15.8 Σy = 1634 Σxy = 3289.8 Σx2 = 32.44 Σy2 = 337,558 r ≈ 0.913 suggests a strong positive linear correlation. As the amount spent on advertising increases, the company sales also increase.

Example: Using Technology to Find a Correlation Coefficient Use a technology tool to calculate the correlation coefficient for the Old Faithful data. What can you conclude? Duration x Time, y 1.8 56 3.78 79 1.82 58 3.83 85 1.9 62 3.88 80 1.93 4.1 89 1.98 57 4.27 90 2.05 4.3 2.13 60 4.43 2.3 4.47 86 2.37 61 4.53 2.82 73 4.55 3.13 76 4.6 92 3.27 77 4.63 91 3.65  

Solution: Using Technology to Find a Correlation Coefficient To calculate r, you must first enter the DiagnosticOn command found in the Catalog menu STAT > Calc r ≈ 0.979 suggests a strong positive correlation.

Interpreting r Statisticians use the following scale to provide a rough estimate of a relationship’s strength: r value (+/-) Strength 0 -.19 poor .2 - .39 fair .4 - .59 moderate .6 - .79 good .8 – 1.0 excellent

Correlation and Causation The fact that two variables are strongly correlated does not in itself imply a cause-and-effect relationship between the variables. If there is a significant correlation between two variables, you should consider the following possibilities. Is there a direct cause-and-effect relationship between the variables? Does x cause y?

Correlation and Causation Is there a reverse cause-and-effect relationship between the variables? Does y cause x? Is it possible that the relationship between the variables can be caused by a third variable or by a combination of several other variables? Is it possible that the relationship between two variables may be a coincidence?

Example – McGwire-Sosa Data Using the McGwire-Sosa Data, compute the correlation coefficient between batting average (x) and homeruns (y) for both players. Assess the stregth of the relationship. Do you think batting average is a good predictor of homeruns?

Found a correlation coefficient Summary Introduced linear correlation, independent and dependent variables and the types of correlation Found a correlation coefficient Distinguished between correlation and causation

Homework Pg. 469-473, #2-28 even