Simple Linear Regression

Slides:



Advertisements
Similar presentations
Chapter 12 Simple Linear Regression
Advertisements

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.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Learning Objectives 1 Copyright © 2002 South-Western/Thomson Learning Data Analysis: Bivariate Correlation and Regression CHAPTER sixteen.
Correlation and Regression
Definition  Regression Model  Regression Equation Y i =  0 +  1 X i ^ Given a collection of paired data, the regression equation algebraically describes.
Chapter 12 Simple Linear Regression
Chapter Topics Types of Regression Models
Introduction to Probability and Statistics Linear Regression and Correlation.
Korelasi dalam Regresi Linear Sederhana Pertemuan 03 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Chapter 7 Forecasting with Simple Regression
Linear Regression/Correlation
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS & Updated by SPIROS VELIANITIS.
Introduction to Linear Regression and Correlation Analysis
Simple Linear Regression Models
Learning Objective Chapter 14 Correlation and Regression Analysis CHAPTER fourteen Correlation and Regression Analysis Copyright © 2000 by John Wiley &
EQT 272 PROBABILITY AND STATISTICS
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.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
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.
Managerial Economics Demand Estimation. Scatter Diagram Regression Analysis.
INTRODUCTORY LINEAR REGRESSION SIMPLE LINEAR REGRESSION - Curve fitting - Inferences about estimated parameter - Adequacy of the models - Linear.
Chapter 3: Introductory Linear Regression
1 1 Slide Simple Linear Regression Coefficient of Determination Chapter 14 BA 303 – Spring 2011.
1 Chapter 12 Simple Linear Regression. 2 Chapter Outline  Simple Linear Regression Model  Least Squares Method  Coefficient of Determination  Model.
Introduction to Probability and Statistics Thirteenth Edition Chapter 12 Linear Regression and Correlation.
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.
Chapter 13 Multiple Regression
Chapter Thirteen Copyright © 2006 John Wiley & Sons, Inc. Bivariate Correlation and Regression.
C HAPTER 4: I NTRODUCTORY L INEAR R EGRESSION Chapter Outline 4.1Simple Linear Regression Scatter Plot/Diagram Simple Linear Regression Model 4.2Curve.
Regression Analysis. 1. To comprehend the nature of correlation analysis. 2. To understand bivariate regression analysis. 3. To become aware of the coefficient.
Chapter 5: Introductory Linear Regression
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 + 
Free Powerpoint Templates ROHANA BINTI ABDUL HAMID INSTITUT E FOR ENGINEERING MATHEMATICS (IMK) UNIVERSITI MALAYSIA PERLIS.
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 19 Measure of Variation in the Simple Linear Regression Model (Data)Data.
Free Powerpoint Templates ROHANA BINTI ABDUL HAMID INSTITUT E FOR ENGINEERING MATHEMATICS (IMK) UNIVERSITI MALAYSIA PERLIS.
Chapter 5: Introductory Linear Regression. INTRODUCTION TO LINEAR REGRESSION Regression – is a statistical procedure for establishing the relationship.
REGRESSION AND CORRELATION SIMPLE LINEAR REGRESSION 10.2 SCATTER DIAGRAM 10.3 GRAPHICAL METHOD FOR DETERMINING REGRESSION 10.4 LEAST SQUARE METHOD.
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.
Chapter 11 Linear Regression and Correlation. Explanatory and Response Variables are Numeric Relationship between the mean of the response variable and.
INTRODUCTION TO MULTIPLE REGRESSION MULTIPLE REGRESSION MODEL 11.2 MULTIPLE COEFFICIENT OF DETERMINATION 11.3 MODEL ASSUMPTIONS 11.4 TEST OF SIGNIFICANCE.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Chapter 13 Linear Regression and Correlation. Our Objectives  Draw a scatter diagram.  Understand and interpret the terms dependent and independent.
Lecture 11: Simple Linear Regression
Statistics for Managers using Microsoft Excel 3rd Edition
Correlation and Simple Linear Regression
Chapter 5 STATISTICS (PART 4).
SIMPLE LINEAR REGRESSION MODEL
Statistics for Business and Economics (13e)
CHAPTER fourteen Correlation and Regression Analysis
Slides by JOHN LOUCKS St. Edward’s University.
CHAPTER 10 Correlation and Regression (Objectives)
Correlation and Simple Linear Regression
Correlation and Regression
Linear Regression/Correlation
Prepared by Lee Revere and John Large
Correlation and Simple Linear Regression
Correlation and Regression
Correlation and Regression
SIMPLE LINEAR REGRESSION
Simple Linear Regression and Correlation
Product moment correlation
Introduction to Regression
St. Edward’s University
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

Simple Linear Regression l Chapter 9 l Simple Linear Regression 9.1 Simple Linear Regression 9.2 Scatter Diagram 9.3 Graphical Method for Determining Regression 9.4 Least Square Method 9.5 Correlation Coefficient and Coefficient Determination 9.6 Test of Significance

9.0 Introduction to Regression Regression is a statistical procedure for establishing the relationship between 2 or more variables. This is done by fitting a linear equation to the observed data. The regression line is then used by the researcher to see the trend and make prediction of values for the data. There are 2 types of relationship: Simple ( 2 variables) Multiple (more than 2 variables)

9.1 Simple Linear Regression It involve relationship analysis between two variables (One independent variable and one dependent variable). Its model use an equation that describes a dependent variable (Y) in terms of an independent variable (X) plus random error ε. Random error, is the difference of data point from the deterministic value. This regression line is estimated from the data collected by fitting a straight line to the data set and getting the equation of the straight line, where, = intercept of the line with the Y-axis = slope of the line = random error

9.1 Simple Linear Regression Example of independent and dependent variables. 1) A nutritionist studying weight loss programs might wants to find out if reducing intake of carbohydrate can help a person reduce weight. X is the carbohydrate intake (independent variable). Y is the weight (dependent variable). 2) An entrepreneur might want to know whether increasing the cost of packaging his new product will have an effect on the sales volume. X is the cost (independent variable) Y is sales volume (dependent variable)

9.2 Scatter Diagram A scatter plot is a graph or ordered pairs (x,y). The purpose of scatter plot – to describe the nature of the relationships between independent variable, X and dependent variable, Y in visual way. The independent variable, x is plotted on the horizontal axis and the dependent variable, y is plotted on the vertical axis.

9.2 Scatter Diagram A linear regression can be develop by freehand plot of the data. Example: The given table contains values for 2 variables, X and Y. Plot the given data and make a freehand estimated regression line. X -3 -2 -1 1 2 3 Y 5 8 11 12

9.2 Scatter Diagram

9.2 Scatter Diagram

9.4 Least Square Method Produces a straight line that minimizes the sum of square differences between the point and the line (determine values for and that ensure a best fit for the estimated regression line to the sample data points). Involve some calculation procedure. However, as we are using SPSS output, no calculation is necessary.

9.4 Least Square Method

9.4 Least Square Method Conducting simple linear regression through SPSS. The data below represent scores obtained by ten primary school students before and after they were taken on a tour to the museum (which is supposed to increase their interest in history) Fit a linear regression model with “before” as the explanatory variable and “after” as the dependent variable. Predict the score a student would obtain “after” if he scored 60 marks “before”. Before,x 65 63 76 46 68 72 57 36 96 After, y 66 86 48 71 42 87

9.4 Least Square Method Analysis 1 3 2

9.4 Least Square Method Output If a student scored 60 marks in “before”, he would obtain 61.746 in “after”

9.5 Correlation Coefficient and Coefficient of Determination Correlation measures the strength of a linear relationship between the two variables. Also known as Pearson’s product moment coefficient of correlation. The symbol for the sample coefficient of correlation is r. Values of r close to 1 strong positive linear relationship between x and y. close to -1 strong negative linear relationship between x and y. close to 0 little or no linear relationship between x and y.

9.5 Correlation Coefficient and Coefficient of Determination Positive linear relationship E(y) x Regression line Slope b1 is positive Intercept b0

9.5 Correlation Coefficient and Coefficient of Determination Negative linear relationship E(y) x Regression line b0 Intercept Slope b1 is negative

9.5 Correlation Coefficient and Coefficient of Determination No relationship E(y) x Regression line b0 Intercept Slope b1 is 0

9.5 Correlation Coefficient and Coefficient of Determination The coefficient of determination is a measure of the variation of the dependent variable (Y) that is explained by the regression line and the independent variable (X). If r = 0.90, then = 0.81. It means that 81% of the variation in the dependent variable (Y) is accounted for by the variations in the independent variable (X). The rest of the variation, 0.19 or 19%, is unexplained and called the coefficient of nondetermination. Formula for the coefficient of nondetermination is 1-

9.5 Correlation Coefficient and Coefficient of Determination Output Strong positive linear relationship 88.7% variation in X is explained by Y

9.6 Test of Significance Simple linear regression involves two estimated parameters which are β0 and β1. Test of hypothesis is used in order to know whether independent variable is significant to dependent variable (whether X provides information in predicting Y). The t-test or analysis of variance (ANOVA) method is an approach to test the significance of the regression. Basically, two test are commonly used: t Test F Test (ANOVA)

9.6 Test of Significance (NO RELATIONSHIP) (THERE IS RELATIONSHIP) t-test Compare P-value (refer to Coefficient table) with α Reject if P-value < α If we reject there is a significant relationship between variable X and Y. (NO RELATIONSHIP) (THERE IS RELATIONSHIP)

9.6 Test of Significance (NO RELATIONSHIP) (THERE IS RELATIONSHIP) F-test (ANOVA) Compare P-value (refer to ANOVA table) with α Reject if P-value < α If we reject there is a significant relationship between variable X and Y. (NO RELATIONSHIP) (THERE IS RELATIONSHIP)

9.6 Test of Significance f= Construction of ANOVA table Sum of squares Source of variation Sum of squares Degree of freedom Mean square ftest Regression SSR 1 MSR =SSR/1 f= MSR/MSE Error SSE n-2 MSE =SSE/n-2 Total SST n-1

Exercise The following table gives information on lists of the midterm, X, and final exam, Y, scores for seven students in a statistics class. Find the least squares regression line. Explain the values of r and . Predict the final exam scores the student will get if he/she got 60 marks for midterm test. Do the data support the existence of a linear relationship between midterm and final exam? Test using α = 0.05. X 79 95 81 66 87 94 59 Y 85 97 78 76 84 67

Exercise The manufacturer of Cardio Glide exercise equipment wants to study the relationship between the number of months since the glide was purchased and the length of time the equipment was used last week. Determine the regression equation. At , test whether there is a linear relationship between the variables