Introduction to Factorial ANOVA

Size: px
Start display at page:

Download "Introduction to Factorial ANOVA"

Transcription

1 Introduction to Factorial ANOVA Read from the bottom up!!!! Two factor factorial ANOVA Two factors ( predictor variables) Factor A (with p groups or levels) Factor B (with q groups or levels) Crossed design: every level of one factor crossed with every level of second factor all combinations (i.e. cells) of factor A and factor B 1

2 Quinn (1988) - fecundity of limpets Factor A - season with levels: spring, summer Factor B - density with 4 levels: 8, 15, 30, 45 per 5cm n = 3 fences in each combination: each combination is termed a cell (8 cells) Response variable: fecundity (no. egg masses per limpet) Fecundity of limpets

3 Stehman & Meredith (1995) - growth of fir tree seedlings Factor A is nitrogen with levels present, absent Factor B is phosphorous with 4 levels 0, 100, 300, 500 kg.ha -1 8 cells, n replicate seedlings in each cell Response variable: growth of Douglas fir trees seedlings Data layout Factor A 1... i Factor B 1 j 1 j 1 j Reps y 111 y ij1 y 11 y ij y 11k y ijk Cell means y 11 y ij Note levels in factor B are the same for all levels in Factor A (not nested) 3

4 Linear model where i j () ij ijk y ijk = + i + j + () ij + ijk overall mean effect of factor A effect of factor B effect of interaction between A & B unexplained variation (error term) Worked example - Limpets Season Spring Summer Density Reps n = 3 in each of 8 groups (cells) p = seasons, q = 4 densities 4

5 Worked example Density Season Marginal means Spring Summer Density marginal means Grand mean Cell means Main effect: Null hypotheses effect of one factor, pooling over levels of other factor effect of one factor, independent of other factor Factor A marginal means (pooling B): 1,... i Factor B marginal means (pooling A): 1,... j 5

6 Main effect A H 0 : no difference between marginal means of factor A, pooling levels of B H 0 : 1 = = i = H 0 : no main effect of factor A, pooling levels of B ( 1 = = = i = 0) Example: No difference between season marginal means No effect of season, pooling densities Cell means Density Season means Spring spring Summer summer Density means overall

7 Main effect B H 0 : no difference between marginal means of factor B, pooling levels of A H 0 : 1 = = j = H 0 : no main effect of factor B, pooling levels of A ( 1 = = = j = 0) Example: No difference between density marginal means No effect of density, pooling seasons Cell means Density Season means Spring spring Summer summer Density means overall 8 = 15 = 30 = 45 7

8 Interaction An interaction between factors: effect of factor A dependent on level of factor B and viceversa H 0 : no interaction between factor A & factor B: effects of factor A & factor B are independent of each other no joint effects of A & B acting together ( ij = 0) ij - i - j + = 0, which is equal to ij ( i + j ) + = 0 Factors A and B are additive ij ( i + j ) + = 0 µ+α+β+ αβ ( µ+α+µ+β)+ µ = 0 µ+α+β+ αβ µ-α-µ-β+ µ= 0 µ+α+β+ αβ µ-α-µ-β+ µ= 0 αβ = 0 8

9 No interaction Root:shoot ratio of invasive grass: 0.5 C. maculosa 0.4 Two factors: AM fungus (present/absent) Type of phosphorous (organic/inorganic) Factorial design Root:shoot ratio AM fungi - AM fungi Inorganic P Organic P replicate pots Interaction Root:shoot ratio of native grass: 3 F. idahoensis Two factors: AM fungus (present/absent) Invasive competitor C. maculosa Factorial design Root:shoot ratio 1 0 F. idahoensis C. maculosa Competitor + AM -AM replicate pots 9

10 If interaction absent Factors A & B affect Y independently of each other Examine/test main effects and marginal means Interaction examination Organic Inorganic Row means Root:shoot ratio Inorganic P Organic P +AM Fungi -AM Fungi Column means Overall mean = AM fungi - AM fungi ij ( i + j ) + = ( ) =

11 If interaction present Factors A & B interact in their effect on Y Factors A & B do NOT affect Y independently of each other Difficult to examine/test main effect and marginal means Must examine results to determine if main effects are interpretable Interaction examination Root:shoot ratio F. idahoensis C. maculosa Competitor + AM -AM +AM Fungi -AM Fungi Column means F. idahoensis C. maculosa Row means Overall mean = 1.65 ij ( i + j ) + = ( )+1.65 =

12 Residual variation Variation between replicates within each cell Pooled across cells if homogeneity of variance assumption holds ( y y ij) ijk Partitioning total variation SS Total SS A + SS B + SS AB + SS Residual SS A SS B SS AB SS Residual variation between A marginal means variation between B marginal means variation due to interaction between A and B variation between replicates within each cell 1

13 Factorial ANOVA table Source SS df MS Factor A SS A p-1 SS A p-1 Factor B SS B q-1 SS B q-1 Interaction SS AB (p-1)(q-1) SS AB A X B (p-1)(q-1) Residual SS Residual pq(n-1) SS Residual pq(n-1) Expected mean squares Both factors fixed: MS A MS B MS A X B MS Residual nq np n p 1 q 1 i i ( ) ij ( p 1)( q 1) 13

14 If no interaction: H 0 : interaction ( ij ) = 0 true F-ratio: MS AB / MS Residual 1 H 0 : no interaction nq p 1 i np q 1 i n ( ) ij ( p 1)( q 1) H 0 : no main effect If no main effect of factor A: H 0 : 1 = = i = ( i = 0) is true F-ratio: MS A / MS Residual 1 If no main effect of factor B: H 0 : 1 = = j = ( j = 0) is true F-ratio: MS B / MS Residual 1 nq np n p 1 q 1 i i ( ) ij ( p 1)( q 1) 14

15 Worked example Density Season Marginal means Spring Summer Density marginal means Grand mean Cell means Testing of H 0 s Test H 0 of no interaction first: no significant interaction between density and season (P = 0.84) If not significant, test main effects: significant effects of season (P < 0.001) and density (P < 0.001) Planned and unplanned comparisons: applied to interaction and to main effects try to limit unplanned comparisons 15

16 Interpreting interactions 1. Hopefully you will have a hypothesis or set of hypotheses for the interaction term. Plot cell means (This is usually the most informative thing to do) 3. Test hypotheses concerning the interaction (using Specify command) 4. If appropriate examine hypotheses concerned with main effects (using contrast or specify) Interaction plot No. egg masses per limpet Spring Summer Density Effect of density same for both seasons Difference between seasons same for all densities Parallel lines in cell means (interaction) plot 16

17 Worked example II Low shore Siphonaria larger limpets Two factors Season (spring and summer) Density (6, 1, 4 limpets per 5cm ) Response variable: no. egg masses per limpet n = 3 enclosures per season/density combination Worked example II Source df MS F P Season < Density Interaction Residual Total 17 17

18 Interaction plot No. egg masses per limpet Spring Summer Density Effect of density different for each season Difference between seasons varies for each density Non-parallel lines in cell means (interaction) plot Is the effect of Season interpretable?? Complex interaction Behavioural response of larval newts in lab Factor A Chemical cues from adult newts Factor B Earthworm prey Factorial design % larval newts in open Newt present Newt absent + worms -worms replicate aquaria 18

19 Multiple comparisons Use Tukey s test, Bonferroni t-tests etc.: compare all cell means in interaction Usually lots of means: lots of non-independent comparisons Often ambiguous results Not very informative, not very powerful Simple main effects Tests across levels of one factor for each level of second factor separately. Is there effect of density for spring? Is there effect of density for summer? Alternatively Is there effect of season for density = 6? etc. Equivalent to series of one factor ANOVAs Use df Residual and MS Residual from original factorial ANOVA 19

20 Worked example II: Low shore Siphonaria Source df MS F P Season < Density Interaction Residual Total 17 Worked example II: Low shore Siphonaria Source df MS F P Density Season <0.001 Density x Season Simple main effects Density in spring Density in summer <0.001 Residual

21 Worked example II: Low shore Siphonaria No. egg masses per limpet Density Spring Summer Simple main effects df MS F P Density in spring Density in summer <0.001 Mixed Models Traditional ANOVA approach At least one of the Factors is Random At least one of the Factors is Fixed Not too difficult if only one Factor is Random Very complex if more than one Factor is Random (realm or psuedo F stats) 1

22 Palm seedlings in Peru (Losos 1995) Mixed model Survivorship of palm seedlings in Peru Factor A - fixed 4 successional zones early-seral, mid-seral, late-seral, Heliconia Factor B - random randomly located transects 5 replicate plots of seedlings within each zone-transect combination (cell)

23 Mixed model Age at metamorphosis of copepod larvae Factor A - fixed 4 food treatments high food, high to low, etc. Factor B - random 15 randomly chosen sibships 4 replicate dishes of larvae within each food-sibship combinations (cell) Expected mean squares Factor A fixed, B random: MS A MS B MS A X B MS Residual n n np nq p 1 i 3

24 Tests in mixed model H 0 : no effect of random interaction A*B: F-ratio: MS AB / MS Residual H 0 : no effect of random factor B: F-ratio: MS B / MS Residual H 0 : no effect of fixed factor A: F-ratio: MS A / MS AB n n np nq p 1 i Palm seedlings Source df MS F P Denom. Zone Z x T Transect Residual Zone x transect <0.001 Residual Residual

25 Assumptions of factorial ANOVA Assumptions apply to y ijk within each cell Normality boxplots etc. Homogeneity of residual variance residual plots, variance vs mean plots etc. Independence Assumptions not met? Robust if equal n Transformations important No suitable non-parametric (rankbased) test 5

26 More complex ANOVAs Three or more factors Three factor ANOVA: 3 main effects 3 two-way interactions 1 three-way interaction Test three-way interaction first, then two ways, then main effects Canola (Brassica) germination Factor A - seed type 3 levels (different genetic lines & controls) Factor B - light 3 levels (full, dark, shade) Factor C - nutrients levels (low, high) Residual: 5 petri dishes (with seeds) in each of 18 cells Response variable: average time to germinate 6

27 3 factor example Source df F P Seed type (S) 17.3 <0.001 Light (L) Nutrient (N) S x L S x N N x L S x N x L Residual 30 Complex mixed models Source df F-test denominator Season 1 Season x Trans Zone 3 Zone x Trans Transect (random) 1 Residual Season X Zone 3 Season x Zone x Trans Season X Trans 1 Residual Zone x Trans 3 Residual Season X Zone x Trans 3 Residual Residual 55 7

28 General scheme for testing ANOVA models with fixed factors Source df df denomonator F A, B A df A = p-1 df Residual MS A /MS Residual B df B = q-1 df Residual MS B /MS Residual AB df AB = (p-1)(q-1) df Residual MS AB /MS Residual Residual pq(n-1) Source df df denomonator F A df A = p-1 df Residual MS A /MS Residual A, B, C B df B = q-1 df Residual MS B /MS Residual C df C = r-1 df Residual MS C /MS Residual AB df AB = (p-1)(q-1) df Residual MS AB /MS Residual AC df AC = (p-1)(r-1) df Residual MS AC /MS Residual BC df BC = (q-1)(r-1) df Residual MS BC /MS Residual And so on ABC df ABC = (p-1)(q-1)(r-1) df Residual MS ABC /MS Residual Residual pqr(n-1) General scheme for testing Mixed ANOVA models (fixed and random factors) Source df df denomonator F A = fixed B = random A df A = p-1 df AB MS A /MS AB B df B = q-1 df Residual MS B /MS Residual AB df AB = (p-1)(q-1) df Residual MS AB /MS Residual Residual pq(n-1) Source df df denomonator F A df A = p-1 df AC MS A /MS AC A = fixed B = fixed C = random And so on B df B = q-1 df BC MS B /MS BC C df C = r-1 df Residual MS C /MS Residual AB df AB = (p-1)(q-1) df ABC MS AB /MS ABC AC df AC = (p-1)(r-1) df Residual MS AC /MS Residual BC df BC = (q-1)(r-1) df Residual MS BC /MS Residual ABC df ABC = (p-1)(q-1)(r-1) df Residual MS ABC /MS Residual Residual pqr(n-1) 8

29 Effect of Blocking on Power of Test Relationship between supplemental watering and oak seedling germination H o : No difference in seedling number in watered and control plots How to set this up!!! Options Fully randomized Randomized Block - with no replication Account for underlying but unknown spatial variation Randomized block - with replication Account for underlying but unknown spatial variation Tradeoff between number of Blocks and replicates within Block Constraints - we can only logistically handle 4 replicate plots 9

30 Watered Control Completely Random Watered Control Randomized Block - no replication 30

31 Watered Control Randomized Block - Maximize Blocks minimize replication within Blocks Watered Control Randomized Block - Minimize Blocks Maximize replication within Blocks 31

32 Completely randomized design 4 replicated plots (1 per TTT) Randomized Block design Blocks 6 reps of each TTT per Block SEEDINGS SEEDINGS Mean and SEM Control Water TTT Randomized Block design 6 Blocks reps of each TTT per Block Control Water TTT Randomized Block design 1 Blocks (no TTT reps in each Block) SEEDINGS SEEDINGS Control Water TTT 10.0 Control Water TTT Compare Models Design Source df 1 df MS F P Test Notes CR TTT$ MS TTT /MS Residual No Blocks CR Residual 8.7 RB - no rep TTT$ MS TTT /MS Residual 1 Blocks RB - no rep Block No test RB - no rep Residual RB - reps TTT$ MS TTT /MS TTT*Block 6 Blocks RB - reps Block MS Block /MS Residual RB - reps TTT$*Blk MS TTT*Block /MS Residual RB - reps Residual RB - 6 reps TTT$ MS TTT /MS TTT*Block Blocks RB - 6 reps Block MS Block /MS Residual RB - 6 reps TTT$*Blk MS TTT*Block /MS Residual RB - 6 reps Residual

33 Tradeoff between blocking and degrees of freedom RB,, 6 Randomized block, blocks 6 reps RB,, 6 of each treatment per block Randomized block, 6 blocks reps RB, 6, of each treatment per block RB, 1, 1 Randomized block, 1 blocks 1 reps of each treatment per block CR Completely randomized design CR RB, 6, RB, 1, P =0.05 DF Denominator 33

Analysis of Covariance

Analysis of Covariance Analysis of Covariance Using categorical and continuous predictor variables Example An experiment is set up to look at the effects of watering on Oak Seedling establishment Three levels of watering: (no

More information

Stats fest Analysis of variance. Single factor ANOVA. Aims. Single factor ANOVA. Data

Stats fest Analysis of variance. Single factor ANOVA. Aims. Single factor ANOVA. Data 1 Stats fest 2007 Analysis of variance murray.logan@sci.monash.edu.au Single factor ANOVA 2 Aims Description Investigate differences between population means Explanation How much of the variation in response

More information

Introduction to Analysis of Variance (ANOVA) Part 2

Introduction to Analysis of Variance (ANOVA) Part 2 Introduction to Analysis of Variance (ANOVA) Part 2 Single factor Serpulid recruitment and biofilms Effect of biofilm type on number of recruiting serpulid worms in Port Phillip Bay Response variable:

More information

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

Chap The McGraw-Hill Companies, Inc. All rights reserved. 11 pter11 Chap Analysis of Variance Overview of ANOVA Multiple Comparisons Tests for Homogeneity of Variances Two-Factor ANOVA Without Replication General Linear Model Experimental Design: An Overview

More information

Comparing the means of more than two groups

Comparing the means of more than two groups Comparing the means of more than two groups Chapter 15 Analysis of variance (ANOVA) Like a t-test, but can compare more than two groups Asks whether any of two or more means is different from any other.

More information

Analysis of variance

Analysis of variance Analysis of variance 1 Method If the null hypothesis is true, then the populations are the same: they are normal, and they have the same mean and the same variance. We will estimate the numerical value

More information

Factorial designs. Experiments

Factorial designs. Experiments Chapter 5: Factorial designs Petter Mostad mostad@chalmers.se Experiments Actively making changes and observing the result, to find causal relationships. Many types of experimental plans Measuring response

More information

Statistics For Economics & Business

Statistics For Economics & Business Statistics For Economics & Business Analysis of Variance In this chapter, you learn: Learning Objectives The basic concepts of experimental design How to use one-way analysis of variance to test for differences

More information

Analysis of variance (ANOVA) ANOVA. Null hypothesis for simple ANOVA. H 0 : Variance among groups = 0

Analysis of variance (ANOVA) ANOVA. Null hypothesis for simple ANOVA. H 0 : Variance among groups = 0 Analysis of variance (ANOVA) ANOVA Comparing the means of more than two groups Like a t-test, but can compare more than two groups Asks whether any of two or more means is different from any other. In

More information

I i=1 1 I(J 1) j=1 (Y ij Ȳi ) 2. j=1 (Y j Ȳ )2 ] = 2n( is the two-sample t-test statistic.

I i=1 1 I(J 1) j=1 (Y ij Ȳi ) 2. j=1 (Y j Ȳ )2 ] = 2n( is the two-sample t-test statistic. Serik Sagitov, Chalmers and GU, February, 08 Solutions chapter Matlab commands: x = data matrix boxplot(x) anova(x) anova(x) Problem.3 Consider one-way ANOVA test statistic For I = and = n, put F = MS

More information

Assignment #7. Chapter 12: 18, 24 Chapter 13: 28. Due next Friday Nov. 20 th by 2pm in your TA s homework box

Assignment #7. Chapter 12: 18, 24 Chapter 13: 28. Due next Friday Nov. 20 th by 2pm in your TA s homework box Assignment #7 Chapter 12: 18, 24 Chapter 13: 28 Due next Friday Nov. 20 th by 2pm in your TA s homework box Lab Report Posted on web-site Dates Rough draft due to TAs homework box on Monday Nov. 16 th

More information

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

Factorial Treatment Structure: Part I. Lukas Meier, Seminar für Statistik 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

More information

Analysis of Variance (ANOVA)

Analysis of Variance (ANOVA) Analysis of Variance (ANOVA) Two types of ANOVA tests: Independent measures and Repeated measures Comparing 2 means: X 1 = 20 t - test X 2 = 30 How can we Compare 3 means?: X 1 = 20 X 2 = 30 X 3 = 35 ANOVA

More information

COMPLETELY RANDOM DESIGN (CRD) -Design can be used when experimental units are essentially homogeneous.

COMPLETELY RANDOM DESIGN (CRD) -Design can be used when experimental units are essentially homogeneous. COMPLETELY RANDOM DESIGN (CRD) Description of the Design -Simplest design to use. -Design can be used when experimental units are essentially homogeneous. -Because of the homogeneity requirement, it may

More information

Two or more categorical predictors. 2.1 Two fixed effects

Two or more categorical predictors. 2.1 Two fixed effects Two or more categorical predictors Here we extend the ANOVA methods to handle multiple categorical predictors. The statistician has to watch carefully to see whether the effects being considered are properly

More information

Jian WANG, PhD. Room A115 College of Fishery and Life Science Shanghai Ocean University

Jian WANG, PhD. Room A115 College of Fishery and Life Science Shanghai Ocean University Jian WANG, PhD j_wang@shou.edu.cn Room A115 College of Fishery and Life Science Shanghai Ocean University Contents 1. Introduction to R 2. Data sets 3. Introductory Statistical Principles 4. Sampling and

More information

22s:152 Applied Linear Regression. Take random samples from each of m populations.

22s:152 Applied Linear Regression. Take random samples from each of m populations. 22s:152 Applied Linear Regression Chapter 8: ANOVA NOTE: We will meet in the lab on Monday October 10. One-way ANOVA Focuses on testing for differences among group means. Take random samples from each

More information

BIOL 458 BIOMETRY Lab 8 - Nested and Repeated Measures ANOVA

BIOL 458 BIOMETRY Lab 8 - Nested and Repeated Measures ANOVA BIOL 458 BIOMETRY Lab 8 - Nested and Repeated Measures ANOVA PART 1: NESTED ANOVA Nested designs are used when levels of one factor are not represented within all levels of another factor. Often this is

More information

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES BIOL 458 - Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES PART 1: INTRODUCTION TO ANOVA Purpose of ANOVA Analysis of Variance (ANOVA) is an extremely useful statistical method

More information

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA 22s:152 Applied Linear Regression Chapter 8: ANOVA NOTE: We will meet in the lab on Monday October 10. One-way ANOVA Focuses on testing for differences among group means. Take random samples from each

More information

Stat 6640 Solution to Midterm #2

Stat 6640 Solution to Midterm #2 Stat 6640 Solution to Midterm #2 1. A study was conducted to examine how three statistical software packages used in a statistical course affect the statistical competence a student achieves. At the end

More information

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

In a one-way ANOVA, the total sums of squares among observations is partitioned into two components: Sums of squares represent: Activity #10: AxS ANOVA (Repeated subjects design) Resources: optimism.sav So far in MATH 300 and 301, we have studied the following hypothesis testing procedures: 1) Binomial test, sign-test, Fisher s

More information

Unbalanced Designs & Quasi F-Ratios

Unbalanced Designs & Quasi F-Ratios Unbalanced Designs & Quasi F-Ratios ANOVA for unequal n s, pooled variances, & other useful tools Unequal nʼs Focus (so far) on Balanced Designs Equal n s in groups (CR-p and CRF-pq) Observation in every

More information

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

Summary of Chapter 7 (Sections ) and Chapter 8 (Section 8.1) Summary of Chapter 7 (Sections 7.2-7.5) and Chapter 8 (Section 8.1) Chapter 7. Tests of Statistical Hypotheses 7.2. Tests about One Mean (1) Test about One Mean Case 1: σ is known. Assume that X N(µ, σ

More information

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

Lecture 6: Single-classification multivariate ANOVA (k-group( MANOVA) Lecture 6: Single-classification multivariate ANOVA (k-group( MANOVA) Rationale and MANOVA test statistics underlying principles MANOVA assumptions Univariate ANOVA Planned and unplanned Multivariate ANOVA

More information

Stat 217 Final Exam. Name: May 1, 2002

Stat 217 Final Exam. Name: May 1, 2002 Stat 217 Final Exam Name: May 1, 2002 Problem 1. Three brands of batteries are under study. It is suspected that the lives (in weeks) of the three brands are different. Five batteries of each brand are

More information

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

 M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2 Notation and Equations for Final Exam Symbol Definition X The variable we measure in a scientific study n The size of the sample N The size of the population M The mean of the sample µ The mean of the

More information

Inferences for Regression

Inferences for Regression Inferences for Regression An Example: Body Fat and Waist Size Looking at the relationship between % body fat and waist size (in inches). Here is a scatterplot of our data set: Remembering Regression In

More information

Experimental Design and Data Analysis for Biologists

Experimental Design and Data Analysis for Biologists Experimental Design and Data Analysis for Biologists Gerry P. Quinn Monash University Michael J. Keough University of Melbourne CAMBRIDGE UNIVERSITY PRESS Contents Preface page xv I I Introduction 1 1.1

More information

Chapter 12. Analysis of variance

Chapter 12. Analysis of variance Serik Sagitov, Chalmers and GU, January 9, 016 Chapter 1. Analysis of variance Chapter 11: I = samples independent samples paired samples Chapter 1: I 3 samples of equal size J one-way layout two-way layout

More information

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College 1-Way ANOVA MATH 143 Department of Mathematics and Statistics Calvin College Spring 2010 The basic ANOVA situation Two variables: 1 Categorical, 1 Quantitative Main Question: Do the (means of) the quantitative

More information

Lec 5: Factorial Experiment

Lec 5: Factorial Experiment November 21, 2011 Example Study of the battery life vs the factors temperatures and types of material. A: Types of material, 3 levels. B: Temperatures, 3 levels. Example Study of the battery life vs the

More information

STAT22200 Spring 2014 Chapter 8A

STAT22200 Spring 2014 Chapter 8A STAT22200 Spring 2014 Chapter 8A Yibi Huang May 13, 2014 81-86 Two-Way Factorial Designs Chapter 8A - 1 Problem 81 Sprouting Barley (p166 in Oehlert) Brewer s malt is produced from germinating barley,

More information

Introduction. Chapter 8

Introduction. Chapter 8 Chapter 8 Introduction In general, a researcher wants to compare one treatment against another. The analysis of variance (ANOVA) is a general test for comparing treatment means. When the null hypothesis

More information

Analysis of variance (ANOVA) Comparing the means of more than two groups

Analysis of variance (ANOVA) Comparing the means of more than two groups Analysis of variance (ANOVA) Comparing the means of more than two groups Example: Cost of mating in male fruit flies Drosophila Treatments: place males with and without unmated (virgin) females Five treatments

More information

Topic 22 Analysis of Variance

Topic 22 Analysis of Variance Topic 22 Analysis of Variance Comparing Multiple Populations 1 / 14 Outline Overview One Way Analysis of Variance Sample Means Sums of Squares The F Statistic Confidence Intervals 2 / 14 Overview Two-sample

More information

CE3502. Environmental Measurements, Monitoring & Data Analysis. ANOVA: Analysis of. T-tests: Excel options

CE3502. Environmental Measurements, Monitoring & Data Analysis. ANOVA: Analysis of. T-tests: Excel options CE350. Environmental Measurements, Monitoring & Data Analysis ANOVA: Analysis of Variance T-tests: Excel options Paired t-tests tests (use s diff, ν =n=n x y ); Unpaired, variance equal (use s pool, ν

More information

PLS205 Lab 2 January 15, Laboratory Topic 3

PLS205 Lab 2 January 15, Laboratory Topic 3 PLS205 Lab 2 January 15, 2015 Laboratory Topic 3 General format of ANOVA in SAS Testing the assumption of homogeneity of variances by "/hovtest" by ANOVA of squared residuals Proc Power for ANOVA One-way

More information

Fractional Factorial Designs

Fractional Factorial Designs k-p Fractional Factorial Designs Fractional Factorial Designs If we have 7 factors, a 7 factorial design will require 8 experiments How much information can we obtain from fewer experiments, e.g. 7-4 =

More information

One-way ANOVA (Single-Factor CRD)

One-way ANOVA (Single-Factor CRD) One-way ANOVA (Single-Factor CRD) STAT:5201 Week 3: Lecture 3 1 / 23 One-way ANOVA We have already described a completed randomized design (CRD) where treatments are randomly assigned to EUs. There is

More information

Analysis of Variance

Analysis of Variance Statistical Techniques II EXST7015 Analysis of Variance 15a_ANOVA_Introduction 1 Design The simplest model for Analysis of Variance (ANOVA) is the CRD, the Completely Randomized Design This model is also

More information

SAS Commands. General Plan. Output. Construct scatterplot / interaction plot. Run full model

SAS Commands. General Plan. Output. Construct scatterplot / interaction plot. Run full model Topic 23 - Unequal Replication Data Model Outline - Fall 2013 Parameter Estimates Inference Topic 23 2 Example Page 954 Data for Two Factor ANOVA Y is the response variable Factor A has levels i = 1, 2,...,

More information

ANOVA Situation The F Statistic Multiple Comparisons. 1-Way ANOVA MATH 143. Department of Mathematics and Statistics Calvin College

ANOVA Situation The F Statistic Multiple Comparisons. 1-Way ANOVA MATH 143. Department of Mathematics and Statistics Calvin College 1-Way ANOVA MATH 143 Department of Mathematics and Statistics Calvin College An example ANOVA situation Example (Treating Blisters) Subjects: 25 patients with blisters Treatments: Treatment A, Treatment

More information

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

MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS FALL 1999 MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS 350 - FALL 1999 Instructor: A. Oyet Date: December 16, 1999 Name(Surname First): Student Number INSTRUCTIONS

More information

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.

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. Analysis of Variance One-way analysis of variance (anova) shows whether j groups have significantly different means. A B C D 3 6 7 8 2 4 9 10 2 7 12 11 4 5 11 9 1 7 10 12 X=2.4 X=5.8 X=9.8 X=10 S=1.14

More information

BIOMETRICS INFORMATION

BIOMETRICS INFORMATION BIOMETRICS INFORMATION Index of Pamphlet Topics (for pamphlets #1 to #60) as of December, 2000 Adjusted R-square ANCOVA: Analysis of Covariance 13: ANCOVA: Analysis of Covariance ANOVA: Analysis of Variance

More information

Reference: Chapter 14 of Montgomery (8e)

Reference: Chapter 14 of Montgomery (8e) Reference: Chapter 14 of Montgomery (8e) 99 Maghsoodloo The Stage Nested Designs So far emphasis has been placed on factorial experiments where all factors are crossed (i.e., it is possible to study the

More information

PLS205 Lab 6 February 13, Laboratory Topic 9

PLS205 Lab 6 February 13, Laboratory Topic 9 PLS205 Lab 6 February 13, 2014 Laboratory Topic 9 A word about factorials Specifying interactions among factorial effects in SAS The relationship between factors and treatment Interpreting results of an

More information

One-way ANOVA. Experimental Design. One-way ANOVA

One-way ANOVA. Experimental Design. One-way ANOVA Method to compare more than two samples simultaneously without inflating Type I Error rate (α) Simplicity Few assumptions Adequate for highly complex hypothesis testing 09/30/12 1 Outline of this class

More information

Sleep data, two drugs Ch13.xls

Sleep data, two drugs Ch13.xls Model Based Statistics in Biology. Part IV. The General Linear Mixed Model.. Chapter 13.3 Fixed*Random Effects (Paired t-test) ReCap. Part I (Chapters 1,2,3,4), Part II (Ch 5, 6, 7) ReCap Part III (Ch

More information

22s:152 Applied Linear Regression. Chapter 8: 1-Way Analysis of Variance (ANOVA) 2-Way Analysis of Variance (ANOVA)

22s:152 Applied Linear Regression. Chapter 8: 1-Way Analysis of Variance (ANOVA) 2-Way Analysis of Variance (ANOVA) 22s:152 Applied Linear Regression Chapter 8: 1-Way Analysis of Variance (ANOVA) 2-Way Analysis of Variance (ANOVA) We now consider an analysis with only categorical predictors (i.e. all predictors are

More information

13: Additional ANOVA Topics

13: Additional ANOVA Topics 13: Additional ANOVA Topics Post hoc comparisons Least squared difference The multiple comparisons problem Bonferroni ANOVA assumptions Assessing equal variance When assumptions are severely violated Kruskal-Wallis

More information

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

TWO OR MORE RANDOM EFFECTS. The two-way complete model for two random effects: TWO OR MORE RANDOM EFFECTS Example: The factors that influence the breaking strength of a synthetic fiber are being studied. Four production machines and three operators are randomly selected. A two-way

More information

One-way between-subjects ANOVA. Comparing three or more independent means

One-way between-subjects ANOVA. Comparing three or more independent means One-way between-subjects ANOVA Comparing three or more independent means Data files SpiderBG.sav Attractiveness.sav Homework: sourcesofself-esteem.sav ANOVA: A Framework Understand the basic principles

More information

ANOVA: Comparing More Than Two Means

ANOVA: Comparing More Than Two Means ANOVA: Comparing More Than Two Means Chapter 11 Cathy Poliak, Ph.D. cathy@math.uh.edu Office Fleming 11c Department of Mathematics University of Houston Lecture 25-3339 Cathy Poliak, Ph.D. cathy@math.uh.edu

More information

Lecture 27 Two-Way ANOVA: Interaction

Lecture 27 Two-Way ANOVA: Interaction Lecture 27 Two-Way ANOVA: Interaction STAT 512 Spring 2011 Background Reading KNNL: Chapter 19 27-1 Topic Overview Review: Two-way ANOVA Models Basic Strategy for Analysis Studying Interactions 27-2 Two-way

More information

CHAPTER 17 CHI-SQUARE AND OTHER NONPARAMETRIC TESTS FROM: PAGANO, R. R. (2007)

CHAPTER 17 CHI-SQUARE AND OTHER NONPARAMETRIC TESTS FROM: PAGANO, R. R. (2007) FROM: PAGANO, R. R. (007) I. INTRODUCTION: DISTINCTION BETWEEN PARAMETRIC AND NON-PARAMETRIC TESTS Statistical inference tests are often classified as to whether they are parametric or nonparametric Parameter

More information

1 Use of indicator random variables. (Chapter 8)

1 Use of indicator random variables. (Chapter 8) 1 Use of indicator random variables. (Chapter 8) let I(A) = 1 if the event A occurs, and I(A) = 0 otherwise. I(A) is referred to as the indicator of the event A. The notation I A is often used. 1 2 Fitting

More information

Sociology 6Z03 Review II

Sociology 6Z03 Review II Sociology 6Z03 Review II John Fox McMaster University Fall 2016 John Fox (McMaster University) Sociology 6Z03 Review II Fall 2016 1 / 35 Outline: Review II Probability Part I Sampling Distributions Probability

More information

Introduction to Analysis of Variance. Chapter 11

Introduction to Analysis of Variance. Chapter 11 Introduction to Analysis of Variance Chapter 11 Review t-tests Single-sample t-test Independent samples t-test Related or paired-samples t-test s m M t ) ( 1 1 ) ( m m s M M t M D D D s M t n s s M 1 )

More information

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks.

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks. 58 2. 2 factorials in 2 blocks Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks. Some more algebra: If two effects are confounded with

More information

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

STAT 135 Lab 9 Multiple Testing, One-Way ANOVA and Kruskal-Wallis STAT 135 Lab 9 Multiple Testing, One-Way ANOVA and Kruskal-Wallis Rebecca Barter April 6, 2015 Multiple Testing Multiple Testing Recall that when we were doing two sample t-tests, we were testing the equality

More information

Statistics for Managers Using Microsoft Excel Chapter 10 ANOVA and Other C-Sample Tests With Numerical Data

Statistics for Managers Using Microsoft Excel Chapter 10 ANOVA and Other C-Sample Tests With Numerical Data Statistics for Managers Using Microsoft Excel Chapter 10 ANOVA and Other C-Sample Tests With Numerical Data 1999 Prentice-Hall, Inc. Chap. 10-1 Chapter Topics The Completely Randomized Model: One-Factor

More information

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

psyc3010 lecture 2 factorial between-ps ANOVA I: omnibus tests psyc3010 lecture 2 factorial between-ps ANOVA I: omnibus tests last lecture: introduction to factorial designs next lecture: factorial between-ps ANOVA II: (effect sizes and follow-up tests) 1 general

More information

In-house germination methods validation studies: analysis

In-house germination methods validation studies: analysis 1 In-house germination methods validation studies: analysis Jean-Louis Laffont - ISTA Statistics Committee Design assumptions for the validation study Based on peer validation guidelines From Table 1 in

More information

DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective

DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective Second Edition Scott E. Maxwell Uniuersity of Notre Dame Harold D. Delaney Uniuersity of New Mexico J,t{,.?; LAWRENCE ERLBAUM ASSOCIATES,

More information

Introduction to hypothesis testing

Introduction to hypothesis testing Introduction to hypothesis testing Review: Logic of Hypothesis Tests Usually, we test (attempt to falsify) a null hypothesis (H 0 ): includes all possibilities except prediction in hypothesis (H A ) If

More information

Multiple Pairwise Comparison Procedures in One-Way ANOVA with Fixed Effects Model

Multiple Pairwise Comparison Procedures in One-Way ANOVA with Fixed Effects Model Biostatistics 250 ANOVA Multiple Comparisons 1 ORIGIN 1 Multiple Pairwise Comparison Procedures in One-Way ANOVA with Fixed Effects Model When the omnibus F-Test for ANOVA rejects the null hypothesis that

More information

Factorial BG ANOVA. Psy 420 Ainsworth

Factorial BG ANOVA. Psy 420 Ainsworth Factorial BG ANOVA Psy 420 Ainsworth Topics in Factorial Designs Factorial? Crossing and Nesting Assumptions Analysis Traditional and Regression Approaches Main Effects of IVs Interactions among IVs Higher

More information

Confidence Intervals, Testing and ANOVA Summary

Confidence Intervals, Testing and ANOVA Summary Confidence Intervals, Testing and ANOVA Summary 1 One Sample Tests 1.1 One Sample z test: Mean (σ known) Let X 1,, X n a r.s. from N(µ, σ) or n > 30. Let The test statistic is H 0 : µ = µ 0. z = x µ 0

More information

Cuckoo Birds. Analysis of Variance. Display of Cuckoo Bird Egg Lengths

Cuckoo Birds. Analysis of Variance. Display of Cuckoo Bird Egg Lengths Cuckoo Birds Analysis of Variance Bret Larget Departments of Botany and of Statistics University of Wisconsin Madison Statistics 371 29th November 2005 Cuckoo birds have a behavior in which they lay their

More information

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

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs) The One-Way Repeated-Measures ANOVA (For Within-Subjects Designs) Logic of the Repeated-Measures ANOVA The repeated-measures ANOVA extends the analysis of variance to research situations using repeated-measures

More information

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

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek Two-factor studies STAT 525 Chapter 19 and 20 Professor Olga Vitek December 2, 2010 19 Overview Now have two factors (A and B) Suppose each factor has two levels Could analyze as one factor with 4 levels

More information

Analysis of Variance

Analysis of Variance Analysis of Variance Blood coagulation time T avg A 62 60 63 59 61 B 63 67 71 64 65 66 66 C 68 66 71 67 68 68 68 D 56 62 60 61 63 64 63 59 61 64 Blood coagulation time A B C D Combined 56 57 58 59 60 61

More information

Residual Analysis for two-way ANOVA The twoway model with K replicates, including interaction,

Residual Analysis for two-way ANOVA The twoway model with K replicates, including interaction, Residual Analysis for two-way ANOVA The twoway model with K replicates, including interaction, is Y ijk = µ ij + ɛ ijk = µ + α i + β j + γ ij + ɛ ijk with i = 1,..., I, j = 1,..., J, k = 1,..., K. In carrying

More information

An Old Research Question

An Old Research Question ANOVA An Old Research Question The impact of TV on high-school grade Watch or not watch Two groups The impact of TV hours on high-school grade Exactly how much TV watching would make difference Multiple

More information

One-way between-subjects ANOVA. Comparing three or more independent means

One-way between-subjects ANOVA. Comparing three or more independent means One-way between-subjects ANOVA Comparing three or more independent means ANOVA: A Framework Understand the basic principles of ANOVA Why it is done? What it tells us? Theory of one-way between-subjects

More information

STAT 525 Fall Final exam. Tuesday December 14, 2010

STAT 525 Fall Final exam. Tuesday December 14, 2010 STAT 525 Fall 2010 Final exam Tuesday December 14, 2010 Time: 2 hours Name (please print): Show all your work and calculations. Partial credit will be given for work that is partially correct. Points will

More information

Statistics Lab #6 Factorial ANOVA

Statistics Lab #6 Factorial ANOVA Statistics Lab #6 Factorial ANOVA PSYCH 710 Initialize R Initialize R by entering the following commands at the prompt. You must type the commands exactly as shown. options(contrasts=c("contr.sum","contr.poly")

More information

EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design

EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design OBJECTIVES: The objective of an experimental design is to provide the maximum amount of reliable information at the minimum cost. In

More information

Comparing Several Means: ANOVA

Comparing Several Means: ANOVA Comparing Several Means: ANOVA Understand the basic principles of ANOVA Why it is done? What it tells us? Theory of one way independent ANOVA Following up an ANOVA: Planned contrasts/comparisons Choosing

More information

Stat/F&W Ecol/Hort 572 Review Points Ané, Spring 2010

Stat/F&W Ecol/Hort 572 Review Points Ané, Spring 2010 1 Linear models Y = Xβ + ɛ with ɛ N (0, σ 2 e) or Y N (Xβ, σ 2 e) where the model matrix X contains the information on predictors and β includes all coefficients (intercept, slope(s) etc.). 1. Number of

More information

Design of Experiments. Factorial experiments require a lot of resources

Design of Experiments. Factorial experiments require a lot of resources Design of Experiments Factorial experiments require a lot of resources Sometimes real-world practical considerations require us to design experiments in specialized ways. The design of an experiment is

More information

MATH Notebook 3 Spring 2018

MATH Notebook 3 Spring 2018 MATH448001 Notebook 3 Spring 2018 prepared by Professor Jenny Baglivo c Copyright 2010 2018 by Jenny A. Baglivo. All Rights Reserved. 3 MATH448001 Notebook 3 3 3.1 One Way Layout........................................

More information

Statistical Techniques II EXST7015 Simple Linear Regression

Statistical Techniques II EXST7015 Simple Linear Regression Statistical Techniques II EXST7015 Simple Linear Regression 03a_SLR 1 Y - the dependent variable 35 30 25 The objective Given points plotted on two coordinates, Y and X, find the best line to fit the data.

More information

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

3. Factorial Experiments (Ch.5. Factorial Experiments) 3. Factorial Experiments (Ch.5. Factorial Experiments) Hae-Jin Choi School of Mechanical Engineering, Chung-Ang University DOE and Optimization 1 Introduction to Factorials Most experiments for process

More information

Two-Way Factorial Designs

Two-Way Factorial Designs 81-86 Two-Way Factorial Designs Yibi Huang 81-86 Two-Way Factorial Designs Chapter 8A - 1 Problem 81 Sprouting Barley (p166 in Oehlert) Brewer s malt is produced from germinating barley, so brewers like

More information

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

Nesting and Mixed Effects: Part I. Lukas Meier, Seminar für Statistik Nesting and Mixed Effects: Part I Lukas Meier, Seminar für Statistik Where do we stand? So far: Fixed effects Random effects Both in the factorial context Now: Nested factor structure Mixed models: a combination

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 651 http://www.stat.tamu.edu/~suhasini/teaching.html Suhasini Subba Rao Motivations for the ANOVA We defined the F-distribution, this is mainly used in

More information

Allow the investigation of the effects of a number of variables on some response

Allow the investigation of the effects of a number of variables on some response Lecture 12 Topic 9: Factorial treatment structures (Part I) Factorial experiments Allow the investigation of the effects of a number of variables on some response in a highly efficient manner, and in a

More information

Definitions of terms and examples. Experimental Design. Sampling versus experiments. For each experimental unit, measures of the variables of

Definitions of terms and examples. Experimental Design. Sampling versus experiments. For each experimental unit, measures of the variables of Experimental Design Sampling versus experiments similar to sampling and inventor design in that information about forest variables is gathered and analzed experiments presuppose intervention through appling

More information

ANOVA Analysis of Variance

ANOVA Analysis of Variance ANOVA Analysis of Variance ANOVA Analysis of Variance Extends independent samples t test ANOVA Analysis of Variance Extends independent samples t test Compares the means of groups of independent observations

More information

Lecture 14 Topic 10: ANOVA models for random and mixed effects. Fixed and Random Models in One-way Classification Experiments

Lecture 14 Topic 10: ANOVA models for random and mixed effects. Fixed and Random Models in One-way Classification Experiments Lecture 14 Topic 10: ANOVA models for random and mixed effects To this point, we have considered only the Fixed Model (Model I) ANOVA; now we will extend the method of ANOVA to other experimental objectives.

More information

FACTORIAL DESIGNS and NESTED DESIGNS

FACTORIAL DESIGNS and NESTED DESIGNS Experimental Design and Statistical Methods Workshop FACTORIAL DESIGNS and NESTED DESIGNS Jesús Piedrafita Arilla jesus.piedrafita@uab.cat Departament de Ciència Animal i dels Aliments Items Factorial

More information

Solution to Final Exam

Solution to Final Exam Stat 660 Solution to Final Exam. (5 points) A large pharmaceutical company is interested in testing the uniformity (a continuous measurement that can be taken by a measurement instrument) of their film-coated

More information

Reference: Chapter 13 of Montgomery (8e)

Reference: Chapter 13 of Montgomery (8e) Reference: Chapter 1 of Montgomery (8e) Maghsoodloo 89 Factorial Experiments with Random Factors So far emphasis has been placed on factorial experiments where all factors are at a, b, c,... fixed levels

More information

Power & Sample Size Calculation

Power & Sample Size Calculation Chapter 7 Power & Sample Size Calculation Yibi Huang Chapter 7 Section 10.3 Power & Sample Size Calculation for CRDs Power & Sample Size for Factorial Designs Chapter 7-1 Power & Sample Size Calculation

More information

Group comparison test for independent samples

Group comparison test for independent samples Group comparison test for independent samples The purpose of the Analysis of Variance (ANOVA) is to test for significant differences between means. Supposing that: samples come from normal populations

More information

THE PRINCIPLES AND PRACTICE OF STATISTICS IN BIOLOGICAL RESEARCH. Robert R. SOKAL and F. James ROHLF. State University of New York at Stony Brook

THE PRINCIPLES AND PRACTICE OF STATISTICS IN BIOLOGICAL RESEARCH. Robert R. SOKAL and F. James ROHLF. State University of New York at Stony Brook BIOMETRY THE PRINCIPLES AND PRACTICE OF STATISTICS IN BIOLOGICAL RESEARCH THIRD E D I T I O N Robert R. SOKAL and F. James ROHLF State University of New York at Stony Brook W. H. FREEMAN AND COMPANY New

More information

10/31/2012. One-Way ANOVA F-test

10/31/2012. One-Way ANOVA F-test PSY 511: Advanced Statistics for Psychological and Behavioral Research 1 1. Situation/hypotheses 2. Test statistic 3.Distribution 4. Assumptions One-Way ANOVA F-test One factor J>2 independent samples

More information