Topic 21: ANOVA and Linear Regression. Outline Review cell means and factor effects models Relationship between factor effects constraint and explanatory.

Slides:



Advertisements
Similar presentations
1 Regression as Moment Structure. 2 Regression Equation Y =  X + v Observable Variables Y z = X Moment matrix  YY  YX  =  YX  XX Moment structure.
Advertisements

Topic 12: Multiple Linear Regression
A. The Basic Principle We consider the multivariate extension of multiple linear regression – modeling the relationship between m responses Y 1,…,Y m and.
 Population multiple regression model  Data for multiple regression  Multiple linear regression model  Confidence intervals and significance tests.
Topic 32: Two-Way Mixed Effects Model. Outline Two-way mixed models Three-way mixed models.
Topic 15: General Linear Tests and Extra Sum of Squares.
EPI 809/Spring Probability Distribution of Random Error.
Topic 3: Simple Linear Regression. Outline Simple linear regression model –Model parameters –Distribution of error terms Estimation of regression parameters.
Cal State Northridge  320 Andrew Ainsworth PhD Regression.
Classical Regression III
1 Multifactor ANOVA. 2 What We Will Learn Two-factor ANOVA K ij =1 Two-factor ANOVA K ij =1 –Interaction –Tukey’s with multiple comparisons –Concept of.
Statistics 350 Lecture 16. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
Analysis of Variance: Inferences about 2 or More Means
Lesson #23 Analysis of Variance. In Analysis of Variance (ANOVA), we have: H 0 :  1 =  2 =  3 = … =  k H 1 : at least one  i does not equal the others.
ANalysis Of VAriance (ANOVA) Comparing > 2 means Frequently applied to experimental data Why not do multiple t-tests? If you want to test H 0 : m 1 = m.
Multiple Regression Models
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 +
Experimental Design Terminology  An Experimental Unit is the entity on which measurement or an observation is made. For example, subjects are experimental.
1 Regression Analysis Regression used to estimate relationship between dependent variable (Y) and one or more independent variables (X). Consider the variable.
Example of Simple and Multiple Regression
Topic 16: Multicollinearity and Polynomial Regression.
Topic 28: Unequal Replication in Two-Way ANOVA. Outline Two-way ANOVA with unequal numbers of observations in the cells –Data and model –Regression approach.
© 2002 Prentice-Hall, Inc.Chap 14-1 Introduction to Multiple Regression Model.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
Topic 7: Analysis of Variance. Outline Partitioning sums of squares Breakdown degrees of freedom Expected mean squares (EMS) F test ANOVA table General.
Topic 14: Inference in Multiple Regression. Outline Review multiple linear regression Inference of regression coefficients –Application to book example.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
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.
STA305 week21 The One-Factor Model Statistical model is used to describe data. It is an equation that shows the dependence of the response variable upon.
Randomized Block Design (Kirk, chapter 7) BUSI 6480 Lecture 6.
Discussion 3 1/20/2014. Outline How to fill out the table in the appendix in HW3 What does the Model statement do in SAS Proc GLM ( please download lab.
Chapter 11 Linear Regression Straight Lines, Least-Squares and More Chapter 11A Can you pick out the straight lines and find the least-square?
Relationship between two variables Two quantitative variables: correlation and regression methods Two qualitative variables: contingency table methods.
Topic 17: Interaction Models. Interaction Models With several explanatory variables, we need to consider the possibility that the effect of one variable.
Topic 6: Estimation and Prediction of Y h. Outline Estimation and inference of E(Y h ) Prediction of a new observation Construction of a confidence band.
Analisa Regresi Week 7 The Multiple Linear Regression Model
Inference for regression - More details about simple linear regression IPS chapter 10.2 © 2006 W.H. Freeman and Company.
Chapter 13 Multiple Regression
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
STA 286 week 131 Inference for the Regression Coefficient Recall, b 0 and b 1 are the estimates of the slope β 1 and intercept β 0 of population regression.
Topic 30: Random Effects. Outline One-way random effects model –Data –Model –Inference.
Topic 25: Inference for Two-Way ANOVA. Outline Two-way ANOVA –Data, models, parameter estimates ANOVA table, EMS Analytical strategies Regression approach.
Topic 26: Analysis of Covariance. Outline One-way analysis of covariance –Data –Model –Inference –Diagnostics and rememdies Multifactor analysis of covariance.
PSYC 3030 Review Session April 19, Housekeeping Exam: –April 26, 2004 (Monday) –RN 203 –Use pencil, bring calculator & eraser –Make use of your.
Topic 4: Statistical Inference. Outline Statistical inference –confidence intervals –significance tests Statistical inference for β 1 Statistical inference.
Session 13: Correlation (Zar, Chapter 19). (1)Regression vs. correlation Regression: R 2 is the proportion that the model explains of the variability.
Topic 24: Two-Way ANOVA. Outline Two-way ANOVA –Data –Cell means model –Parameter estimates –Factor effects model.
1 Experimental Statistics Spring week 6 Chapter 15: Factorial Models (15.5)
Topic 20: Single Factor Analysis of Variance. Outline Analysis of Variance –One set of treatments (i.e., single factor) Cell means model Factor effects.
Inference for regression - More details about simple linear regression IPS chapter 10.2 © 2006 W.H. Freeman and Company.
Experimental Statistics - week 9
Topic 29: Three-Way ANOVA. Outline Three-way ANOVA –Data –Model –Inference.
Anareg Week 10 Multicollinearity Interesting special cases Polynomial regression.
Topic 27: Strategies of Analysis. Outline Strategy for analysis of two-way studies –Interaction is not significant –Interaction is significant What if.
Topic 22: Inference. Outline Review One-way ANOVA Inference for means Differences in cell means Contrasts.
Summary of the Statistics used in Multiple Regression.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
The “Big Picture” (from Heath 1995). Simple Linear Regression.
1 Linear Regression Model. 2 Types of Regression Models.
The 2 nd to last topic this year!!.  ANOVA Testing is similar to a “two sample t- test except” that it compares more than two samples to one another.
Lecture #25 Tuesday, November 15, 2016 Textbook: 14.1 and 14.3
Relationship with one independent variable
Topic 31: Two-way Random Effects Models
Simple Linear Regression
Relationship with one independent variable
Essentials of Statistics for Business and Economics (8e)
Experimental Statistics - week 8
Presentation transcript:

Topic 21: ANOVA and Linear Regression

Outline Review cell means and factor effects models Relationship between factor effects constraint and explanatory variables

Cell Means Model Y ij = μ i + ε ij –where μ i is the theoretical mean or expected value of all observations at level i –The ε ij are iid N(0, σ 2 ) –Y ij ~N(μ i, σ 2 ), independent

Factor Effects Model A reparameterization of the cell means model Useful way at looking at more complicated models Null hypotheses are easier to state Y ij = μ +  i + ε ij –the ε ij are iid N(0, σ 2 )

Parameters The cell means model has r+1 parameters – r μ’s and σ 2 The factor effects model has r+2 parameters – μ, the r  ’s, and σ 2 Build restriction on  ’s in factor effects model to remove one degree of freedom (e.g., Σ i  i = 0 or  r = 0)

Regression Approach We can use multiple regression to reproduce the results based on the factor effects model Y ij = μ +  i +  ij and we will restrict Σ i  i = 0

Coding for Explanatory Variables Σ i  i = 0 implies  r = -  1 -  2 -…-  r-1 Due to restriction, i = 1 to r-1 columns X ij = 1 if Y is observation from level i = -1 if Y is observation at level r = 0 if Y is from any other level

KNNL Example Recall KNNL p 687 from Topic 20 It is a bit messy because n i = 5, 5, 4, 5 The grand mean is not necessarily the same as the mean of the group means (i.e., μ = (Σ i n i μ i )/n T ) We will calculate these two values You will have an easier example in the homework (n i is constant) where they are the same value

Means proc means data=a1 noprint; class design; var cases; output out=a2 mean=mclass; run; proc print data=a2; run;

Output Obs des _TYPE_ _FREQ_ mclass Grand sample mean…not the average of the four trt sample means shown below it

The mean of the means proc means data=a2 mean; where _TYPE_ eq 1; var mclass; run;

Output The MEANS Procedure Analysis Variable : mclass Mean ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Not a big difference from grand sample mean in this example

Generate explanatory variables for REG data a1; set a1; x1=(design eq 1)-(design eq 4); x2=(design eq 2)-(design eq 4); x3=(design eq 3)-(design eq 4); proc print data=a1; run;

Output Obs cases design x1 x2 x

Output with parameters des x1 x2 x μ +  μ +  μ +  μ -  1 -  2 -  3  is the result of including an intercept

Run the regression proc reg data=a1; model cases=x1 x2 x3; run;

Output Anova Source DF SS MS F P Model <.0001 Error Total Same ANOVA table as GLM

Regression coefficients Var Est Int mean of the means x Y 1./n 1 - Int x Y 2./n 2 - Int x Y 3./n 3 - Int = = = =27.2 Get same trt means

Last slide Read KNNL Chapter 16 We used program topic21.sas to generate the output for today