Correlation and Regression

Slides:



Advertisements
Similar presentations
Lesson 10: Linear Regression and Correlation
Advertisements

Chapter 12 Simple Linear Regression
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Statistics Measures of Regression and Prediction Intervals.
Learning Objectives Copyright © 2004 John Wiley & Sons, Inc. Bivariate Correlation and Regression CHAPTER Thirteen.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Definition  Regression Model  Regression Equation Y i =  0 +  1 X i ^ Given a collection of paired data, the regression equation algebraically describes.
© The McGraw-Hill Companies, Inc., 2000 CorrelationandRegression Further Mathematics - CORE.
Linear Regression and Correlation
SIMPLE LINEAR REGRESSION
Correlation and Regression. Correlation What type of relationship exists between the two variables and is the correlation significant? x y Cigarettes.
Chapter 9: Correlation and Regression
Correlation & Regression Math 137 Fresno State Burger.
Linear Regression Analysis
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 13 Linear Regression and Correlation.
Measures of Regression and Prediction Intervals
Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
Relationship of two variables
Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.
Correlation and Regression
© The McGraw-Hill Companies, Inc., 2000 Business and Finance College Principles of Statistics Lecture 10 aaed EL Rabai week
© The McGraw-Hill Companies, Inc., Chapter 11 Correlation and Regression.
Production Planning and Control. A correlation is a relationship between two variables. The data can be represented by the ordered pairs (x, y) where.
Correlation and Regression Chapter 9. § 9.3 Measures of Regression and Prediction Intervals.
Elementary Statistics Correlation and Regression.
CHAPTER 3 INTRODUCTORY LINEAR REGRESSION. Introduction  Linear regression is a study on the linear relationship between two variables. This is done by.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Creating a Residual Plot and Investigating the Correlation Coefficient.
Regression Analysis. 1. To comprehend the nature of correlation analysis. 2. To understand bivariate regression analysis. 3. To become aware of the coefficient.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Copyright © 2015, 2012, and 2009 Pearson Education, Inc. 1 Chapter Correlation and Regression 9.
Regression Analysis Deterministic model No chance of an error in calculating y for a given x Probabilistic model chance of an error First order linear.
Correlation and Regression Chapter 9. § 9.2 Linear Regression.
Section 9.3 Measures of Regression and Prediction Intervals.
Correlation and Regression Elementary Statistics Larson Farber Chapter 9 Hours of Training Accidents.
Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 9 l Simple Linear Regression 9.1 Simple Linear Regression 9.2 Scatter Diagram 9.3 Graphical.
Correlation and Regression
Summarizing Descriptive Relationships
Regression and Correlation
CHAPTER 3 Describing Relationships
Regression Analysis AGEC 784.
Correlation & Regression
CHAPTER 3 Describing Relationships
10.2 Regression If the value of the correlation coefficient is significant, the next step is to determine the equation of the regression line which is.
Linear Regression and Correlation Analysis
10.3 Coefficient of Determination and Standard Error of the Estimate
Chapter 5 STATISTICS (PART 4).
Correlation and regression
SIMPLE LINEAR REGRESSION MODEL
Simple Linear Regression
CHAPTER 10 Correlation and Regression (Objectives)
Correlation and Simple Linear Regression
Correlation and Regression
The Weather Turbulence
Correlation and Simple Linear Regression
Correlation and Regression-III
Correlation and Regression
Functions and Their Graphs
SIMPLE LINEAR REGRESSION
SIMPLE LINEAR REGRESSION
Ch 4.1 & 4.2 Two dimensions concept
Section 10-1 Correlation © 2012 Pearson Education, Inc. All rights reserved.
Correlation & Regression
Measures of Regression Prediction Interval
Summarizing Descriptive Relationships
Correlation and Regression
Presentation transcript:

Correlation and Regression Chapter 9 Correlation and Regression

§ 9.1 Correlation

Correlation A correlation is a relationship between two variables. The data can be represented by the ordered pairs (x, y) where x is the independent (or explanatory) variable, and y is the dependent (or response) variable. x 2 4 –2 – 4 y 6 A scatter plot can be used to determine whether a linear (straight line) correlation exists between two variables. Example: x 1 2 3 4 5 y – 4 – 2 – 1

Linear Correlation x y x y x y x y Negative Linear 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

Correlation Coefficient The correlation coefficient is a measure of the strength and the direction of a linear relationship between two variables. The symbol r represents the sample correlation coefficient. The formula for r is The range of the correlation coefficient is 1 to 1. If x and y have a strong positive linear correlation, r is close to 1. If x and y have a strong negative linear correlation, r is close to 1. If there is no linear correlation or a weak linear correlation, r is close to 0.

Linear Correlation y y x x y y x x 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

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. 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. Continued.

Correlation Coefficient Example: Calculate the correlation coefficient r for the following data. x y xy x2 y2 1 – 3 9 2 – 1 – 2 4 3 16 5 10 25 There is a strong positive linear correlation between x and y.

Correlation Coefficient Example: The following data represents the number of hours 12 different students watched television during the weekend and the scores of each student who took a test the following Monday. a.) Display the scatter plot. b.) Calculate the correlation coefficient r. Hours, x 1 2 3 5 6 7 10 Test score, y 96 85 82 74 95 68 76 84 58 65 75 50 Continued.

Correlation Coefficient Example continued: Hours, x 1 2 3 5 6 7 10 Test score, y 96 85 82 74 95 68 76 84 58 65 75 50 100 x y Hours watching TV Test score 80 60 40 20 2 4 6 8 10 Continued.

Correlation Coefficient Example continued: Hours, x 1 2 3 5 6 7 10 Test score, y 96 85 82 74 95 68 76 84 58 65 75 50 xy 164 222 285 340 380 420 348 455 525 500 x2 4 9 25 36 49 100 y2 9216 7225 6724 5476 9025 4624 5776 7056 3364 4225 5625 2500 There is a strong negative linear correlation. As the number of hours spent watching TV increases, the test scores tend to decrease.

§ 9.2 Linear Regression

Residuals After verifying that the linear correlation between two variables is significant, next we determine the equation of the line that can be used to predict the value of y for a given value of x. x y d1 d2 d3 For a given x-value, d = (observed y-value) – (predicted y-value) Observed y-value Predicted y-value Each data point di represents the difference between the observed y-value and the predicted y-value for a given x-value on the line. These differences are called residuals.

Regression Line A regression line, also called a line of best fit, is the line for which the sum of the squares of the residuals is a minimum. The Equation of a Regression Line The equation of a regression line for an independent variable x and a dependent variable y is ŷ = mx + b where ŷ is the predicted y-value for a given x-value. The slope m and y-intercept b are given by

Regression Line Example: Find the equation of the regression line. y xy x2 y2 1 – 3 9 2 – 1 – 2 4 3 16 5 10 25 Continued.

Regression Line Example continued: The equation of the regression line is ŷ = 1.2x – 3.8. 2 x y 1 1 2 3 3 4 5

Regression Line Example: The following data represents the number of hours 12 different students watched television during the weekend and the scores of each student who took a test the following Monday. a.) Find the equation of the regression line. b.) Use the equation to find the expected test score for a student who watches 9 hours of TV. Hours, x 1 2 3 5 6 7 10 Test score, y 96 85 82 74 95 68 76 84 58 65 75 50 xy 164 222 285 340 380 420 348 455 525 500 x2 4 9 25 36 49 100 y2 9216 7225 6724 5476 9025 4624 5776 7056 3364 4225 5625 2500

Regression Line Example continued: ŷ = –4.07x + 93.97 x Continued. 100 y Hours watching TV Test score 80 60 40 20 2 4 6 8 10 ŷ = –4.07x + 93.97 Continued.

Regression Line Example continued: Using the equation ŷ = –4.07x + 93.97, we can predict the test score for a student who watches 9 hours of TV. ŷ = –4.07x + 93.97 = –4.07(9) + 93.97 = 57.34 A student who watches 9 hours of TV over the weekend can expect to receive about a 57.34 on Monday’s test.

Variation About a Regression Line The total variation about a regression line is the sum of the squares of the differences between the y-value of each ordered pair and the mean of y. The explained variation is the sum of the squares of the differences between each predicted y-value and the mean of y. The unexplained variation is the sum of the squares of the differences between the y-value of each ordered pair and each corresponding predicted y-value.

Coefficient of Determination The coefficient of determination r2 is the ratio of the explained variation to the total variation. That is, Example: The correlation coefficient for the data that represents the number of hours students watched television and the test scores of each student is r  0.831. Find the coefficient of determination. About 69.1% of the variation in the test scores can be explained by the variation in the hours of TV watched. About 30.9% of the variation is unexplained.

The Standard Error of Estimate When a ŷ-value is predicted from an x-value, the prediction is a point estimate. An interval can also be constructed. The standard error of estimate se is the standard deviation of the observed yi -values about the predicted ŷ-value for a given xi -value. It is given by where n is the number of ordered pairs in the data set. The closer the observed y-values are to the predicted y-values, the smaller the standard error of estimate will be.

The Standard Error of Estimate Finding the Standard Error of Estimate In Words In Symbols Make a table that includes the column heading shown. Use the regression equation to calculate the predicted y-values. Calculate the sum of the squares of the differences between each observed y-value and the corresponding predicted y-value. Find the standard error of estimate.

The Standard Error of Estimate Example: The regression equation for the following data is ŷ = 1.2x – 3.8. Find the standard error of estimate. xi yi ŷi (yi – ŷi )2 1 – 3 – 2.6 0.16 2 – 1 – 1.4 3 – 0.2 0.04 4 5 2.2 Unexplained variation The standard deviation of the predicted y value for a given x value is about 0.365.

The Standard Error of Estimate Example: The regression equation for the data that represents the number of hours 12 different students watched television during the weekend and the scores of each student who took a test the following Monday is ŷ = –4.07x + 93.97. Find the standard error of estimate. Hours, xi 1 2 3 5 Test score, yi 96 85 82 74 95 68 ŷi 93.97 89.9 85.83 81.76 73.62 (yi – ŷi)2 4.12 24.01 14.67 60.22 175.3 31.58 Hours, xi 5 6 7 10 Test score, yi 76 84 58 65 75 50 ŷi 73.62 69.55 65.48 53.27 (yi – ŷi)2 5.66 107.74 133.4 0.23 90.63 10.69 Continued.

The Standard Error of Estimate Example continued: Unexplained variation The standard deviation of the student test scores for a specific number of hours of TV watched is about 8.11.