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.

Slides:



Advertisements
Similar presentations
Chapter 12 Simple Linear Regression
Advertisements

Correlation and regression Dr. Ghada Abo-Zaid
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.
Chapter Thirteen McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. Linear Regression and Correlation.
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Data Analysis: Bivariate Correlation and Regression CHAPTER sixteen.
Learning Objectives Copyright © 2004 John Wiley & Sons, Inc. Bivariate Correlation and Regression CHAPTER Thirteen.
Simple Regression. Major Questions Given an economic model involving a relationship between two economic variables, how do we go about specifying the.
The Best-Fit Line Linear Regression. PGCC CHM 103 Sinex How do you determine the best-fit line through data points? x-variable y-variable Fortunately.
Chapter 12 Simple Linear Regression
CORRELATON & REGRESSION
Regression and Correlation
Correlation and Regression Analysis
Chapter 12a Simple Linear Regression
ASSESSING THE STRENGTH OF THE REGRESSION MODEL. Assessing the Model’s Strength Although the best straight line through a set of points may have been found.
EART20170 Computing, Data Analysis & Communication skills
Chapter Topics Types of Regression Models
Regression Analysis In regression analysis we analyze the relationship between two or more variables. The relationship between two or more variables could.
BCOR 1020 Business Statistics
Simple Linear Regression
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 13 Linear Regression and Correlation.
Introduction to Linear Regression and Correlation Analysis
Equations in Simple Regression Analysis. The Variance.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Linear Trend Lines Y t = b 0 + b 1 X t Where Y t is the dependent variable being forecasted X t is the independent variable being used to explain Y. In.
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.
Correlation.
Biostatistics Unit 9 – Regression and Correlation.
Bivariate Regression (Part 1) Chapter1212 Visual Displays and Correlation Analysis Bivariate Regression Regression Terminology Ordinary Least Squares Formulas.
Ms. Khatijahhusna Abd Rani School of Electrical System Engineering Sem II 2014/2015.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Keller: Stats for Mgmt & Econ, 7th Ed
1 1 Slide Simple Linear Regression Coefficient of Determination Chapter 14 BA 303 – Spring 2011.
Linear Regression Least Squares Method: the Meaning of r 2.
1 Chapter 12 Simple Linear Regression. 2 Chapter Outline  Simple Linear Regression Model  Least Squares Method  Coefficient of Determination  Model.
Chapter 5: Regression Analysis Part 1: Simple Linear Regression.
Regression Regression relationship = trend + scatter
The Pearson Product-Moment Correlation Coefficient.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Multiple Regression. Simple Regression in detail Y i = β o + β 1 x i + ε i Where Y => Dependent variable X => Independent variable β o => Model parameter.
Chapter Thirteen Copyright © 2006 John Wiley & Sons, Inc. Bivariate Correlation and Regression.
Correlation The apparent relation between two variables.
Chapter 9: Correlation and Regression Analysis. Correlation Correlation is a numerical way to measure the strength and direction of a linear association.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
AP Statistics HW: p. 165 #42, 44, 45 Obj: to understand the meaning of r 2 and to use residual plots Do Now: On your calculator select: 2 ND ; 0; DIAGNOSTIC.
Chapter 8: Simple Linear Regression Yang Zhenlin.
Linear Prediction Correlation can be used to make predictions – Values on X can be used to predict values on Y – Stronger relationships between X and Y.
Chapter Thirteen Bivariate Correlation and Regression Chapter Thirteen.
Regression Analysis. 1. To comprehend the nature of correlation analysis. 2. To understand bivariate regression analysis. 3. To become aware of the coefficient.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Chapter 12 Simple Linear Regression n Simple Linear Regression Model n Least Squares Method n Coefficient of Determination n Model Assumptions n Testing.
1 1 Slide The Simple Linear Regression Model n Simple Linear Regression Model y =  0 +  1 x +  n Simple Linear Regression Equation E( y ) =  0 + 
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Correlation and Regression Ch 4. Why Regression and Correlation We need to be able to analyze the relationship between two variables (up to now we have.
REGRESSION AND CORRELATION SIMPLE LINEAR REGRESSION 10.2 SCATTER DIAGRAM 10.3 GRAPHICAL METHOD FOR DETERMINING REGRESSION 10.4 LEAST SQUARE METHOD.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
The simple linear regression model and parameter estimation
Correlation & Forecasting
Regression and Correlation of Data Summary
Linear Regression and Correlation Analysis
Ch12.1 Simple Linear Regression
Linear Regression Prof. Andy Field.
Simple Linear Regression
Linear Regression.
24/02/11 Tutorial 3 Inferential Statistics, Statistical Modelling & Survey Methods (BS2506) Pairach Piboonrungroj (Champ)
Least Squares Method: the Meaning of r2
Correlation and Regression
Simple Linear Regression
Presentation transcript:

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 – risk of accident.  Gender – time spent shopping  Car price – depends on age (of car)  Sales – depend on Marketing

Crickets and Temperature  Crickets make their chirping sounds by rapidly sliding one wing over the other.  The faster they move their wings, the higher the chirping sound that is produced.

Crickets and Temperature

Analysing the data  First graph the data using the XY (Scatter) option

Analysing the data  Then right click on one of the data points and select – Add Trendline

Analysing the data  Select the Linear Regression type

Analysing the data Now right click on the Trendline and select Format Trendline then select Options – finally select Display equation on Chart

Analysing the data We can now predict the Temperature.

Line of Best Fit You can see differences between the Measured Values and the Calculated values – why?

Mean Squared Error (MSE)  The mean squared error or MSE of an estimator is the expected value of the square of the "error."  The error is the amount by which the estimator differs from the quantity to be estimated.  The difference occurs because of randomness  or because the estimator doesn't account for information that could produce a more accurate estimate.

Root Mean Square Error  The root mean square error (RMSE) is a frequently-used measure of the difference between values predicted by a model and the values actually observed from the thing being modelled or estimated.  The lower the value of the RMSE the better the fit of observed to calculated data.

RMSE

Stating the Error  For our Crickets we could then say:  Temperature Y = X –  Where X is the recorded beats per second of the Crickets wings.  Accurate to + or – 2.07 o C

Correlation Coefficient  The correlation coefficient is a measure of how well trends in the predicted values follow trends in the actual values.  It is a measure of how well the predicted values from a forecast model "fit" with the real-life data.

Correlation Coefficient  The correlation coefficient is a number between 0 and +/- 1.  If there is no relationship between the predicted values and the actual values the correlation coefficient is 0 or very low (the predicted values are no better than random numbers).  As the strength of the relationship between the predicted values and actual values increases, so does the correlation coefficient.  A perfect fit gives a coefficient of +/ Thus the higher the correlation coefficient the better.

A demonstration  correlation correlation

Correlation  Two main methods of calculating correlations are:  Spearman's Rank Correlation Coefficient and  Pearson's or the Product-Moment Correlation Coefficient.

Spearman’s Rank Correlation Coefficient  Spearman's Rank Correlation Coefficient  In calculating this coefficient, we use the Greek letter 'rho' or r The formula used to calculate this coefficient is: r = 1 - (6 d2 ) / n(n2 - 1)

Pearson's or Product-Moment Correlation Coefficient  The Pearson Correlation Coefficient is denoted by the symbol r. Its formula is based on the standard deviations of the x-values and the y-values:

Coefficient of Determination R Squared  Shows the amount of variation in y that depends on x  The version most common in statistics texts is based on an analysis of variance decomposition as follows: SST is the total sum of squares, SSR is the explained sum of squares, and SSE is the residual sum of squares

Coefficient of Determination R Squared  Thankfully Excel calculates this for you: