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

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

Chapter 10: Analysis of variance (ANOVA)

16.3 One-Way ANOVA: The Procedure

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

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

STAT Chapter 10: Analysis of Variance

Chapter 11 - Lecture 1 Single Factor ANOVA

Notes for Week 13 Analysis of Variance (ANOVA) continued WEEK 13 page 1

Department of Economics. Business Statistics. Chapter 12 Chi-square test of independence & Analysis of Variance ECON 509. Dr.

ANOVA: Comparing More Than Two Means

Chapter 8 Student Lecture Notes 8-1. Department of Economics. Business Statistics. Chapter 12 Chi-square test of independence & Analysis of Variance

STATS Analysis of variance: ANOVA

One-Way Analysis of Variance (ANOVA)

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

Chapter 11 - Lecture 1 Single Factor ANOVA

Research Methods II MICHAEL BERNSTEIN CS 376

Statistics For Economics & Business

One-Way Analysis of Variance: A Guide to Testing Differences Between Multiple Groups

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur

ANOVA (Analysis of Variance) output RLS 11/20/2016

Week 14 Comparing k(> 2) Populations

ANOVA CIVL 7012/8012

EX1. One way ANOVA: miles versus Plug. a) What are the hypotheses to be tested? b) What are df 1 and df 2? Verify by hand. , y 3

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

QUEEN MARY, UNIVERSITY OF LONDON

What If There Are More Than. Two Factor Levels?

Analysis of Variance

4.1. Introduction: Comparing Means

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

Lecture notes 13: ANOVA (a.k.a. Analysis of Variance)

Chapter 10. Design of Experiments and Analysis of Variance

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

STAT Final Practice Problems

Much of the material we will be covering for a while has to do with designing an experimental study that concerns some phenomenon of interest.

Analysis of Variance. ภาว น ศ ร ประภาน ก ล คณะเศรษฐศาสตร มหาว ทยาล ยธรรมศาสตร

df=degrees of freedom = n - 1

Table of z values and probabilities for the standard normal distribution. z is the first column plus the top row. Each cell shows P(X z).

What is Experimental Design?

Statistics and Quantitative Analysis U4320

Example: Four levels of herbicide strength in an experiment on dry weight of treated plants.

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

Factorial Analysis of Variance

Statistik för bioteknik sf2911 Föreläsning 15: Variansanalys

Inferences for Regression

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

Two-Way Analysis of Variance - no interaction

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.

MSc / PhD Course Advanced Biostatistics. dr. P. Nazarov

Disadvantages of using many pooled t procedures. The sampling distribution of the sample means. The variability between the sample means

STAT 705 Chapter 16: One-way ANOVA

SIMPLE REGRESSION ANALYSIS. Business Statistics

Lec 1: An Introduction to ANOVA

Ch 2: Simple Linear Regression

ANOVA Analysis of Variance

1 Introduction to One-way ANOVA

Analysis of variance

If we have many sets of populations, we may compare the means of populations in each set with one experiment.

2 and F Distributions. Barrow, Statistics for Economics, Accounting and Business Studies, 4 th edition Pearson Education Limited 2006

1. The (dependent variable) is the variable of interest to be measured in the experiment.

Chapter 4: Randomized Blocks and Latin Squares

ANOVA: Analysis of Variation

Stat 6640 Solution to Midterm #2

ANOVA: Comparing More Than Two Means

3. Design Experiments and Variance Analysis

Unit 12: Analysis of Single Factor Experiments

Inference for Regression Simple Linear Regression

Battery Life. Factory

10 One-way analysis of variance (ANOVA)

Chapter 15: Analysis of Variance

Josh Engwer (TTU) 1-Factor ANOVA / 32

Topic 6. Two-way designs: Randomized Complete Block Design [ST&D Chapter 9 sections 9.1 to 9.7 (except 9.6) and section 15.8]

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

Ch 11- One Way Analysis of Variance

Two-Way Factorial Designs

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur

One-Way ANOVA. Some examples of when ANOVA would be appropriate include:

Design & Analysis of Experiments 7E 2009 Montgomery

Lec 5: Factorial Experiment

Inference for Regression Inference about the Regression Model and Using the Regression Line

PLSC PRACTICE TEST ONE

STAT 115:Experimental Designs

Keppel, G. & Wickens, T.D. Design and Analysis Chapter 2: Sources of Variability and Sums of Squares

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

1 DV is normally distributed in the population for each level of the within-subjects factor 2 The population variances of the difference scores

Computer Exercise 3 Answers Hypothesis Testing

WELCOME! Lecture 13 Thommy Perlinger

Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs

Analysis of Variance and Design of Experiments-I

Factorial designs. Experiments

1 The Randomized Block Design

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

The Multiple Regression Model

Table 1: Fish Biomass data set on 26 streams

MAT3378 ANOVA Summary

Ma 3/103: Lecture 25 Linear Regression II: Hypothesis Testing and ANOVA

STAT 135 Lab 11 Tests for Categorical Data (Fisher s Exact test, χ 2 tests for Homogeneity and Independence) and Linear Regression

Lecture 14: ANOVA and the F-test

Cross-Over Design Experiment (Using SAS)

CS 5014: Research Methods in Computer Science

Transcription:

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

Introduction In this chapter, expand the idea of hypothesis tests. We describe a test of variances and then a test that simultaneously compares several means to determine if they came from equal populations. 2

Key Concepts ANOVA is analysis of variance. ANOVA can be used to analyze the data obtained from experimental or observational studies. A factor is a variable that the experimenter has selected for investigation. A level is the intensity setting of a factor. A treatment is a specific combination of a factor levels. Experimental units are the objects of interest in the experiment. Variation between treatment groups captures the effect of the treatment. Variation within treatment groups represents random error not explained by the experimental treatments. 3

Example 4.1 Suppose that the experimenter began by randomly selecting 20 men and 20 women for the experiment. These two groups were then randomly divided into ten each for the experimental and control groups. What are the factors, levels and treatments in this experiment? Solution : Now there are two factors of interest to the experimental and control groups and each factor has two levels: i. Gender at two levels: men and women ii. Meal at two levels: breakfast and no breakfast In this more complex experiment, there are four treatments, one for each specific combination of factor levels: men without breakfast, men with breakfast, women without breakfast and women with breakfast. 4

One-way ANOVA The one-way analysis of variance specifically allows us to compare several groups of observations whether or not their population mean are equal. One way ANOVA is also known as Completely Randomized Design (CRD). This design only involves one factor. The application of one way ANOVA requires that the following assumptions hold true: (i) The populations from which the samples are drawn are (approximately) normally distributed. (ii) The populations from which the samples are drawn have the same variance. (iii) The samples drawn from different populations are random and independent. 5

Each observation may be written as: y Or alternatively written as: Where i 12,,...,k j 12,,...,n ij i ij yij i i ij th th y : j observation from i treatment ij th : i mean i th : i effect of treatment i : random error ij i 6

Y i. The is the total of all observations from the treatment, while Y.. is the grand total of all N observations. i th Treatment 1 2 i k y 11 y 21 y i1 y k1 y 12 y 22 y i2 y k 2............ y 1n1 y 2n2 y ini y knk Total Y 1 Y 2 Y i Yk Y Then the hypothesis can be written as: 0 1 2 1 Note: This hypothesis is use for model H :... all the population mean are equal i j k H : for at least one i, j at least one of the mean is not equal yij i ij 7

For model 0 1 2 1 y, ij i i ij the hypothesis is as follows: H :... 0 there is no treatment effect i k H : 0 for at least one i there is exist treatment effect The computations for an analysis of variance problem are usually summarized in tabular form as shown in table below. This table is referred to as the ANOVA table. Source of Variation Sum of Squares Degree of freedom Mean Square F Calculated Treatment (Between levels) SSTR k - 1 MSTR SSTR k 1 F cal MSTR MSE Error (within levels) SSE N - k MSE SSE N k Total SST N - 1 8

where Y.. Y Y SST y SSTR SSE SST SSTR k n 2 k 2 2 2 i... ij i1 j1 N i1 ni N k number of treatment N total number of observation F f H 1 We reject 0 if cal,k,n k and conclude that some of the data is due to differences in the treatment levels. f,k 1,N k 9

Example 4.2 Three different types of acid can be used in a particular chemical process. The resulting yield (in %) from several batches using the different types of acid are given below: Acid A B C 93 95 76 95 97 77 74 87 84 Test whether or not the three populations appear to have equal means using = 0.05. 10

Solution: 1. Construct the table of calculation: N 9,k 3 Acid A B C 93 95 76 95 97 77 74 87 84 Y1. 262 Y2 279 Y3 237 Y 778.... 2. Set up the hypothesis: H 0 1 : i A B C H : for at least one j i, j 11

3. Construct ANOVA table: SST SSTR k i1 j1 2 ij 2.. 2 2 2 2 2 2 93 95 74... 76 77 84 67914 67253. 7778 660. 2222 k i1 n Y y 2 2 i... n i Y N Y N 262 279 237 778 3 3 3 9 67551. 3333 67253. 7778 2 2 2 2 297. 5555 SSE SST SSTR 660. 2222 297. 5555 362. 6667 778 9 2 12

Source of Variation Treatment (Between levels) Error (within levels) Sum of Squares Degrees of Freedom 297.5555 3 1 = 2 362.6667 9 3 = 6 Total 660.2222 9 1 = 8 Mean Square 297. 5555 148. 7778 2 362. 6667 6 60. 4445 F Calculated 148. 7778 F cal 2. 4614 60. 4445 4. At = 0.05, from the statistical table for f distribution, we have f 0. 05, 2, 6 5. 14 5. Since F cal 2. 4614 f 0. 05, 2, 6 5. 14, thus we failed to reject and conclude that there is no difference for mean in the three Htypes 0 of acid at significance at = 0.05 13

Anova: Single Factor SUMMARY Groups Count Sum Average Variance Column 1 3 262 87.33333 134.3333 Column 2 3 279 93 28 Column 3 3 237 79 19 ANOVA Source of Variation SS df MS F P-value F crit Between Groups 297.5556 2 148.7778 2.461397 0.16575 5.143253 Within Groups 362.6667 6 60.44444 Total 660.2222 8 14

Output from Excel Compare calculated values from example to Excel output: Groups Count Sum Average Variance Column 1 3 262 87.333 134.333 Column 2 3 279 93 28 Column 3 3 237 79 19 ANOVA Source of Variation SS df MS F P-value F crit Between Groups 298 2 148.78 2.4614 0.1657 5.143 Within Groups 363 6 60.444 Total 660 8 The test statistic The p-value The critical bound 15

Exercise 4.1: Four catalyst that may affect the concentration of one component in a three-component liquid mixture are being investigated. The following concentrations are obtained. 1 2 3 4 58.2 56.3 50.1 52.9 57.2 54.5 54.2 49.9 58.4 57.0 55.4 50.0 55.8 55.3 51.7 54.9 Y1 Y2 Y3 Y4 Y Compute a one-way analysis of variance for this experiment and test the hypothesis at 0.05 level of significance and state your conclusion concerning the effect of catalyst on the concentration of one component in three-component liquid mixture. 16

Exercise 4.2 The following is sample information. Test the hypothesis that the treatment means are equal. Use 0.05. (Answer: Reject ) H 0 Treatment 1 Treatment 2 Treatment 3 8 3 3 6 2 4 10 4 5 9 3 4 17