1 Experimental Statistics Spring 2006 - week 6 Chapter 15: Factorial Models (15.5)

Slides:



Advertisements
Similar presentations
A. The Basic Principle We consider the multivariate extension of multiple linear regression – modeling the relationship between m responses Y 1,…,Y m and.
Advertisements

Analysis of Variance (ANOVA) ANOVA can be used to test for the equality of three or more population means We want to use the sample results to test the.
Analysis of Variance Compares means to determine if the population distributions are not similar Uses means and confidence intervals much like a t-test.
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.
Multiple regression analysis
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 11 Analysis of Variance
Analysis of Variance: ANOVA. Group 1: control group/ no ind. Var. Group 2: low level of the ind. Var. Group 3: high level of the ind var.
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.
Statistics for Managers Using Microsoft® Excel 5th Edition
k r Factorial Designs with Replications r replications of 2 k Experiments –2 k r observations. –Allows estimation of experimental errors Model:
Copyright ©2011 Pearson Education 11-1 Chapter 11 Analysis of Variance Statistics for Managers using Microsoft Excel 6 th Global Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chap 10-1 Analysis of Variance. Chap 10-2 Overview Analysis of Variance (ANOVA) F-test Tukey- Kramer test One-Way ANOVA Two-Way ANOVA Interaction Effects.
Chapter 12: Analysis of Variance
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
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.
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 Experimental Statistics - week 7 Chapter 15: Factorial Models (15.5) Chapter 17: Random Effects Models.
QNT 531 Advanced Problems in Statistics and Research Methods
1 1 Slide © 2006 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 © 2005 Thomson/South-Western Chapter 13, Part A Analysis of Variance and Experimental Design n Introduction to Analysis of Variance n Analysis.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 13 Experimental Design and Analysis of Variance nIntroduction to Experimental Design.
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.
1 Experimental Statistics - week 6 Chapter 15: Randomized Complete Block Design (15.3) Factorial Models (15.5)
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
7-1 The Strategy of Experimentation Every experiment involves a sequence of activities: 1.Conjecture – the original hypothesis that motivates the.
Testing Multiple Means and the Analysis of Variance (§8.1, 8.2, 8.6) Situations where comparing more than two means is important. The approach to testing.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
5-5 Inference on the Ratio of Variances of Two Normal Populations The F Distribution We wish to test the hypotheses: The development of a test procedure.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
STA305 week 51 Two-Factor Fixed Effects Model The model usually used for this design includes effects for both factors A and B. In addition, it includes.
The Completely Randomized Design (§8.3)
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
By: Corey T. Williams 03 May Situation Objective.
1 Experimental Statistics - week 9 Chapter 17: Models with Random Effects Chapter 18: Repeated Measures.
Topic 24: Two-Way ANOVA. Outline Two-way ANOVA –Data –Cell means model –Parameter estimates –Factor effects model.
Experimental Statistics - week 3
Chapter 4 Analysis of Variance
7-2 Factorial Experiments A significant interaction mask the significance of main effects. Consequently, when interaction is present, the main effects.
One-Way Analysis of Variance Recapitulation Recapitulation 1. Comparing differences among three or more subsamples requires a different statistical test.
1 Experimental Statistics - week 13 Multiple Regression Miscellaneous Topics.
1 An example of a more complex design (a four level nested anova) 0 %, 20% and 40% of a tree’s roots were cut with the purpose to study the influence.
Experimental Statistics - week 9
Significance Tests for Regression Analysis. A. Testing the Significance of Regression Models The first important significance test is for the regression.
1 1 Slide © 2011 Cengage Learning Assumptions About the Error Term  1. The error  is a random variable with mean of zero. 2. The variance of , denoted.
1 Experimental Statistics - week 8 Chapter 17: Mixed Models Chapter 18: Repeated Measures.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
1/54 Statistics Analysis of Variance. 2/54 Statistics in practice Introduction to Analysis of Variance Analysis of Variance: Testing for the Equality.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 Experimental Statistics - week 5 Chapter 9: Multiple Comparisons Chapter 15: Randomized Complete Block Design (15.3)
Chapter 11 Analysis of Variance
Two-Way Analysis of Variance Chapter 11.
Factorial Experiments
i) Two way ANOVA without replication
Comparing Three or More Means
Statistics Analysis of Variance.
Statistics for Business and Economics (13e)
After ANOVA If your F < F critical: Null not rejected, stop right now!! If your F > F critical: Null rejected, now figure out which of the multiple means.
Chapter 11 Analysis of Variance
Experimental Statistics - Week 4 (Lab)
ANOVA Analysis of Variance.
Experimental Statistics - week 8
Chapter 10 – Part II Analysis of Variance
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

1 Experimental Statistics Spring week 6 Chapter 15: Factorial Models (15.5)

2 STIMULUS EXAMPLE: Personal computer presents stimulus, and person responds. Study of how RESPONSE TIME is effected by a WARNING given prior to the stimulus: 2-factors of interest: Warning Type --- auditory or visual Time between warning and stimulus -- 5 sec, 10 sec, or 15 sec.

Auditory Visual 5 sec 10 sec 15 sec Warning Time Note: “Sort of like RCB” -- what is the difference? Question: How would you randomize? - 18 subjects - 1 subject

4 Observed data Level of Factor A Level of Factor B Replication (warning type) (time) (response time) Stimulus Data

5 Factor A Factor B 2-Factor ANOVA Data

6

7 A Possible Model for STIMULUS Data Note: so according to this model Note: The model assumes that the difference between types is the same for all times i = type, j = time

8 Auditory Visual Hypothetical Cell Means

9 Similarly i.e. the model says the difference between times j and j' is the same for all types We may not want to make these assumptions!!

10 Auditory Visual Hypothetical Cell Means Auditory Visual

11 Model for 2-factor Design where

12 Sum-of-Squares Breakdown (2-factor ANOVA) SSA SSB SSAB SSE

13 2-Factor ANOVA Table (2-Factor Completely Randomized Design) Source SS df MS F Main Effects A SSA a  1 B SSB b  1 Interaction AB SSAB ( a  1)(b  1) Error SSE ab(n  1) Total TSS abn  See page 900

14 Hypotheses: Main Effects: Interactions:

15 data stimulus; input type$ time response; datalines; A A A A A A A A A V V V V V V V V V ; PROC GLM; CLASSES type time; MODEL response=type time type*time; means type/lsd; means time/lsd; TITLE ‘Stimulus Data'; run; Stimulus Data -- SAS

16 The GLM Procedure Dependent Variable: response Sum of Source DF Squares Mean Square F Value Pr > F Model <.0001 Error Corrected Total R-Square Coeff Var Root MSE response Mean Source DF Type I SS Mean Square F Value Pr > F type <.0001 time type*time GLM Output

17 Testing Procedure 2 factor CRD Design Step 1. Test for interaction. Step 2. (a) IF there IS NOT a significant interaction - test the main effects (b) IF there IS a significant interaction - compare cell means

18 Stimulus Example Test for Interaction: Therefore we DO NOT reject the null hypothesis of no interaction.

19 Stimulus Data

20 Stimulus Example Test for Interaction: Therefore we DO NOT reject the null hypothesis of no interaction. Thus - based on the testing procedure, we next test for main effects.

Testing Main Effects: For each main effect (i.e. A and B) Note: I’ll use LSD from this point on unless otherwise noted. In General: where N denotes the # of observations involved in the computation of a marginal mean.

22 Auditory Visual 5 sec 10 sec 15 sec Warning Time

23 Stimulus Example Test for Main Effects: Thus, there is a significant effect due to type but not time A (type): B (time): - i.e. we can use LSD to compare marginal means for type - we will do this here for illustration although MC not needed when there are only 2 groups

24 The GLM Procedure t Tests (LSD) for response NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 12 Error Mean Square Critical Value of t Least Significant Difference Means with the same letter are not significantly different. t Grouping Mean N type A V B A GLM Output -- Comparing “Types”

25 The GLM Procedure t Tests (LSD) for response NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 12 Error Mean Square Critical Value of t Least Significant Difference Means with the same letter are not significantly different. t Grouping Mean N time A A A A A GLM Output -- Comparing “Times”

26

27

28 Pilot Plant Data Variable = Chemical Yield Factors:A – Temperature (160, 180) B – Catalyst (C1, C2) 160 C C C C C C C C C C C C C C C C2 81

29 Pilot Plant Data Variable = Chemical Yield Factors:A – Temperature (160, 180) B – Catalyst (C1, C2) Catalyst Temperature

30

31

32 Pilot Plant -- Probability Plot of Residuals

33 DATA one; INPUT temp catalyst$ yield; datalines; 160 C C C C2 81 ; PROC GLM; class temp catalyst; MODEL yield=temp catalyst temp*catalyst; Title 'Pilot Plant Example -- 2-way ANOVA'; MEANS temp catalyst/LSD; RUN; PROC SORT;BY temp catalyst; PROC MEANS; BY temp catalyst; OUTPUT OUT=cells MEAN=yield; RUN;

34 Pilot Plant Example -- 2-way ANOVA General Linear Models Procedure Dependent Variable: YIELD Sum of Mean Source DF Squares Square F Value Pr > F Model Error Corrected Total R-Square C.V. Root MSE YIELD Mean Source DF Type I SS Mean Square F Value Pr > F TEMP CATALYST TEMP*CATALYST Pilot Plant -- GLM Output

35 RECALL: Testing Procedure 2 factor CRD Design Step 1. Test for interaction. Step 2. (a) IF there IS NOT a significant interaction - test the main effects (b) IF there IS a significant interaction - compare cell means

36 Pilot Plant Example Test for Interaction: Therefore we reject the null hypothesis of no interaction - and conclude that there is an interaction between temperature and catalyst. Thus, we DO NOT test main effects

37

38

39 Since there is a significant interaction, we do not test for main effects! - instead compare “Cell Means” - NOTE: interaction plot is a plot of the cell means

40 Pilot Plant Data Variable = Chemical Yield Factors:A – Temperature (160, 180) B – Catalyst (C1, C2) Catalyst Temperature

41 Pilot Plant Data -- cell means Catalyst Temperature

Comparing Cell Means: If there is significant interaction, then we compare the a x b cell means using the criteria below. Procedure similar to that for comparing marginal means: where N denotes the # of observations involved in the computation of a cell mean.

43 The GLM Procedure t Tests (LSD) for yield NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 12 Error Mean Square 14.5 Critical Value of t Least Significant Difference Means with the same letter are not significantly different. t Grouping Mean N temp A B GLM Output -- Comparing “Temps” - disregard

44 The GLM Procedure t Tests (LSD) for yield NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate. Alpha 0.05 Error Degrees of Freedom 12 Error Mean Square 14.5 Critical Value of t Least Significant Difference Means with the same letter are not significantly different. t Grouping Mean N catalyst A C2 A A C1 GLM Output -- Comparing “Catalysts” - disregard

45 Note: - SAS does not provide a comparison of cell means

46 Pilot Plant Data -- cell means CatalystCatalyst Temperature LSD: MSE = N = LSD = C2/160 C1/160 C1/180 C2/

47 Testing Procedure Revisted 2 factor CRD Design Step 1. Test for interaction. Step 2. (a) IF there IS NOT a significant interaction - test the main effects (b) IF there IS a significant interaction - compare a x b cell means (by hand) Main Idea: We are trying to determine whether the factors effect the response either individually or collectively.