Lec 1: An Introduction to ANOVA

Similar documents
Introduction. Chapter 8

Lecture 5: Comparing Treatment Means Montgomery: Section 3-5

STAT 5200 Handout #7a Contrasts & Post hoc Means Comparisons (Ch. 4-5)

More about Single Factor Experiments

ANALYSIS OF VARIANCE OF BALANCED DAIRY SCIENCE DATA USING SAS

Laboratory Topics 4 & 5

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

These are all actually contrasts (the coef sum to zero). What are these contrasts representing? What would make them large?

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

Linear Combinations. Comparison of treatment means. Bruce A Craig. Department of Statistics Purdue University. STAT 514 Topic 6 1

Unit 12: Analysis of Single Factor Experiments

STAT22200 Spring 2014 Chapter 5

Multiple Comparison Methods for Means

Lec 5: Factorial Experiment

Multiple comparisons - subsequent inferences for two-way ANOVA

Multiple Comparison Procedures Cohen Chapter 13. For EDUC/PSY 6600

A posteriori multiple comparison tests


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

Ch 2: Simple Linear Regression

Factorial designs. Experiments

4.8 Alternate Analysis as a Oneway ANOVA

Multiple t Tests. Introduction to Analysis of Variance. Experiments with More than 2 Conditions

Analysis of Variance

Assignment 6 Answer Keys

Analysis of Variance

Chapter 10. Design of Experiments and Analysis of Variance

Tukey Complete Pairwise Post-Hoc Comparison

ANOVA Multiple Comparisons

Introduction to Analysis of Variance (ANOVA) Part 2

PLSC PRACTICE TEST ONE

H0: Tested by k-grp ANOVA

Outline. Topic 19 - Inference. The Cell Means Model. Estimates. Inference for Means Differences in cell means Contrasts. STAT Fall 2013

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

Analysis of Variance II Bios 662

Multiple Testing. Gary W. Oehlert. January 28, School of Statistics University of Minnesota

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

Group comparison test for independent samples

The One-Way Independent-Samples ANOVA. (For Between-Subjects Designs)

2 Hand-out 2. Dr. M. P. M. M. M c Loughlin Revised 2018

STAT 525 Fall Final exam. Tuesday December 14, 2010

Chapter 15: Analysis of Variance

Analysis of variance

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

H0: Tested by k-grp ANOVA

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

1 One-way Analysis of Variance

Group comparison test for independent samples

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

STAT 263/363: Experimental Design Winter 2016/17. Lecture 1 January 9. Why perform Design of Experiments (DOE)? There are at least two reasons:

Multiple comparisons The problem with the one-pair-at-a-time approach is its error rate.

The entire data set consists of n = 32 widgets, 8 of which were made from each of q = 4 different materials.

B. Weaver (18-Oct-2006) MC Procedures Chapter 1: Multiple Comparison Procedures ) C (1.1)

QUEEN MARY, UNIVERSITY OF LONDON

W&M CSCI 688: Design of Experiments Homework 2. Megan Rose Bryant

Design & Analysis of Experiments 7E 2009 Montgomery

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

Linear Combinations of Group Means

The Distribution of F

ANOVA Analysis of Variance

G. Nested Designs. 1 Introduction. 2 Two-Way Nested Designs (Balanced Cases) 1.1 Definition (Nested Factors) 1.2 Notation. 1.3 Example. 2.

n i n T Note: You can use the fact that t(.975; 10) = 2.228, t(.95; 10) = 1.813, t(.975; 12) = 2.179, t(.95; 12) =

Pairwise multiple comparisons are easy to compute using SAS Proc GLM. The basic statement is:

Orthogonal contrasts and multiple comparisons

Comparing Several Means: ANOVA

MATH 644: Regression Analysis Methods

Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes)

Chapter 6 Planned Contrasts and Post-hoc Tests for one-way ANOVA

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

Homework 2: Simple Linear Regression

DESAIN EKSPERIMEN BLOCKING FACTORS. Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

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

Multiple Testing. Tim Hanson. January, Modified from originals by Gary W. Oehlert. Department of Statistics University of South Carolina

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

CHAPTER 4 Analysis of Variance. One-way ANOVA Two-way ANOVA i) Two way ANOVA without replication ii) Two way ANOVA with replication

Chapter Seven: Multi-Sample Methods 1/52

STAT 115:Experimental Designs

Multiple Comparisons

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.

One-way ANOVA (Single-Factor CRD)

9 One-Way Analysis of Variance

Inferences for Regression

DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective

Biological Applications of ANOVA - Examples and Readings

Simple Linear Regression

Stat 217 Final Exam. Name: May 1, 2002

Research Methods II MICHAEL BERNSTEIN CS 376

4.1 Example: Exercise and Glucose

1 Tomato yield example.

A Note on UMPI F Tests

ANOVA: Comparing More Than Two Means

Ch 3: Multiple Linear Regression

11 Hypothesis Testing

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

What If There Are More Than. Two Factor Levels?

Math 3330: Solution to midterm Exam

Formal Statement of Simple Linear Regression Model

Analysis of Variance (ANOVA) Cancer Research UK 10 th of May 2018 D.-L. Couturier / R. Nicholls / M. Fernandes

Two-Way Analysis of Variance - no interaction

Master s Written Examination

Transcription:

Ying Li Stockholm University October 31, 2011

Three end-aisle displays Which is the best?

Design of the Experiment Identify the stores of the similar size and type. The displays are randomly assigned to use.

Design of the Experiment Identify the stores of the similar size and type. The displays are randomly assigned to use. First Principle Randomization

Observations 3 levels 5 replicates

6 7 8 9 1 2 3

The Analysis of Variance a level of the factors (a treatments) n replicates N = a n runs Completely randomized design

Statistical Model y ij = µ + τ i + ε ij i = 1, a j = 1, n µ : overall mean τ i : the effect of ith treatment ε ij N(0, σ 2 ),i.i.d. a i τ i = 0

The Analysis of Variance We are interested in testing the equality of treatment means E(ȳ i. ) = µ + τ i = µ i i = 1, a The appropriate hypothesis are H 0 : µ 1 = µ 2 = = µ a H 1 : µ i µ j for at least one pair (i, j)

If H 0 is true, the distribution of F 0 is F a 1,a(n 1) Reject H 0 if F 0 > F α,a 1,a(n 1)

Equation for manual calculation Balanced Data: a n SS T = i=1 j=1 ij y.. 2 N y 2 Unbalanced Data SS T = a n i i=1 j=1 ij y.. 2 N y 2 SS Treatment = 1 n a i=1 i. y.. 2 N y 2 SS Treatment = a yi. 2 y.. 2 n i N i=1 SS E = SS T SS Treatment SS E = SS T SS Treatment

Example ȳ 1. = 5.73,ȳ 2. = 6.24, ȳ 3. = 8.32,ȳ.. = 6.76 SS T = 21.93 SS Treatment = 18.78 SS E = SS T SS Treatment = 3.15

DF SS MS F P Treatment 2 18.78 9.39 35.77 <0.001 Error 12 3.15 0.26 Total 14 21.93

DF SS MS F P Treatment 2 18.78 9.39 35.77 <0.001 Error 12 3.15 0.26 Total 14 21.93 Which ones cause the differ?

Multiple Comparison Methods We know the end-aisle display different than others. We might suspect the first and the second are different. Thus one reasonable test hypothesis would be H 0 : µ 1 = µ 2 H 1 : µ 1 µ 2 or, H 0 : µ 1 µ 2 = 0 H 1 : µ 1 µ 2 0

Contrasts In general, a contrast is a linear combination of the parameters of the form a Γ = c i µ i i=1 where c i are the contrast constants, and a i=1 c i = 0. For unbalance design a i=1 c in i = 0.

The hypothesis can be expressed in the terms of contrasts H 0 : a c i µ i = 0 i=1 a H 1 : c i µ i 0 i=1 In our example, c 1 = 1,c 2 = 1, c 3 = 0.

Contrast Tests Testing hypothesis involving contrast can be done in two basic ways 1 t-test: 2 F-test: where a i=1 t 0 = c iȳ i. MS E a n i=1 c2 i F 0 = MS c MS E = SS c/1 MS E SS c = ( a i=1 c iȳ i. ) 2 1 n a i=1 c2 i

Orthogonal Contrasts Two contrasts a i=1 = c iµ i = 0 and a i=1 = d iµ i = 0 are orthogonal if a c i d i = 0 or in unbalanced case if i=1 a n i c i d i = 0 i=1 We can specify a 1 orthogonal contrasts. Tests performed on orthogonal contrasts are independent.

Example

Pairwise Comparison The null hypothesis are H 0 : µ i = µ j, i j

Pairwise Comparison The null hypothesis are H 0 : µ i = µ j, i j Tukey s test Make use of the distribution of studentized range statistics q = ȳmax ȳ min MSE 2 ( 1 n i + 1 n j ) Appendix Table 7 contains upper percentiles for q. The difference d between two averages is significant if d > q α(a, f ) 2 MS E ( 1 n i + 1 n j )

The fisher least significant difference method (LSD) The fisher least significant difference method procedure use T test for testing H 0 : µ i = µ j, i j The test statistics is: ȳ i. ȳ j. t 0 = MS E ( 1 n i + 1 n j ) The quantity: least significant difference (LSD) If LSD = t α/2,n a MS E ( 1 n i + 1 n j ) ȳ i. ȳ j. > LSD we conclude that the population means µ i and µ j differ.

Questions:1 Why in some situation overall F test of ANOVA is significant, but the pairwise comparison fails to reveal the differences?

Questions:2 Many tests available: Duncan, Student-Newman-Keuls, REGWQ, Bonferroni, Sidak, Scheff, Which pairwise comparison method do I use?

Questions:2 Many tests available: Duncan, Student-Newman-Keuls, REGWQ, Bonferroni, Sidak, Scheff, Which pairwise comparison method do I use? unfortunately, no-clear cut answer. Fisher s LSD procedure, only apply if F test is significant Tukey s method control overall error rate, many statisticians prefer.

Dunnett s Test Often one of the treatments is a control treatment, and we want to compare the other treatments with the control treatment. We want to test a 1 hypotheses: H 0 : µ j = µ 1 where i = 2,, a

Dunnett s Test For the ith treatment, H 0 is rejected if ȳ i ȳ 1 > d α (a 1, f ) MS E ( 1 + 1 ) n i n j Appendix 8 gives upper percentiles for d α (a 1, f )

One Example

One Example

One Example