EPI809/Spring 2008 1 Testing Individual Coefficients.

Slides:



Advertisements
Similar presentations
Topic 9: Remedies.
Advertisements

Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 14-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
Regression Analysis Simple Regression. y = mx + b y = a + bx.
EPI 809/Spring Probability Distribution of Random Error.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 13 Nonlinear and Multiple Regression.
Creating Graphs on Saturn GOPTIONS DEVICE = png HTITLE=2 HTEXT=1.5 GSFMODE = replace; PROC REG DATA=agebp; MODEL sbp = age; PLOT sbp*age; RUN; This will.
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
LINEAR REGRESSION: Evaluating Regression Models Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: Evaluating Regression Models. Overview Assumptions for Linear Regression Evaluating a Regression Model.
Multiple regression analysis
Statistics for Managers Using Microsoft® Excel 5th Edition
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 12 Multiple Regression
EPI809/Spring Models With Two or More Quantitative Variables.
CHAPTER 4 ECONOMETRICS x x x x x Multiple Regression = more than one explanatory variable Independent variables are X 2 and X 3. Y i = B 1 + B 2 X 2i +
Chapter Topics Types of Regression Models
Statistics for Business and Economics Chapter 11 Multiple Regression and Model Building.
Linear Regression Example Data
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 15-1 Chapter 15 Multiple Regression Model Building Basic Business Statistics 11 th Edition.
This Week Continue with linear regression Begin multiple regression –Le 8.2 –C & S 9:A-E Handout: Class examples and assignment 3.
Correlation and Regression Analysis
Chapter 7 Forecasting with Simple Regression
Regression Model Building Setting: Possibly a large set of predictor variables (including interactions). Goal: Fit a parsimonious model that explains variation.
Copyright ©2011 Pearson Education 15-1 Chapter 15 Multiple Regression Model Building Statistics for Managers using Microsoft Excel 6 th Global Edition.
Chapter 8 Forecasting with Multiple Regression
Regression and Correlation Methods Judy Zhong Ph.D.
Marketing Research Aaker, Kumar, Day and Leone Tenth Edition
Hypothesis Testing in Linear Regression Analysis
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 15-1 Chapter 15 Multiple Regression Model Building Statistics for Managers using Microsoft.
Chapter 12 Multiple Regression and Model Building.
© 2004 Prentice-Hall, Inc.Chap 15-1 Basic Business Statistics (9 th Edition) Chapter 15 Multiple Regression Model Building.
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
12a - 1 © 2000 Prentice-Hall, Inc. Statistics Multiple Regression and Model Building Chapter 12 part I.
© 2003 Prentice-Hall, Inc.Chap 13-1 Basic Business Statistics (9 th Edition) Chapter 13 Simple Linear Regression.
6-3 Multiple Regression Estimation of Parameters in Multiple Regression.
Regression For the purposes of this class: –Does Y depend on X? –Does a change in X cause a change in Y? –Can Y be predicted from X? Y= mX + b Predicted.
Multiple Regression and Model Building Chapter 15 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
6-1 Introduction To Empirical Models Based on the scatter diagram, it is probably reasonable to assume that the mean of the random variable Y is.
Anaregweek11 Regression diagnostics. Regression Diagnostics Partial regression plots Studentized deleted residuals Hat matrix diagonals Dffits, Cook’s.
Lesson Multiple Regression Models. Objectives Obtain the correlation matrix Use technology to find a multiple regression equation Interpret the.
6-3 Multiple Regression Estimation of Parameters in Multiple Regression.
Lecture 4 Introduction to Multiple Regression
Simple Linear Regression (SLR)
Simple Linear Regression (OLS). Types of Correlation Positive correlationNegative correlationNo correlation.
1 Experimental Statistics - week 12 Chapter 12: Multiple Regression Chapter 13: Variable Selection Model Checking.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
I271B QUANTITATIVE METHODS Regression and Diagnostics.
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 15-1 Chapter 15 Multiple Regression Model Building 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.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Multiple Regression Model Building Statistics for Managers.
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 + 
Multiple Regression Learning Objectives n Explain the Linear Multiple Regression Model n Interpret Linear Multiple Regression Computer Output n Test.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
ENGR 610 Applied Statistics Fall Week 11 Marshall University CITE Jack Smith.
12b - 1 © 2000 Prentice-Hall, Inc. Statistics Multiple Regression and Model Building Chapter 12 part II.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
Yandell – Econ 216 Chap 15-1 Chapter 15 Multiple Regression Model Building.
Chapter 15 Multiple Regression Model Building
Chapter 15 Multiple Regression and Model Building
Kakhramon Yusupov June 15th, :30pm – 3:00pm Session 3
Multiple Regression Analysis and Model Building
Statistics for Business and Economics
Multiple Linear Regression
Chapter 13 Additional Topics in Regression Analysis
Presentation transcript:

EPI809/Spring Testing Individual Coefficients

EPI809/Spring Test of Slope Coefficient  p 1. Tests if there is a Linear Relationship Between one X & Y 2. Involves one single population Slope  p 3. Hypotheses: H 0 :  p = 0 vs. H a :  p  0

EPI809/Spring Test of Slope Coefficient  p Test Statistic

EPI809/Spring Test of Slope Coefficient Rejection Rule  Reject H 0 in favor of H a if t falls in colored area  Reject H 0 for H a if P-value = 2P(T>|t|) |t|)<α T=t(n-k-1) 0 t 1-α/2 (n-k-1) Reject H 0 0 α/2 -t 1-α/2 (n-k-1) α/2

EPI809/Spring Individual Coefficients SAS Output Parameter Estimates Parameter Standard Variable DF Estimate Error t Value Pr > |t| Intercept Food weight PP 22 00 11 ^ ^ ^ ^ β p /s ^ pp ^ P-value

EPI809/Spring Testing Model Portions

EPI809/Spring Tests the Contribution of a Set of X Variables to the Relationship With Y 2.Null Hypothesis H 0 :  g+1 =... =  k = 0 Variables in Set Do Not Improve Significantly the Model When All Other Variables Are Included Variables in Set Do Not Improve Significantly the Model When All Other Variables Are Included 3.Used in Selecting X Variables or Models Testing Model Portions

EPI809/Spring Testing Model Portions Nested Models H 0 : Reduced model (  g+1 =... =  k = 0 ) H a : Full model

EPI809/Spring F-Test for Nested Models  Numerator Reduction in SSE from additional parameters df = k-g = number of additional parameters  Denominator SSE of full model df=n-(k+1)=error df of full model

EPI809/Spring Selecting Variables in Model Building

EPI809/Spring Model Building with Computer Searches 1. Rule: Use as Few X Variables As Possible 2. Stepwise Regression Computer Selects X Variable Most Highly Correlated With Y Computer Selects X Variable Most Highly Correlated With Y Continues to Add or Remove Variables Depending on SSE Continues to Add or Remove Variables Depending on SSE 3. Best Subset Approach Computer Examines All Possible Sets Computer Examines All Possible Sets

EPI809/Spring Residual Analysis for goodness of fit

EPI809/Spring Residual (Estimated Errors) Analysis 1. Graphical Analysis of Residuals Plot Estimated Errors vs. X i Values (or pred.) Plot Estimated Errors vs. X i Values (or pred.) Plot Histogram or Stem-&-Leaf of Residuals Plot Histogram or Stem-&-Leaf of Residuals 2. Purposes - Examine Functional Form (Linear vs. Non- Linear Model) - Evaluate Violations of Assumptions (to insure validity of the statistic tests on β’s)

EPI809/Spring We recall Linear Regression Assumptions 1. Mean of Distribution of Error Is 0 2. Distribution of Error Has Constant Variance 3. Distribution of Error is Normal 4. Errors Are Independent

EPI809/Spring Residual Plot for Functional Form Nonlinear pattern Correct Specification

EPI809/Spring Residual Plot for Equal Variance Unequal Variance Correct Specification Fan-shaped. Standardized residuals used typically (residual divided by standard error of prediction)

EPI809/Spring Residual Plot for Independence Not Independent Correct Specification

EPI809/Spring Residuals Diagnostics in SAS symbol v=dot h=2 c=green; PROC REG data=Cow; model milk = food weight; plot residual.*predicted. /cHREF=red cframe=ligr; /cHREF=red cframe=ligr; run;

EPI809/Spring

EPI809/Spring Check for Outlying Observations and Influence analysis symbol v=dot h=2 c=green; proc reg data=cow; model milk = food weight/influence; plot rstudent.*obs. / vref=-2 2 cvref=blue lvref=2 HREF=0 to 7 by 1 cHREF=red cframe=ligr; run;

EPI809/Spring

EPI809/Spring Influence analysis of each obs. The REG Procedure Model: MODEL1 Dependent Variable: Milk Output Statistics Hat Diag Cov DFBETAS Obs Residual RStudent H Ratio DFFITS Intercept Food weight

EPI809/Spring Multicollinearity 1.High Correlation Between X Variables 2.Coefficients Measure Combined Effect 3.Leads to Unstable Coefficients Depending on X Variables in Model 4.Always Exists 5. Example: Using Both Age & Height of children as indep. Var. in Same Model

EPI809/Spring Detecting Multicollinearity 1.Examine Correlation Matrix Correlations Between Pairs of X Variables Are More than With Y Variable Correlations Between Pairs of X Variables Are More than With Y Variable 2.Examine Variance Inflation Factor (VIF) If VIF j > 5 (or 10 according to most references), Multicollinearity Exists If VIF j > 5 (or 10 according to most references), Multicollinearity Exists 3.Few Remedies Obtain New Sample Data Obtain New Sample Data Eliminate One Correlated X Variable Eliminate One Correlated X Variable

EPI809/Spring SAS CODES :VET EXAMPLE PROC CORR data=vet; VAR milk food weight; run;

EPI809/Spring Correlation Matrix SAS Computer Output Pearson Correlation Coefficients, N = 6 Prob > |r| under H0: Rho=0 Milk Food weight Milk Food weight r Y1 r Y2 All 1’s r 12

EPI809/Spring Variance Inflation Factors SAS CODES /* VIF measures the inflation in the variances of the parameter estimates due to collinearity that exists among the regressors or (dependent) variables */ PROC REG data=Cow; model milk = food weight/VIF; run;

EPI809/Spring Variance Inflation Factors Computer Output Parameter Estimates Parameter Standard Variance Variable DF Estimate Error t Value Pr > |t| Inflation Intercept Food weight VIF 1  5

EPI809/Spring Types of Regression Models viewed from the explanatory variables standpoint

EPI809/Spring

EPI809/Spring Regression Models based on a Single Quantitative Explanatory Variable

EPI809/Spring Types of Regression Models

EPI809/Spring First-Order Model With 1 Independent Variable

EPI809/Spring First-Order Model With 1 Independent Variable  1.Relationship Between 1 Dependent & 1 Independent Variable Is Linear

EPI809/Spring First-Order Model With 1 Independent Variable 1.Relationship Between 1 Dependent & 1 Independent Variable Is Linear 2.Used When Expected Rate of Change in Y Per Unit Change in X Is Stable

EPI809/Spring First-Order Model Relationships  1 < 0  1 > 0 Y X 1 Y X 1

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

EPI809/Spring Types of Regression Models

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

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

EPI809/Spring Second-Order Model Relationships  2 > 0  2 < 0

EPI809/Spring Second-Order Model Worksheet Create X 1 2 column. Run regression with Y, X 1, X 1 2.

EPI809/Spring Types of Regression Models

EPI809/Spring Third-Order Model With 1 Independent Variable 1.Relationship Between 1 Dependent & 1 Independent Variable Has a ‘Wave’ 2.Used If 1 Reversal in Curvature

EPI809/Spring Third-Order Model With 1 Independent Variable 1.Relationship Between 1 Dependent & 1 Independent Variable Has a ‘Wave’ 2.Used If 1 Reversal in Curvature 3.Model Linear effect Curvilinear effects

EPI809/Spring Third-Order Model Relationships  3 < 0  3 > 0

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