Welcome to MM207 Unit 8 Seminar Dr. R. Correlation, Regression and Excel!

Slides:



Advertisements
Similar presentations
Statistics Measures of Regression and Prediction Intervals.
Advertisements

Warm Up: #23, 24 on page 555 Answer each of the following questions for #23, 24: a) Is there a linear correlation? Use software then Table A-6 to prove.
Chapter 15 (Ch. 13 in 2nd Can.) Association Between Variables Measured at the Interval-Ratio Level: Bivariate Correlation and Regression.
CORRELATON & REGRESSION
Regression and Correlation
Correlation and Regression Analysis
Chapter 9: Correlation and Regression
BCOR 1020 Business Statistics Lecture 24 – April 17, 2008.
Linear Regression and Correlation Topic 18. Linear Regression  Is the link between two factors i.e. one value depends on the other.  E.g. Drivers age.
Correlation Coefficient Correlation coefficient refers to the type of relationship between variables that allows one to make predications from one variable.
Correlation & Regression Math 137 Fresno State Burger.
Correlation and Linear Regression Chapter 13 Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Types of Graphs Creating a Graph With Microsoft Excel.
DISCLAIMER This guide is meant to walk you through the physical process of graphing and regression in Excel…. not to describe when and why you might want.
Linear Regression and Correlation
Graphing Linear Equations. What is a Linear Equation? A linear equation is an equation whose graph is a LINE. Linear Not Linear.
Graphing Linear Equations
Overview 4.2 Introduction to Correlation 4.3 Introduction to Regression.
Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Correlation and Regression
Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.
Correlation and Regression
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Chapter 13 Statistics © 2008 Pearson Addison-Wesley. All rights reserved.
© The McGraw-Hill Companies, Inc., 2000 Business and Finance College Principles of Statistics Lecture 10 aaed EL Rabai week
S ECTION 9.1 Correlation Larson/Farber 4th ed. 1.
Biostatistics Unit 9 – Regression and Correlation.
Prior Knowledge Linear and non linear relationships x and y coordinates Linear graphs are straight line graphs Non-linear graphs do not have a straight.
EQT 272 PROBABILITY AND STATISTICS
INTRODUCTORY LINEAR REGRESSION SIMPLE LINEAR REGRESSION - Curve fitting - Inferences about estimated parameter - Adequacy of the models - Linear.
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 13-6 Regression and Correlation.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 12 Statistics.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Slope-Intercept Form Point-Slope.
CHAPTER 3 INTRODUCTORY LINEAR REGRESSION. Introduction  Linear regression is a study on the linear relationship between two variables. This is done by.
1.1 example these are prices for Internet service packages find the mean, median and mode determine what type of data this is create a suitable frequency.
Welcome to MM570 Psychological Statistics Unit 4 Seminar Dr. Srabasti Dutta.
Correlation and Regression. Section 9.1  Correlation is a relationship between 2 variables.  Data is often represented by ordered pairs (x, y) and.
Chapter 9 Correlation and Regression.
Creating a Residual Plot and Investigating the Correlation Coefficient.
Correlation The apparent relation between two variables.
Scatter Diagrams scatter plot scatter diagram A scatter plot is a graph that may be used to represent the relationship between two variables. Also referred.
Scatter Diagram of Bivariate Measurement Data. Bivariate Measurement Data Example of Bivariate Measurement:
Foundations for Functions Chapter Exploring Functions Terms you need to know – Transformation, Translation, Reflection, Stretch, and Compression.
2.5 Using Linear Models A scatter plot is a graph that relates two sets of data by plotting the data as ordered pairs. You can use a scatter plot to determine.
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.
Basic Statistics Linear Regression. X Y Simple Linear Regression.
Correlation & Regression Analysis
1 Data Analysis Linear Regression Data Analysis Linear Regression Ernesto A. Diaz Department of Mathematics Redwood High School.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Graphing Linear Equations From the beginning. What is a Linear Equation? A linear equation is an equation whose graph is a LINE. Linear Not Linear.
Welcome to MM570 Psychological Statistics Unit 4 Seminar Dr. Bob Lockwood.
Summarizing Data Graphical Methods. Histogram Stem-Leaf Diagram Grouped Freq Table Box-whisker Plot.
Chapter 15 Association Between Variables Measured at the Interval-Ratio Level.
Chapter Correlation and Regression 1 of 84 9 © 2012 Pearson Education, Inc. All rights reserved.
REGRESSION AND CORRELATION SIMPLE LINEAR REGRESSION 10.2 SCATTER DIAGRAM 10.3 GRAPHICAL METHOD FOR DETERMINING REGRESSION 10.4 LEAST SQUARE METHOD.
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.
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
Department of Mathematics
Regression and Correlation
Correlation & Regression
SIMPLE LINEAR REGRESSION MODEL
2. Find the equation of line of regression
Correlation and Regression
Correlation and Regression
Correlation and Regression
Presentation transcript:

Welcome to MM207 Unit 8 Seminar Dr. R. Correlation, Regression and Excel!

Correlation: the relationship between two variables, x and y. Scatter Plot –The x variable is on the horizontal axis –The y variable is on the vertical axis –The scatter plot is location for each x,y pair. Types of Relationships –Positive: both x and y move in the same direction –Negative: x and y move in opposite directions –Zero: no pattern of movement in x and y 2

Scatter Plot for Example 3 on Page 498 3

Calculating the Correlation Coefficient The correlation coefficient is a numerical measurement that assesses the strength and direction of the relationship between paired data. -1 ≤ r ≤ 1, the correlation coefficient is always in this interval r is the Pearson Product Moment correlation coefficient But I will use Excel, as usual! 4

Using Excel for the Correlation 5 Compare this to the results shown on page 501

Statistical Significance of the Correlation Coefficient Table 11, page A28, gives the critical values for the correlation coefficient to be significant. If the value calculated is greater than the value in Table 11 the correlation is significant at either α = 0.05 or α = In our example there are 25 pairs of data and the critical values are [α = 0.05 ] and [α = 0.01] and our value is Our correlation is statistically significant at the 0.01 level. [page 503] Statistical significance means that the correlation is not 0 and that is all it means. 6

Linear Regression and Prediction Assume that there is a tennis club that will let anyone play tennis but there is a flat fee for using the facility and then a per-hour fee for using the tennis courts. Now, this club tells us that the fee to use the club is $10.00 and the per-hour cost is $5.00. Can you calculate the cost of playing 2 hours of tennis? Can you estimate the cost to play 10 hours of tennis? 7

Linear Regression and Prediction Now to do find out how much it will cost to play tennis all you did was take $10 plus $5 times the number of hours, right? I might write this as Cost = rate (hours) +base cost; which looks a lot like: –Yhat = mx + b [page 514] The formula to get m and b look like this: –m = (n ∑xy - (∑x)(∑y) ) / (n ∑x 2 – (∑x) 2 ) –b = ybar – m * xbar But, I will be using Excel. 8

Using Scatter Plot for the Regression Line 9 Right click on a dot Select “Format Trendline Type is Linear Click Display Equation on chart Click Display R-squared on chart

Using Scatter Plot for the Regression Line 10

Using Regression for the Regression Line 11

Using Regression for the Regression Line 12

Using the Regression Line to make a Prediction If Old Faithful erupts for 3.32 minutes how long do we predict before Old Faithful erupts again? From either procedure the equation is: Y = (x) Y = (3.32) Y = Y = minutes We predict it will be minutes until Old Faithful erupts after a 3.32 eruption duration. 13

Regression by Calculator Example 1, Page 514. Suppose we want to find a regression line for advertising expenses versus Company sales. We have the following data. 14 Expenses Sales

Regression Analysis x.yx*yx^2y^ , , , , , , , ,225 Σx = 15.8Σy = 1634Σx*y=3289.8Σx^2=32.44Σy^2=337,558 15

Regression m=(n*Σxy-(Σx)*(Σy))/(n*Σx^2-(Σx)^2) m=(8*(3289.8)-(15.8)*(1634))/(8*(32.44)-(15.8)^2) m= b = (Σy – mΣx)/n b = (1634 – ( )*(15.8))/8 = Thus, y = ( )*x

Final Graph with Equation 17

18 (Thanks to Freakonomics by Steven D. Levitt H AVE A G REAT W EEK, E VERYONE !!