Factorial Treatment Structure: Part I. Lukas Meier, Seminar für Statistik

Similar documents
Lec 5: Factorial Experiment

Two-Way Factorial Designs

Power & Sample Size Calculation

STAT22200 Spring 2014 Chapter 8A

Nesting and Mixed Effects: Part I. Lukas Meier, Seminar für Statistik

Multiple comparisons - subsequent inferences for two-way ANOVA

y = µj n + β 1 b β b b b + α 1 t α a t a + e

Stat 579: Generalized Linear Models and Extensions

Factorial designs. Experiments

Rank-Based Methods. Lukas Meier

3. Factorial Experiments (Ch.5. Factorial Experiments)

Incomplete Block Designs. Lukas Meier, Seminar für Statistik

STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test

Lecture 10. Factorial experiments (2-way ANOVA etc)

Chap The McGraw-Hill Companies, Inc. All rights reserved.

Analysis of Variance. Read Chapter 14 and Sections to review one-way ANOVA.

21.0 Two-Factor Designs

SIZE = Vehicle size: 1 small, 2 medium, 3 large. SIDE : 1 right side of car, 2 left side of car

Topic 29: Three-Way ANOVA

A Study on Factorial Designs with Blocks Influence and Inspection Plan for Radiated Emission Testing of Information Technology Equipment

20.0 Experimental Design

Fractional Factorial Designs

Unbalanced Designs & Quasi F-Ratios

One-way ANOVA (Single-Factor CRD)

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

Lecture 9: Factorial Design Montgomery: chapter 5

Chapter 5 Introduction to Factorial Designs

Analysis of Variance: Part 1

MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS FALL 1999

Stat 217 Final Exam. Name: May 1, 2002

DESAIN EKSPERIMEN Analysis of Variances (ANOVA) Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

Battery Life. Factory

Analysis of Variance

The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization.

Econ 3790: Business and Economic Statistics. Instructor: Yogesh Uppal

Unit 12: Analysis of Single Factor Experiments

Open book and notes. 120 minutes. Covers Chapters 8 through 14 of Montgomery and Runger (fourth edition).

Factorial and Unbalanced Analysis of Variance

Design of Experiments. Factorial experiments require a lot of resources

STAT 705 Chapters 23 and 24: Two factors, unequal sample sizes; multi-factor ANOVA

Solution to Final Exam

Specific Differences. Lukas Meier, Seminar für Statistik

Summary of Chapter 7 (Sections ) and Chapter 8 (Section 8.1)

Contents. TAMS38 - Lecture 6 Factorial design, Latin Square Design. Lecturer: Zhenxia Liu. Factorial design 3. Complete three factor design 4

Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, E(X i X) 2 = (µ i µ) 2 + n 1 n σ2

Lec 1: An Introduction to ANOVA

Lecture 6: Single-classification multivariate ANOVA (k-group( MANOVA)

Design and Analysis of Experiments

STAT Chapter 10: Analysis of Variance

Two Factor Full Factorial Design with Replications

Outline Topic 21 - Two Factor ANOVA

STAT 135 Lab 9 Multiple Testing, One-Way ANOVA and Kruskal-Wallis

STAT Final Practice Problems

PSYC 331 STATISTICS FOR PSYCHOLOGISTS

Chapter 5 Introduction to Factorial Designs Solutions

Addition of Center Points to a 2 k Designs Section 6-6 page 271

Analysis of Variance

In a one-way ANOVA, the total sums of squares among observations is partitioned into two components: Sums of squares represent:

2-way analysis of variance

. Example: For 3 factors, sse = (y ijkt. " y ijk

Ch 3: Multiple Linear Regression

Analysis of variance

The Random Effects Model Introduction

Design & Analysis of Experiments 7E 2009 Montgomery

Topic 28: Unequal Replication in Two-Way ANOVA

Stat 315c: Transposable Data Rasch model and friends

PROBLEM TWO (ALKALOID CONCENTRATIONS IN TEA) 1. Statistical Design

Multiple Sample Numerical Data

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek

Nested Designs & Random Effects

Design & Analysis of Experiments 7E 2009 Montgomery

Contents. TAMS38 - Lecture 8 2 k p fractional factorial design. Lecturer: Zhenxia Liu. Example 0 - continued 4. Example 0 - Glazing ceramic 3

Factorial ANOVA. Psychology 3256

Analysis Of Variance Compiled by T.O. Antwi-Asare, U.G

An Old Research Question

Yu Xie, Institute for Social Research, 426 Thompson Street, University of Michigan, Ann

Introduction to Factorial ANOVA

Multi-Factor Experiments

Notes on Maxwell & Delaney

Lecture 11: Nested and Split-Plot Designs

Rejection regions for the bivariate case

Ch. 5 Two-way ANOVA: Fixed effect model Equal sample sizes

Research Methods II MICHAEL BERNSTEIN CS 376

Analysis of Variance. One-way analysis of variance (anova) shows whether j groups have significantly different means. X=10 S=1.14 X=5.8 X=2.4 X=9.

STA 111: Probability & Statistical Inference

TWO OR MORE RANDOM EFFECTS. The two-way complete model for two random effects:

Analysis of Variance and Design of Experiments-I

Multi-Way Analysis of Variance (ANOVA)

Stat 6640 Solution to Midterm #2

Ch 2: Simple Linear Regression

1 Use of indicator random variables. (Chapter 8)

Remedial Measures, Brown-Forsythe test, F test

psyc3010 lecture 2 factorial between-ps ANOVA I: omnibus tests

6 Designs with Split Plots

ANOVA TESTING 4STEPS. 1. State the hypothesis. : H 0 : µ 1 =

Factorial BG ANOVA. Psy 420 Ainsworth

Solution to Tutorial 7

Increasing precision by partitioning the error sum of squares: Blocking: SSE (CRD) à SSB + SSE (RCBD) Contrasts: SST à (t 1) orthogonal contrasts

OHSU OGI Class ECE-580-DOE :Design of Experiments Steve Brainerd

One-Way Analysis of Variance. With regression, we related two quantitative, typically continuous variables.

Transcription:

Factorial Treatment Structure: Part I Lukas Meier, Seminar für Statistik

Factorial Treatment Structure So far (in CRD), the treatments had no structure. So called factorial treatment structure exists if the g treatments are the combination of the levels of two or more factors. In the case that we see all the possible combinations of the levels of the two factors, we call the factors crossed. Examples Biomass of crop: different fertilizers and different crop varieties. Battery life: Different temperature levels and different plate material. (Montgomery, 1991, Example 7-3.1).

Example (Linder, A. und W. Berchtold, 1982) Response: Needleweight of 20 three-week old pine seedlings [in 1/100 g]. 2 factors: A = origin, B = exposure to light We denote by y ijk kth response of the treatment formed by the ith level of factor A and the jth level of factor B. y ijk Factor A on level i (here:origin) Factor B on level j (here: exposure) Replicate number (here: k = 1, 2) 2

Two Factor Design: Generic Data Table B 1 B 2 B 3 A 1 y 111 y 112 y 113 y 114 A 2 y 211 y 212 y 213 y 214 y 121 y 122 y 123 y 124 y 221 y 222 y 223 y 224 y 131 y 132 y 133 y 134 y 231 y 232 y 233 y 234 3

Data Table of Our Example Taglieda Pfyn Rheinau Short Long Permanent 45 38 58 52 55 80 75 88 95 4

Visualization As for one-way ANOVA situation for all treatment combinations factor-wise summaries ( marginal summaries ) More useful: Interaction plot (see R-code) 5

Factorial Treatment Structure The structure of the treatment influences the analysis of the data. Setup: Factor A with a levels Factor B with b levels n replicates for every combination Total of N = a b n observations a so called balanced design We could analyze this with the usual cell means model (ignoring the special treatment structure) Typically, we have research questions about both factors and their possible interaction (interplay). 6

Factorial Treatment Structure Examples: Is effect of light exposure location specific? ( interaction between light exposure and location) What is the effect of light exposure averaged over all locations? ( main effect of light exposure) What is the effect of location averaged over all exposure levels? ( main effect of location) We could use the cell means (one-way ANOVA) model and try to answer these questions with appropriate contrasts ( complicated). Easier: Use a model that incorporates the factorial structure of the treatments. 7

Factorial Model because two factors involved The two-way ANOVA model with interaction is where Y ijk = + α i + β j + αβ ij + ε ijk α i is the main effect of factor A at level i. β j is the main effect of factor B at level j. αβ ij is the interaction effect between A and B for level combination i, j (not the product α i β j!) ε ijk are i.i.d. N(0, σ 2 ) errors. Typically, sum-to-zero constraints are being used, i.e. a i=1 a i=1 b α i = 0, j=1 β j = 0. b (αβ) ij = 0, j=1 (αβ) ij = 0. a 1 and b 1 degrees of freedom a 1 (b 1) degrees of freedom 8

Interpretation of Main Effects Main-effects are nothing else than the average effect when moving from row to row (column to column). Interaction effect is the difference to the main-effects model, i.e. it measures how far the treatment means differ from the main-effects model. If there is no interaction, the effects are additive. In our example it would mean: No matter what location we are considering, the effect of light exposure is always the same. 9

Visualization of Model Factor A, Factor B with two levels each E Y ijk = + α i + β j + αβ ij + α 2 + β 2 + αβ 22 E[Y] + α 2 + β 1 + αβ 21 + α 1 + β 2 + αβ 12 Effect of B 1 B 2 at A 1 Effect of (A 1 A 2 ) at B 1 + α 1 + β 1 + αβ 11 A 1 A 2 10

Visualization of Model If no interaction is present, lines will be parallel. E Y ijk = + α i + β j Interaction plot is nothing else than empirical version of this plot. E[Y] + α 2 + β 2 + α 1 + β 2 + α 2 + β 1 Effect of B 1 B 2 at A 1 Effect of (A 1 A 2 ) at B 1 + α 1 + β 1 A 1 A 2 11

Two-Way ANOVA Step-By-Step Short Long Permanent Short Long Permanent Taglieda 38 55 Taglieda β 1 β 2 β 3 β 1 β 2 β 3 Pfyn 45 58 80 75 Pfyn β 1 β 2 β 3 β 1 β 2 β 3 Rheinau = 52 88 95 Short Long Permanent Rheinau β 1 β 2 β 3 β 1 β 2 β 3 + Short Long Permanent Taglieda Taglieda αβ 11 αβ 12 αβ 13 αβ 11 αβ 12 αβ 13 Pfyn Pfyn αβ 21 αβ 22 αβ 23 αβ 21 αβ 22 αβ 23 Rheinau + Short Long Permanent Rheinau αβ 31 αβ 32 αβ 33 αβ 31 αβ 32 αβ 33 + Short Long Permanent Taglieda α 1 α 1 α 1 α 1 α 1 α 1 Taglieda ε 111 ε 121 ε 131 ε 112 ε 122 ε 132 Pfyn α 2 α 2 α 2 α 2 α 2 α 2 Pfyn ε 211 ε 221 ε 231 ε 212 ε 222 ε 232 Rheinau α 3 α 3 α 3 α 3 α 3 α 3 + Rheinau ε 311 ε 321 ε 331 ε 312 ε 322 ε 332 12

Parameter Estimates Estimates for the balanced case (and the sum-to-zero constraints) are Parameter Estimator = y α i α i = y i y β j β j = y j y αβ ij (αβ) ij = y ij α i β j This means: we estimate the main effects as if the other factors wouldn t be there (see next slides). 13

Main Effect of Location Original data-set Short Long Permanent Taglieda 38 55 Pfyn 45 58 80 75 Rheinau 52 88 95 Ignore factor exposure, estimate effect as in one-way ANOVA model Taglieda Pfyn Rheinau 38 55 45 58 80 75 52 88 95 α i 14

Main Effect of Light Exposure Original data-set Short Long Permanent Taglieda 38 55 Pfyn 45 58 80 75 Rheinau 52 88 95 Ignore factor location, estimate effect as in one-way ANOVA model Short Long Permanent 45 38 58 52 55 80 75 88 95 β j 15

Sum of Squares Again, total sum of squares can be partitioned into different sources, i.e. SS T = SS A + SS B + SS AB + SS E. Source df Sum of squares (SS) A a 1 B b 1 AB a 1 (b 1) Error n 1 ab Total abn 1 a i=1 a i=1 a i=1 b a j=1 b i=1 b j=1 j=1 b n α i 2 b a n β j 2 j=1 n k=1 n k=1 2 n (αβ) ij y ijk y ij 2 y ijk y 2 squared effect # observations with that effect product of df s of involved factors #observations 1 sum(df above) degrees of freedom of total 16

ANOVA Table As before, we can construct an ANOVA table Source df SS MS F A a 1 SS A SS A a 1 B b 1 SS B SS B b 1 AB a 1 (b 1) SS AB SS AB a 1 b 1 MS A MS E MS B MS E MS AB MS E Error ab (n 1) SS E SS E n 1 ab Under the corresponding (global) null-hypothesis, the Fratio is again F-distributed with degrees of freedom defined through the numerator / denominator. 17

F-Tests: Overview Interaction AB H 0 : αβ ij = 0 for all i, j H A : At least one αβ ij 0 Under H 0 : MS AB MS E F a 1 b 1, ab n 1 Main effect A H 0 : α i = 0 for all i H A : At least one α i 0 Under H 0 : MS A MS E F a 1, ab n 1 Main effect B H 0 : β j = 0 for all j H A : At least one β j 0 Under H 0 : MS B MS E F b 1, ab n 1 18

Analyzing the ANOVA Table Typically, the F-tests are analyzed from bottom to top (in the ANOVA table). Here, this means we start with the F-test of the interaction. If we reject: Conclude that we need an interaction in our model, i.e. the effect of A depends on the level of B. Don t continue testing the main-effects (principle of hierarchy) Perform individual analysis for every level of factor A (or B). Have a look at interaction plot to get a better understanding of what is going on. Interaction might be based on a single cell. Transformation might help in getting rid of the interaction. If we can t reject, continue testing the main effects. 19

Two-Way ANOVA model in R Define model with interaction in formula interface 20

More than Two Factors Model can be easily extended to more than two factors, say 3 (A, B, C). Model: Y ijkl = + α i + β j + γ k + main effects αβ ij + αγ ik + βγ jk + αβγ ijk + ε ijkl two-way interactions three-way interaction with ε ijkl i.i.d. N(0, σ 2 ) and the usual sum-to-zero constraints. Two-way interaction describes how a main-effect depends on the level of the other factor. Three-way interaction describes how a two-way interaction depends on level of third factor 21

Interpretation The higher-order interactions are quite difficult to interpret. Parameter estimation as before. Degrees of freedom of an interaction is the product of the df s of the involved factors. E.g., for the three-way interaction: a 1 b 1 (c 1) 22