ANOVA for Regression ANOVA tests whether the regression model has any explanatory power. In the case of simple regression analysis the ANOVA test and the.

Slides:



Advertisements
Similar presentations
Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6.
Advertisements

Chapter 14, part D Statistical Significance. IV. Model Assumptions The error term is a normally distributed random variable and The variance of  is constant.
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Multiple Regression Analysis
Chapter 12 Simple Linear Regression
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Chapter 15 Multiple Regression. Regression Multiple Regression Model y =  0 +  1 x 1 +  2 x 2 + … +  p x p +  Multiple Regression Equation y = 
Chapter 13 Multiple Regression
Chapter 12 Simple Regression
Chapter 12 Multiple Regression
Chapter 13 Introduction to Linear Regression and Correlation Analysis
1 Pertemuan 13 Uji Koefisien Korelasi dan Regresi Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
Pengujian Parameter Koefisien Korelasi Pertemuan 04 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Chapter Topics Types of Regression Models
Linear Regression Example Data
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
This Week Continue with linear regression Begin multiple regression –Le 8.2 –C & S 9:A-E Handout: Class examples and assignment 3.
Chapter 14 Introduction to Linear Regression and Correlation Analysis
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS & Updated by SPIROS VELIANITIS.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 13-1 Chapter 13 Introduction to Multiple Regression Statistics for Managers.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Chapter 14 Simple Regression
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.
Econ 3790: Business and Economics Statistics
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
1 1 Slide Multiple Regression n Multiple Regression Model n Least Squares Method n Multiple Coefficient of Determination n Model Assumptions n Testing.
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.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Chapter 14 Introduction to Multiple Regression
Econ 3790: Business and Economics Statistics Instructor: Yogesh Uppal
© 2003 Prentice-Hall, Inc.Chap 13-1 Basic Business Statistics (9 th Edition) Chapter 13 Simple Linear Regression.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 15 Multiple Regression n Multiple Regression Model n Least Squares Method n Multiple.
1 1 Slide Simple Linear Regression Coefficient of Determination Chapter 14 BA 303 – Spring 2011.
Chap 12-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 12 Introduction to Linear.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
EQT 373 Chapter 3 Simple Linear Regression. EQT 373 Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value.
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
Chapter 5: Regression Analysis Part 1: Simple Linear Regression.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Chapter 13 Multiple Regression
Regression Analysis Relationship with one independent variable.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Lecture 10: Correlation and Regression Model.
Applied Quantitative Analysis and Practices LECTURE#25 By Dr. Osman Sadiq Paracha.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 14-1 Chapter 14 Introduction to Multiple Regression Statistics for Managers using Microsoft.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 10 th Edition.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
Statistics for Managers Using Microsoft® Excel 5th Edition
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
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 + 
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 14-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Simple linear regression and correlation Regression analysis is the process of constructing a mathematical model or function that can be used to predict.
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 19 Measure of Variation in the Simple Linear Regression Model (Data)Data.
INTRODUCTION TO MULTIPLE REGRESSION MULTIPLE REGRESSION MODEL 11.2 MULTIPLE COEFFICIENT OF DETERMINATION 11.3 MODEL ASSUMPTIONS 11.4 TEST OF SIGNIFICANCE.
Chapter 20 Linear and Multiple Regression
Inference for Least Squares Lines
Statistics for Managers using Microsoft Excel 3rd Edition
Statistics for Business and Economics (13e)
Relationship with one independent variable
Quantitative Methods Simple Regression.
Slides by JOHN LOUCKS St. Edward’s University.
Prepared by Lee Revere and John Large
Relationship with one independent variable
St. Edward’s University
Presentation transcript:

ANOVA for Regression ANOVA tests whether the regression model has any explanatory power. In the case of simple regression analysis the ANOVA test and the test for b1 are identical.

ANOVA for Regression MSE = SSE/(n-2) MSR = SSR/p where p=number of independent variables F = MSR/MSE

ANOVA Hypothesis Test H0: b1 = 0 Ha: b1 ≠ 0 Reject H0 if: F > Fa Or if: p < a

Regression and ANOVA Source of variation Sum of squares Degrees of freedom Mean Square F Regression SSR 1 MSR=SSR/1 F=MSR/MSE Error SSE n-2 MSE=SSE/(n-2) Total SST n-1

ANOVA and Regression ANOVA df SS MS F Significance F Regression 1 3364   df SS MS F Significance F Regression 1 3364 273 1.23E-15 Residual 27 3334 12.3 Total 28 3697 Fa = 4.21 given a=.05, df num. = 1, df denom. = 27

Issues with Hypothesis Test Results Correlation does NOT prove causation The test does not prove we used the correct functional form

Output with Temperature as Y SUMMARY OUTPUT Regression Statistics Multiple R 0.953884648 R Square 0.909895922 Adjusted R Square 0.906558734 Standard Error 5.053605155 Observations 29 ANOVA   df SS MS F Significance F Regression 1 6963.27661 272.6535 1.23118E-15 Residual 27 689.5509766 25.5389251 Total 28 7652.827586 Coefficients t Stat P-value Lower 95% Upper 95% Intercept 67.59301867 1.358242515 49.7650588 4.24E-28 64.80613526 70.3799021 Thousands of cubic feet -1.372438825 0.083116544 -16.512222 1.23E-15 -1.542979885 -1.20189776

Confidence Interval for Estimated Mean Value of y xp = particular or given value of x yp = value of the dependent variable for xp E(yp) = expected value of yp or E(y|x= xp)

Confidence Interval for Estimated Mean Value of y

Computing b0 and b1, Example From example of car age, price: x y 1 15 -3 3 -9 9 14 -1 2 -2 11 4 12 8 5 -4 -20 25 Sum = 20 60 -30 36 Mean = b1 = -0.83 b0 = 15.33

Confidence Interval of Conditional Mean x y 1 15 9 14.5 6.2 0.3 3 14 12.84 0.7 1.3 4 11 3.4 12 12.01 0.0 8 25 7.86 17.4 16 Sum=20 Sum=60 36 SSR=25.0 SSE=5.0 SST=30 Mean=4 Mean=12 b1=-0.833 b0=15.33 r2 = 25/30 = .833

Confidence Interval of Conditional Mean

Confidence Interval of Conditional Mean Given 1-a = .95 and df = 3:

Confidence Interval for Predicted Values of y A confidence interval for a predicted value of y must take into account both random error in the estimate of b1 and the random deviations of individual values from the regression line.

Confidence Interval for Estimated Mean Value of y

Confidence Interval of Individual Value

Confidence Interval of Conditional Mean Given 1-a = .95 and df = 3:

Residual Plots Against x Residual – the difference between the observed value and the predicted value Look for: Evidence of a nonconstant variance Nonlinear relationship

Regression and Outliers Outliers can have a disproportionate effect on the estimated regression line.   Coefficients Intercept 36.19972 X Variable 1 -0.44381

Regression and Outliers One solution is to estimate the model with and without the outlier. Questions to ask: Is the value a error? Does the value reflect some unique circumstance? Is the data point providing unique information about values outside of the range of other observations?

Chapter 15 Multiple Regression

Regression Multiple Regression Model y = b0 + b1x1 + b2x2 + … + bpxp + e Multiple Regression Equation y = b0 + b1x1 + b2x2 + … + bpxp Estimated Multiple Regression Equation

Car Data MPG Weight Year Cylinders 18 3504 70 8 15 3693 3436 16 3433 17 3449 4341 14 4354 4312 4425 3850 3563 3609 …

Multiple Regression, Example   Coefficients Standard Error t Stat Intercept 46.3 0.800 57.8 Weight -0.00765 0.000259 -29.4 R Square 0.687   Coefficients Standard Error t Stat Intercept -14.7 3.96 -3.71 Weight -0.00665 0.000214 -31.0 Year 0.763 0.0490 15.5 R Square 0.807

Multiple Regression, Example   Coefficients Standard Error t Stat Intercept -14.4 4.03 -3.58 Weight -0.00652 0.000460 -14.1 Year 0.760 0.0498 15.2 Cylinders -0.0741 0.232 -0.319 R Square 0.807 Predicted MPG for car weighing 4000 lbs built in 1980 with 6 cylinders: -14.4 -.00652(4000)+.76(80)-.0741(6) =-14.4-26.08+60.8-.4446=19.88

Multiple Regression Model SST = SSR + SSE

Multiple Coefficient of Determination The share of the variation explained by the estimated model. R2 = SSR/SST

F Test for Overall Significance H0: b1 = b1 = . . . = bp Ha: One or more of the parameters is not equal to zero Reject H0 if: F > Fa Or Reject H0 if: p-value < a F = MSR/MSE

ANOVA Table for Multiple Regression Model Source Sum of Squares Degrees of Freedom Mean Squares F Regression SSR p MSR = SSR/p F=MSR/MSE Error SSE n-p-1 MSE = SSE/(n-p-1) Total SST n-1

t Test for Coefficients H0: b1 = 0 Ha: b1 ≠ 0 Reject H0 if: t < -ta/2 or t > ta/2 Or if: p < a t = b1/sb1 With a t distribution of n-p-1 df

Multicollinearity When two or more independent variables are highly correlated. When multicollinearity is severe the estimated values of coefficients will be unreliable Two guidelines for multicollinearity: If the absolute value of the correlation coefficient for two independent variables exceeds 0.7 If the correlation coefficient for independent variable and some other independent variable is greater than the correlation with the dependent variable

Multicollinearity MPG Weight Year Cylinders 1 -0.829 0.578 -0.300   MPG Weight Year Cylinders 1 -0.829 0.578 -0.300 -0.773 0.895 -0.344