Correlation and Regression

Slides:



Advertisements
Similar presentations
Correlation and regression Dr. Ghada Abo-Zaid
Advertisements

Correlation & Regression Chapter 10. Outline Section 10-1Introduction Section 10-2Scatter Plots Section 10-3Correlation Section 10-4Regression Section.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Correlation and Regression
Correlation and Regression
© The McGraw-Hill Companies, Inc., 2000 CorrelationandRegression Further Mathematics - CORE.
Correlation and Regression
SIMPLE LINEAR REGRESSION
Topics: Regression Simple Linear Regression: one dependent variable and one independent variable Multiple Regression: one dependent variable and two or.
Correlation and Regression. Correlation What type of relationship exists between the two variables and is the correlation significant? x y Cigarettes.
Correlation and Regression Analysis
Correlation and Linear Regression
Linear Regression.
Introduction to Linear Regression and Correlation Analysis
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-3 Regression.
Relationship of two variables
Correlation and Regression
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Regression Section 10.2 Bluman, Chapter 101. Example 10-1: Car Rental Companies Construct a scatter plot for the data shown for car rental companies in.
© 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 & Regression
Unit 10 Correlation and Regression McGraw-Hill, Bluman, 7th ed., Chapter 10 1.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Relationships If we are doing a study which involves more than one variable, how can we tell if there is a relationship between two (or more) of the.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Correlation and Regression. O UTLINE Introduction  10-1 Scatter plots.  10-2 Correlation.  10-3 Correlation Coefficient.  10-4 Regression.
Slide 1 Copyright © 2004 Pearson Education, Inc. Chapter 10 Correlation and Regression 10-1 Overview Overview 10-2 Correlation 10-3 Regression-3 Regression.
Correlation and Regression Note: This PowerPoint is only a summary and your main source should be the book.
Chapter 13 Linear Regression and Correlation. Our Objectives  Draw a scatter diagram.  Understand and interpret the terms dependent and independent.
Correlation and Regression Lecturer : FATEN AL-HUSSAIN Note: This PowerPoint is only a summary and your main source should be the book.
Lecture Slides Elementary Statistics Twelfth Edition
Correlation and Regression
Linear Regression Essentials Line Basics y = mx + b vs. Definitions
Statistics 200 Lecture #6 Thursday, September 8, 2016
CHAPTER 10 & 13 Correlation and Regression
Regression and Correlation
Warm Up Scatter Plot Activity.
Correlation & Regression
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.
Correlation and Simple Linear Regression
Correlation and Regression
Chapter 5 STATISTICS (PART 4).
SIMPLE LINEAR REGRESSION MODEL
Simple Linear Regression
Elementary Statistics
Correlation and Regression
CHAPTER 10 Correlation and Regression (Objectives)
Regression and Residual Plots
Correlation and Simple Linear Regression
Lecture Slides Elementary Statistics Thirteenth Edition
Correlation and Regression
M248: Analyzing data Block D.
Prepared by Lee Revere and John Large
Chapter 10 Correlation and Regression
Lecture Notes The Relation between Two Variables Q Q
Correlation and Simple Linear Regression
Correlation and Regression
Correlation and Regression
SIMPLE LINEAR REGRESSION
Simple Linear Regression and Correlation
Product moment correlation
SIMPLE LINEAR REGRESSION
Warsaw Summer School 2017, OSU Study Abroad Program
Created by Erin Hodgess, Houston, Texas
Correlation & Regression
MGS 3100 Business Analysis Regression Feb 18, 2016
Presentation transcript:

Correlation and Regression Bivariate data Correlation and Regression

Introduction Another area of inferential statistics involves determining whether a relationship exists between two or more numerical or quantitative variables. Is there a relationship between age and blood pressure? Is there a relationship between birth weight and life span? Is there a relationship between volume of sales and amount of advertising?

Correlation and Regression Correlation is a statistical method used to determining whether a relationship between variables exists. Regression is a statistical method used to describe the nature of the relationship between variables, that is, positive or negative, linear or nonlinear.

The purpose of this section is to answer the following questions… Are two or more variables related? If so, what is the strength of the relationship? What type of relationship exists? What kind of predictions can be made from this relationship? To answer the first two questions, statisticians use a numerical measure called the correlation coefficient. To answer the third question, you must ascertain whether the relationship is simple or multiple.

Simple vs. Multiple Relationships Two variables – independent and dependent Simple relationship analysis is called Simple Regression – one independent variable is used to predict the dependent variable Positive relationship=both increase/decrease Negative relationship=one increases as the other decreases Multiple Regression Two or more independent variables are used to predict the dependent variable

Scatter Plots and Correlation In simple correlation and regression studies, the researcher collects data on two numerical or quantitative variables to see whether a relationship exists between the variables. For example, if the researcher wanted to see if there was a relationship between number of hours of study and test scores on an exam, she must collect a random sample of students, determine the number of hours of study, and obtain their grades on the exam. A table can be made for the data, as shown here: Student Hours of Study x Grade y A 6 82 B 2 63 C 1 57 D 5 88 E 68 F 3 75

Scatter Plot and Correlation As previously stated, the two variables for this study are called independent and dependent. Independent – can be controlled or manipulated (hours of study) Dependent – cannot be controlled or manipulated (grade) The determination of the x and y variables is not always clear-cut and is sometimes an arbitrary decision. For example, if the researcher studies the effects of age on a person’s blood pressure, the researcher can generally assume that age affects blood pressure. On the other hand, if a researcher is studying the attitudes of husbands on a certain issue and the attitudes of their wives on the same issue, it is difficult to say which variable is independent and which is dependent. Thus the researcher can arbitrarily designate the variables as independent and dependent.

Scatter Plots and Correlation The independent and dependent variables can be plotted on a graph called a scatter plot. independent – x dependent – y A Scatter Plot is a graph of the ordered pairs (x, y) of numbers consisting of the independent variable x and the dependent variable y. Used as a visual way to describe the nature of the relationship between the independent and dependent variables.

Example 1 Make scatter plots of the following data to determine if there is a relationship between the two variables. Company Cars (in thousands) Revenue (in billions) A 63.0 7.0 B 29.0 3.9 C 20.8 2.1 D 19.1 2.8 E 13.4 1.4 F 8.5 1.5

Example 2 Make scatter plots of the following data to determine if there is a relationship between the two variables. Student Number of Absences Final Grade A 6 82 B 2 86 C 15 43 D 9 74 E 12 58 F 5 90 G 8 78

Example 3 Make scatter plots of the following data to determine if there is a relationship between the two variables. Subject Hours Amount A 3 48 B 8 C 2 32 D 5 64 E 10 F G 56 H 72 I 1

What to do with the Scatter Plot After the plot is drawn, it should be analyzed to determine which type of relationship, if any, exists. Example 1 suggests positive relationship, since both number of cars and revenue increase Example 2 suggests negative relationship, since as number of absences increases, final grade decreases. Example 3 shows no specific type of relationship, since no pattern is discernible. Notice also, that both Example 1 and Example 2 show linear relationships since the points seem to fit a straight line, although not perfectly.

No linear relationship Correlation Correlation coefficient computed from the sample data measures the strength and direction of a linear relationship between two variables. The symbol for the sample correlation coefficient is r. The symbol for the population correlation coefficient is ρ (Greek letter rho). Strong negative linear relationship No linear relationship Strong positive linear relationship -1 +1

Procedure Table for Finding Correlation Coefficient and Regression Line Equation x y xy x2 y2 … Σx = Σy = Σxy = Σx2 = Σy2 =

Formula for Correlation Coefficient where n is the number of data points round r to 3 decimal places

Example 4 Compute the correlation coefficient for the data from example 1 and example 2

Correlation and Causation Researchers must understand the nature of the linear relationship between the independent variable x and the dependent variable y. When a hypothesis test indicates that a significant linear relationship exists between the variables, researchers must consider the possibilities outlined next…

Possible Relationships Between Variables When the null hypothesis has been rejected for a specific alpha value, any of the following five possibilities can exist: There is a direct cause-and-effect relationship between the variables. (x causes y) There is a reverse cause-and-effect relationship between the variables. (y causes x) The relationship between the variables may be caused by a third variable. There may be a complexity of interrelationships among many variables. The relationship may be coincidental.

One last thing!! When two variables are highly correlated, item 3 in the possible relationships between variables states that there exists a possibility that the correlation is due to a third variable. If this is the case and the third variable is unknown to the researcher or not accounted for in the study, it is called a lurking variable. An attempt should be made by the researcher to identify such variables and to use methods to control their influence. Also, CORRELATION ≠ CAUSATION!!!!!!!!

Regression In studying relationships between two variables, collect the data and then construct a scatter plot. The purpose of the scatter plot, as indicated previously, is to determine the nature of the relationship. The possibilities include: a positive linear relationship a negative linear relationship a curvilinear relationship (won’t talk about) or no discernible relationship. The next steps are to compute the correlation coefficient and to test the significance of the relationship. If the value of the correlation coefficient is significant, the next step is to determine the equation of the regression line, which is the data’s line of best fit. This allows the researcher to see trends and make predictions about the data.

Line of Regression Given a scatter plot, you must be able to draw a line of best fit. Best fit means that the sum of the squares of the vertical distances from each point to the line is at a minimum. The reason you need a line of best fit is that the values of y will be predicted from the values of x; hence, the closer the points are to the line, the better the fit and the prediction will be. When r is positive, the line slopes upward and to the right. When r is negative, the line slopes downward from left to right.

Determination of the Regression Line Equation a is the y-intercept – round to 3 decimal places b is the slope of the line – round to 3 decimal places

Example 1 Find the equation of the regression line for the data and graph the line on the scatter plot of the data. Use the equation of the regression line to predict the income of a car rental agency that has 200,000 automobiles. Company Cars (in thousands) Revenue (in billions) A 63.0 7.0 B 29.0 3.9 C 20.8 2.1 D 19.1 2.8 E 13.4 1.4 F 8.5 1.5

Example 2 Find the equation of the regression line for the data and graph the line on the scatter plot Student Number of Absences Final Grade A 6 82 B 2 86 C 15 43 D 9 74 E 12 58 F 5 90 G 8 78

Marginal Change The magnitude of the change in one variable when the other variable changes exactly 1 unit is called the marginal change. Marginal change is represented by b (slope) in your regression equation. When r is not significantly different from 0, the best predictor of y is the mean of the data values of y. For valid predictions, the value of the correlation coefficient must be significant. Also two other assumptions must be met…

Assumptions for Valid Predictions in Regression For any specific value of the independent variable x, the value of the dependent variable y must be normally distributed about the regression line. The standard deviation of each of the dependent variables must be the same for each value of the independent variable.

Extrapolation Extrapolation, or making predictions beyond the bounds of the data, must be interpreted cautiously. When predictions are made, they are based on the present conditions or on the premise that present trends will continue.

Outliers Scatter plots should be checked for outliers. An outlier is a point that seems out of place when compared with the other points. Some of these points can affect the regression line. When this happens, the points are called influential points or influential observations. Influential points tend to pull the regression line toward itself. To check for influential points, if a point seems like an outlier, graph the regression line including that points, and then another excluding that point. If the two lines are significantly different, the point can be considered an influential point. Researchers should use their judgment on whether or not to include an influential point.

Three Types of Variation Associated with the Regression Model Total Variation Explained Variation Unexplained Variation Definition Sum of the squares of the vertical distances each point is from the mean. Divided into explained and unexplained. Equal to the sum of explained and unexplained. Variation due to the relationship between x and y. Closer r is to +1 or -1, the better points fir the line and the closer explained variation will be to total variation. Variation due to chance. When this is small, r is close to +1 or -1. If all points fall on regression line, this will be zero. Equation

Example 1 Find the three types of variation for the following set of data x 1 2 3 4 5 y 10 8 12 16 20

Residual and Least-Squares Line The values ( y - y’ ) are called residuals. A residual is the difference between the actual value of y and the predicted value y’ for a given x value. The mean of the residuals is always zero. The sum of the squares of the residuals computed by using the regression line is the smallest possible value. For this reason, a regression line is also called a least- squares line.

Coefficient of Determination The coefficient of determination is a measure of the variation of the dependent variable that is explained by the regression line and the independent variable. The coefficient of determination is the ratio of the explained variation to the total variation and is denoted by r2. r2 = explained variation total variation r2 is typically expressed as a percentage of the total variation Another way to arrive at the coefficient of determination is to square the correlation coefficient

Coefficient of Nondetermination The rest of the total variation is unexplained, and we call this value the coefficient of nondetermination. This value is found by subtracting the coefficient of determination from 1. As the value of r approaches 0, r2 decreases more rapidly Coefficient of nondetermination: 1.00 – r2