EPI809/Spring 2008 1 Models With Two or More Quantitative Variables.

Slides:



Advertisements
Similar presentations
Qualitative predictor variables
Advertisements

USING DUMMY VARIABLES IN REGRESSION MODELS. Qualitative Variables Qualitative variables can be introduced into regression models using dummy variables.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 14-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Qualitative Variables and
Regression With Categorical Variables. Overview Regression with Categorical Predictors Logistic Regression.
Multiple Regression [ Cross-Sectional Data ]
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Chapter 13 Multiple Regression
Chapter 14 Introduction to Multiple Regression
Statistics for Managers Using Microsoft® Excel 5th Edition
Interaksi Dalam Regresi (Lanjutan) Pertemuan 25 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Regresi dan Rancangan Faktorial Pertemuan 23 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Chapter 12 Multiple Regression
© 2000 Prentice-Hall, Inc. Chap Multiple Regression Models.
Multiple Regression Models. The Multiple Regression Model The relationship between one dependent & two or more independent variables is a linear function.
Statistics for Business and Economics
© 2003 Prentice-Hall, Inc.Chap 14-1 Basic Business Statistics (9 th Edition) Chapter 14 Introduction to Multiple Regression.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 11 th Edition.
Lecture 27 Polynomial Terms for Curvature Categorical Variables.
Statistics for Business and Economics Chapter 11 Multiple Regression and Model Building.
Multiple Linear Regression
© 2004 Prentice-Hall, Inc.Chap 14-1 Basic Business Statistics (9 th Edition) Chapter 14 Introduction to Multiple Regression.
Ch. 14: The Multiple Regression Model building
EPI809/Spring Testing Individual Coefficients.
Multiple Regression Models
Statistics for Managers Using Microsoft Excel 3rd Edition
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 13-1 Chapter 13 Introduction to Multiple Regression Statistics for Managers.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS & Updated by SPIROS VELIANITIS.
Chapter 14 Introduction to Multiple Regression Sections 1, 2, 3, 4, 6.
Purpose of Regression Analysis Regression analysis is used primarily to model causality and provide prediction –Predicts the value of a dependent (response)
© 2003 Prentice-Hall, Inc.Chap 11-1 Business Statistics: A First Course (3 rd Edition) Chapter 11 Multiple Regression.
Chapter 12 Multiple Regression and Model Building.
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 Multiple Regression n Multiple Regression Model n Least Squares Method n Multiple Coefficient of Determination n Model Assumptions n Testing.
Chapter 14 Introduction to Multiple Regression
Chapter 14 Multiple Regression Models. 2  A general additive multiple regression model, which relates a dependent variable y to k predictor variables.
Business Statistics, 4e, by Ken Black. © 2003 John Wiley & Sons Business Statistics, 4e by Ken Black Chapter 15 Building Multiple Regression Models.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 15 Multiple Regression n Multiple Regression Model n Least Squares Method n Multiple.
Copyright © 2012 Pearson Education, Inc. All rights reserved. Chapter 5 Principles of Model Building.
Lab 5 instruction.  a collection of statistical methods to compare several groups according to their means on a quantitative response variable  Two-Way.
Chap 14-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics.
Chapter 13 Multiple Regression
Lecture 4 Introduction to Multiple Regression
Analysis of Covariance Combines linear regression and ANOVA Can be used to compare g treatments, after controlling for quantitative factor believed to.
Regression Models for Quantitative (Numeric) and Qualitative (Categorical) Predictors KNNL – Chapter 8.
Copyright © 2012 Pearson Education, Inc. All rights reserved Chapter 12 Multiple Regression and Model Building.
28. Multiple regression The Practice of Statistics in the Life Sciences Second Edition.
Multiple Regression  Similar to simple regression, but with more than one independent variable R 2 has same interpretation R 2 has same interpretation.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 14-1 Chapter 14 Introduction to Multiple Regression Statistics for Managers using Microsoft.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice- Hall, Inc. Chap 14-1 Business Statistics: A Decision-Making Approach 6 th Edition.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 10 th Edition.
Chap 13-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 13 Multiple Regression and.
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
Exam 2 Review. Data referenced throughout review An Educational Testing Service (ETS) research scientist used multiple regression analysis to model y,
Multiple Regression Learning Objectives n Explain the Linear Multiple Regression Model n Interpret Linear Multiple Regression Computer Output n Test.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 14-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
12b - 1 © 2000 Prentice-Hall, Inc. Statistics Multiple Regression and Model Building Chapter 12 part II.
1 Linear Regression Model. 2 Types of Regression Models.
Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L12.1 Lecture 12: Generalized Linear Models (GLM) What are they? When do.
Yandell – Econ 216 Chap 15-1 Chapter 15 Multiple Regression Model Building.
Chapter 14 Introduction to Multiple Regression
Chapter 15 Multiple Regression and Model Building
Lecture 10 Regression Analysis
Multiple Regression Analysis and Model Building
John Loucks St. Edward’s University . SLIDES . BY.
Statistics for Business and Economics
Korelasi Parsial dan Pengontrolan Parsial Pertemuan 14
Presentation transcript:

EPI809/Spring Models With Two or More Quantitative Variables

EPI809/Spring Types of Regression Models

EPI809/Spring First-Order Model With 2 Independent Variables 1. Relationship Between 1 Dependent & 2 Independent Variables Is a Linear Function 2. Assumes No Interaction Between X 1 & X 2 Effect of X 1 on E(Y) Is the Same Regardless of X 2 Values Effect of X 1 on E(Y) Is the Same Regardless of X 2 Values

EPI809/Spring First-Order Model With 2 Independent Variables 1. Relationship Between 1 Dependent & 2 Independent Variables Is a Linear Function 2. Assumes No Interaction Between X 1 & X 2 Effect of X 1 on E(Y) Is the Same Regardless of X 2 Values Effect of X 1 on E(Y) Is the Same Regardless of X 2 Values 3. Model

EPI809/Spring No Interaction

EPI809/Spring No Interaction E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2

EPI809/Spring No Interaction E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2 E(Y) = 1 + 2X 1 + 3(0) = 1 + 2X 1

EPI809/Spring No Interaction E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2 E(Y) = 1 + 2X 1 + 3(1) = 4 + 2X 1 E(Y) = 1 + 2X 1 + 3(0) = 1 + 2X 1

EPI809/Spring No Interaction E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3(2) = 7 + 2X 1 E(Y) = 1 + 2X 1 + 3X 2 E(Y) = 1 + 2X 1 + 3(1) = 4 + 2X 1 E(Y) = 1 + 2X 1 + 3(0) = 1 + 2X 1

EPI809/Spring No Interaction E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3(2) = 7 + 2X 1 E(Y) = 1 + 2X 1 + 3X 2 E(Y) = 1 + 2X 1 + 3(1) = 4 + 2X 1 E(Y) = 1 + 2X 1 + 3(0) = 1 + 2X 1 E(Y) = 1 + 2X 1 + 3(3) = X 1

EPI809/Spring No Interaction Effect (slope) of X 1 on E(Y) does not depend on X 2 value E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3(2) = 7 + 2X 1 E(Y) = 1 + 2X 1 + 3X 2 E(Y) = 1 + 2X 1 + 3(1) = 4 + 2X 1 E(Y) = 1 + 2X 1 + 3(0) = 1 + 2X 1 E(Y) = 1 + 2X 1 + 3(3) = X 1

EPI809/Spring First-Order Model Worksheet Run regression with Y, X 1, X 2

EPI809/Spring Types of Regression Models

EPI809/Spring Interaction Model With 2 Independent Variables 1. Hypothesizes Interaction Between Pairs of X Variables Response to One X Variable Varies at Different Levels of Another X Variable Response to One X Variable Varies at Different Levels of Another X Variable

EPI809/Spring Interaction Model With 2 Independent Variables 1. Hypothesizes Interaction Between Pairs of X Variables Response to One X Variable Varies at Different Levels of Another X Variable Response to One X Variable Varies at Different Levels of Another X Variable 2. Contains Two-Way Cross Product Terms

EPI809/Spring Hypothesizes Interaction Between Pairs of X Variables Response to One X Variable Varies at Different Levels of Another X Variable Response to One X Variable Varies at Different Levels of Another X Variable 2.Contains Two-Way Cross Product Terms 3.Can Be Combined With Other Models Example: Dummy-Variable Model Example: Dummy-Variable Model Interaction Model With 2 Independent Variables

EPI809/Spring Effect of Interaction

EPI809/Spring Effect of Interaction 1.Given:

EPI809/Spring Effect of Interaction 1.Given: 2.Without Interaction Term, Effect of X 1 on Y Is Measured by  1

EPI809/Spring Effect of Interaction 1.Given: 2.Without Interaction Term, Effect of X 1 on Y Is Measured by  1 3.With Interaction Term, Effect of X 1 on Y Is Measured by  1 +  3 X 2 Effect changes As X 2 changesEffect changes As X 2 changes

EPI809/Spring Interaction Model Relationships

EPI809/Spring Interaction Model Relationships E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2 + 4X 1 X 2

EPI809/Spring Interaction Model Relationships E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2 + 4X 1 X 2 E(Y) = 1 + 2X 1 + 3(0) + 4X 1 (0) = 1 + 2X 1

EPI809/Spring Interaction Model Relationships E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2 + 4X 1 X 2 E(Y) = 1 + 2X 1 + 3(1) + 4X 1 (1) = 4 + 6X 1 E(Y) = 1 + 2X 1 + 3(0) + 4X 1 (0) = 1 + 2X 1

EPI809/Spring Interaction Model Relationships Effect (slope) of X 1 on E(Y) does depend on X 2 value E(Y) X1X1X1X E(Y) = 1 + 2X 1 + 3X 2 + 4X 1 X 2 E(Y) = 1 + 2X 1 + 3(1) + 4X 1 (1) = 4 + 6X 1 E(Y) = 1 + 2X 1 + 3(0) + 4X 1 (0) = 1 + 2X 1

EPI809/Spring Interaction Model Worksheet Multiply X 1 by X 2 to get X 1 X 2. Run regression with Y, X 1, X 2, X 1 X 2

EPI809/Spring Thinking challenge Assume Y: Milk yield, X1: food intake and X2: weight Assume Y: Milk yield, X1: food intake and X2: weight  Assume the following model with interaction  Interpret the interaction Y = 1 + 2X 1 + 3X 2 + 4X 1 X 2 Y = 1 + 2X 1 + 3X 2 + 4X 1 X 2 ^

EPI809/Spring Types of Regression Models

EPI809/Spring Second-Order Model With 2 Independent Variables  1.Relationship Between 1 Dependent & 2 or More Independent Variables Is a Quadratic Function  2.Useful 1 St Model If Non-Linear Relationship Suspected

EPI809/Spring Second-Order Model With 2 Independent Variables  1.Relationship Between 1 Dependent & 2 or More Independent Variables Is a Quadratic Function  2.Useful 1 St Model If Non-Linear Relationship Suspected  3.Model

EPI809/Spring Second-Order Model Worksheet Multiply X 1 by X 2 to get X 1 X 2 ; then X 1 2, X 2 2. Run regression with Y, X 1, X 2, X 1 X 2, X 1 2, X 2 2.

EPI809/Spring Models With One Qualitative Independent Variable

EPI809/Spring Types of Regression Models

EPI809/Spring Dummy-Variable Model 1.Involves Categorical X Variable With 2 Levels e.g., Male-Female; College-No College e.g., Male-Female; College-No College 2.Variable Levels Coded 0 & 1 3.Number of Dummy Variables Is 1 Less Than Number of Levels of Variable 4. May Be Combined With Quantitative Variable (1 st Order or 2 nd Order Model)

EPI809/Spring Dummy-Variable Model Worksheet X 2 levels: 0 = Group 1; 1 = Group 2. Run regression with Y, X 1, X 2

EPI809/Spring Interpreting Dummy-Variable Model Equation

EPI809/Spring Interpreting Dummy-Variable Model Equation Given: Starting s alary of c ollege gra d' s s GPA i i if Female f Male         Y Y X X X X Y Y X X X X i i i i i i                  

EPI809/Spring Interpreting Dummy-Variable Model Equation Given: Starting s alary of c ollege gra d' s s GPA Males (                     ): Y Y X X X X Y Y X X Y Y X X X X i i i i i i i i i i i i X X                                       (0) i i if Female f Male X X  

EPI809/Spring Interpreting Dummy-Variable Model Equation Same slopes Given: Starting s alary of c ollege gra d' s s GPA Males (                     ): Y Y X X X X Y Y X X Y Y X X X X i i i i i i i i i i i i X X                                       (0) i i if Female f Male X X               Y Y X X X X i i i i i i                    (1) Females ( ): X X        ) 2 2

EPI809/Spring Dummy-Variable Model Relationships Y X1X1X1X1 0 0 Same Slopes  1 0000  0 +  2 ^ ^ ^ ^ Females Males

EPI809/Spring Dummy-Variable Model Example

EPI809/Spring Dummy-Variable Model Example Computer O utput: f Male if Female i i   Y Y X X X X X X i i i i i i        

EPI809/Spring Dummy-Variable Model Example Computer O utput: Males (     ): Y Y X X X X Y Y X X X X i i i i i i i i i i i i X X                   (0) f Male if Female i i X X  

EPI809/Spring Dummy-Variable Model Example Same slopes Computer O utput: Males (     ): Y Y X X X X Y Y X X X X i i i i i i i i i i i i X X                   (0) f Male if Female i i X X   Females   Y Y X X X X i i i i i i           (1) (3 + 7) ): (X(X (X(X  

EPI809/Spring Sample SAS codes for fitting linear regressions with interactions and higher order terms PROC GLM data=complex; Class gender; model salary = gpa gender gpa*gender; RUN;

EPI809/Spring Conclusion 1. Explained the Linear Multiple Regression Model 2. Tested Overall Significance 3. Described Various Types of Models 4. Evaluated Portions of a Regression Model 5. Interpreted Linear Multiple Regression Computer Output 6. Described Stepwise Regression 7. Explained Residual Analysis 8. Described Regression Pitfalls