Analysis of Variance Chapter 15 15.1 Introduction Analysis of variance compares two or more populations of interval data. Specifically, we are interested.

Slides:



Advertisements
Similar presentations
Ch 14 實習(2).
Advertisements

Lecture 11 One-way analysis of variance (Chapter 15.2)
i) Two way ANOVA without replication
Lecture 15 Two-Factor Analysis of Variance (Chapter 15.5)
Design of Experiments and Analysis of Variance
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.
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
1 1 Slide © 2009, Econ-2030 Applied Statistics-Dr Tadesse Chapter 10: Comparisons Involving Means n Introduction to Analysis of Variance n Analysis of.
Example –A radio station manager wants to know if the amount of time his listeners spent listening to a radio per day is about the same every day of the.
Statistics for Business and Economics
Analysis of Variance Chapter Introduction Analysis of variance compares two or more populations of interval data. Specifically, we are interested.
Lecture 14 Analysis of Variance Experimental Designs (Chapter 15.3)
Lecture 13 Multiple comparisons for one-way ANOVA (Chapter 15.7)
Analysis of Variance Chapter 15 - continued Two-Factor Analysis of Variance - Example 15.3 –Suppose in Example 15.1, two factors are to be examined:
Lecture 10 Inference about the difference between population proportions (Chapter 13.6) One-way analysis of variance (Chapter 15.2)
Lecture 9 Inference about the ratio of two variances (Chapter 13.5)
Lecture 12 One-way Analysis of Variance (Chapter 15.2)
Go to Table of ContentTable of Content Analysis of Variance: Randomized Blocks Farrokh Alemi Ph.D. Kashif Haqqi M.D.
Chapter 12: Analysis of Variance
1 1 Slide © 2005 Thomson/South-Western AK/ECON 3480 M & N WINTER 2006 n Power Point Presentation n Professor Ying Kong School of Analytic Studies and Information.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS & Updated by SPIROS VELIANITIS.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide 統計學 Spring 2004 授課教師:統計系余清祥 日期: 2004 年 3 月 30 日 第八週:變異數分析與實驗設計.
1 1 Slide © 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
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.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 14 Analysis.
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.
QNT 531 Advanced Problems in Statistics and Research Methods
12-1 Chapter Twelve McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
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 Analysis of Variance Chapter 13 BA 303.
Analysis of Variance Chapter 12 Introduction Analysis of variance compares two or more populations of interval data. Specifically, we are interested.
Analysis of Variance ( ANOVA )
12-1 Chapter Twelve McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved.
Analysis of Variance ST 511 Introduction n Analysis of variance compares two or more populations of quantitative data. n Specifically, we are interested.
Economics 173 Business Statistics Lectures 9 & 10 Summer, 2001 Professor J. Petry.
CHAPTER 12 Analysis of Variance Tests
Chapter 10 Analysis of Variance.
Experimental Design If a process is in statistical control but has poor capability it will often be necessary to reduce variability. Experimental design.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Chapter 15 Analysis of Variance ( ANOVA ). Analysis of Variance… Analysis of variance is a technique that allows us to compare two or more populations.
TOPIC 11 Analysis of Variance. Draw Sample Populations μ 1 = μ 2 = μ 3 = μ 4 = ….. μ n Evidence to accept/reject our claim Sample mean each group, grand.
1 Analysis of Variance Chapter 14 2 Introduction Analysis of variance helps compare two or more populations of quantitative data. Specifically, we are.
Copyright © 2009 Cengage Learning 14.1 Chapter 14 Analysis of Variance.
1 Nonparametric Statistical Techniques Chapter 17.
Chapter 12: Analysis of Variance. Chapter Goals Test a hypothesis about several means. Consider the analysis of variance technique (ANOVA). Restrict the.
Chapter 10: Analysis of Variance: Comparing More Than Two Means.
1 Overview of Experimental Design. 2 3 Examples of Experimental Designs.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Econ 3790: Business and Economic Statistics Instructor: Yogesh Uppal
Econ 3790: Business and Economic Statistics Instructor: Yogesh Uppal
© 2006 by Thomson Learning, a division of Thomson Asia Pte Ltd.. 1 Slide Slide Slides Prepared by Juei-Chao Chen Fu Jen Catholic University Slides Prepared.
Chapter 14: Analysis of Variance One-way ANOVA Lecture 9a Instructor: Naveen Abedin Date: 24 th November 2015.
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.
CHAPTER 3 Analysis of Variance (ANOVA) PART 2 =TWO- WAY ANOVA WITHOUT REPLICATION.
1 Nonparametric Statistical Techniques Chapter 18.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Copyright © 2008 by Hawkes Learning Systems/Quant Systems, Inc.
Keller: Stats for Mgmt & Econ, 7th Ed Analysis of Variance
i) Two way ANOVA without replication
Statistics Analysis of Variance.
Chapter 10: Analysis of Variance: Comparing More Than Two Means
Statistics for Business and Economics (13e)
Econ 3790: Business and Economic Statistics
Chapter 14: Analysis of Variance One-way ANOVA Lecture 8
Chapter 10 – Part II Analysis of Variance
Presentation transcript:

Analysis of Variance Chapter 15

15.1 Introduction Analysis of variance compares two or more populations of interval data. Specifically, we are interested in determining whether differences exist between the population means. The procedure works by analyzing the sample variance.

The analysis of variance is a procedure that tests to determine whether differences exits between two or more population means. To do this, the technique analyzes the sample variances 15.2 One Way Analysis of Variance

Example 15.1 –An apple juice manufacturer is planning to develop a new product -a liquid concentrate. –The marketing manager has to decide how to market the new product. –Three strategies are considered Emphasize convenience of using the product. Emphasize the quality of the product. Emphasize the product’s low price. One Way Analysis of Variance

Example continued –An experiment was conducted as follows: In three cities an advertisement campaign was launched. In each city only one of the three characteristics (convenience, quality, and price) was emphasized. The weekly sales were recorded for twenty weeks following the beginning of the campaigns. One Way Analysis of Variance

See file Xm Weekly sales

Solution –The data are interval –The problem objective is to compare sales in three cities. –We hypothesize that the three population means are equal One Way Analysis of Variance

H 0 :  1 =  2 =  3 H 1 : At least two means differ To build the statistic needed to test the hypotheses use the following notation: Solution Defining the Hypotheses

Independent samples are drawn from k populations (treatments). 12k X 11 x 21. X n1,1 X 12 x 22. X n2,2 X 1k x 2k. X nk,k Sample size Sample mean First observation, first sample Second observation, second sample X is the “response variable”. The variables’ value are called “responses”. Notation

Terminology In the context of this problem… Response variable – weekly sales Responses – actual sale values Experimental unit – weeks in the three cities when we record sales figures. Factor – the criterion by which we classify the populations (the treatments). In this problems the factor is the marketing strategy. Factor levels – the population (treatment) names. In this problem factor levels are the marketing trategies.

Two types of variability are employed when testing for the equality of the population means The rationale of the test statistic

Graphical demonstration: Employing two types of variability

Treatment 1Treatment 2 Treatment Treatment 1Treatment 2Treatment The sample means are the same as before, but the larger within-sample variability makes it harder to draw a conclusion about the population means. A small variability within the samples makes it easier to draw a conclusion about the population means.

The rationale behind the test statistic – I If the null hypothesis is true, we would expect all the sample means to be close to one another (and as a result, close to the grand mean). If the alternative hypothesis is true, at least some of the sample means would differ. Thus, we measure variability between sample means.

The variability between the sample means is measured as the sum of squared distances between each mean and the grand mean. This sum is called the S um of S quares for T reatments SST In our example treatments are represented by the different advertising strategies. Variability between sample means

There are k treatments The size of sample j The mean of sample j Sum of squares for treatments (SST) Note: When the sample means are close to one another, their distance from the grand mean is small, leading to a small SST. Thus, large SST indicates large variation between sample means, which supports H 1.

Solution – continued Calculate SST = 20( ) ( ) ( ) 2 = = 57, The grand mean is calculated by Sum of squares for treatments (SST)

Is SST = 57, large enough to reject H 0 in favor of H 1 ? See next. Sum of squares for treatments (SST)

Large variability within the samples weakens the “ability” of the sample means to represent their corresponding population means. Therefore, even though sample means may markedly differ from one another, SST must be judged relative to the “within samples variability”. The rationale behind test statistic – II

The variability within samples is measured by adding all the squared distances between observations and their sample means. This sum is called the S um of S quares for E rror SSE In our example this is the sum of all squared differences between sales in city j and the sample mean of city j (over all the three cities). Within samples variability

Solution – continued Calculate SSE Sum of squares for errors (SSE)  (n 1 - 1)s (n 2 -1)s (n 3 -1)s 3 2 = (20 -1)10, (20 -1)7, (20-1)8, = 506,983.50

Is SST = 57, large enough relative to SSE = 506, to reject the null hypothesis that specifies that all the means are equal? Sum of squares for errors (SSE)

mean squares To perform the test we need to calculate the mean squares as follows: The mean sum of squares Calculation of MST - M ean S quare for T reatments Calculation of MSE M ean S quare for E rror

Calculation of the test statistic with the following degrees of freedom: v 1 =k -1 and v 2 =n-k Required Conditions: 1. The populations tested are normally distributed. 2. The variances of all the populations tested are equal.

And finally the hypothesis test: H 0 :  1 =  2 = …=  k H 1 : At least two means differ Test statistic: R.R: F>F ,k-1,n-k The F test rejection region

The F test H o :  1 =  2 =  3 H 1 : At least two means differ Test statistic F= MST  MSE= 3.23 Since 3.23 > 3.15, there is sufficient evidence to reject H o in favor of H 1, and argue that at least one of the mean sales is different than the others.

Use Excel to find the p-value – f x Statistical FDIST(3.23,2,57) =.0467 The F test p- value p Value = P(F>3.23) =.0467

Excel single factor ANOVA SS(Total) = SST + SSE Xm15-01.xls

15.3 Analysis of Variance Experimental Designs Several elements may distinguish between one experimental design and others. –The number of factors. Each characteristic investigated is called a factor. Each factor has several levels.

Factor A Level 1Level2 Level 1 Factor B Level 3 Two - way ANOVA Two factors Level2 One - way ANOVA Single factor Treatment 3 (level 1) Response Treatment 1 (level 3) Treatment 2 (level 2)

Groups of matched observations are formed into blocks, in order to remove the effects of “unwanted” variability. By doing so we improve the chances of detecting the variability of interest. Independent samples or blocks

Fixed effects –If all possible levels of a factor are included in our analysis we have a fixed effect ANOVA. –The conclusion of a fixed effect ANOVA applies only to the levels studied. Random effects –If the levels included in our analysis represent a random sample of all the possible levels, we have a random-effect ANOVA. –The conclusion of the random-effect ANOVA applies to all the levels (not only those studied). Models of Fixed and Random Effects

In some ANOVA models the test statistic of the fixed effects case may differ from the test statistic of the random effect case. Fixed and random effects - examples –Fixed effects - The advertisement Example (15.1): All the levels of the marketing strategies were included –Random effects - To determine if there is a difference in the production rate of 50 machines, four machines are randomly selected and there production recorded. Models of Fixed and Random Effects.

15.4 Randomized Blocks (Two-way) Analysis of Variance The purpose of designing a randomized block experiment is to reduce the within-treatments variation thus increasing the relative amount of between treatment variation. This helps in detecting differences between the treatment means more easily.

Treatment 4 Treatment 3 Treatment 2 Treatment 1 Block 1Block3Block2 Block all the observations with some commonality across treatments Randomized Blocks

Block all the observations with some commonality across treatments Randomized Blocks

The sum of square total is partitioned into three sources of variation –Treatments –Blocks –Within samples (Error) SS(Total) = SST + SSB + SSE Sum of square for treatmentsSum of square for blocksSum of square for error Recall. For the independent samples design we have: SS(Total) = SST + SSE Partitioning the total variability

Calculating the sums of squares Formulai for the calculation of the sums of squares SST = SSB=

Calculating the sums of squares Formulai for the calculation of the sums of squares SST = SSB=

To perform hypothesis tests for treatments and blocks we need Mean square for treatments Mean square for blocks Mean square for error Mean Squares

Test statistics for the randomized block design ANOVA Test statistic for treatments Test statistic for blocks

Testing the mean responses for treatments F > F ,k-1,n-k-b+1 Testing the mean response for blocks F> F ,b-1,n-k-b+1 The F test rejection regions

Example 15.2 –Are there differences in the effectiveness of cholesterol reduction drugs? –To answer this question the following experiment was organized: 25 groups of men with high cholesterol were matched by age and weight. Each group consisted of 4 men. Each person in a group received a different drug. The cholesterol level reduction in two months was recorded. –Can we infer from the data in Xm15-02 that there are differences in mean cholesterol reduction among the four drugs?Xm15-02 Randomized Blocks ANOVA - Example

Solution –Each drug can be considered a treatment. –Each 4 records (per group) can be blocked, because they are matched by age and weight. –This procedure eliminates the variability in cholesterol reduction related to different combinations of age and weight. –This helps detect differences in the mean cholesterol reduction attributed to the different drugs. Randomized Blocks ANOVA - Example

BlocksTreatmentsb-1MST / MSEMSB / MSE Conclusion: At 5% significance level there is sufficient evidence to infer that the mean “cholesterol reduction” gained by at least two drugs are different. K-1 Randomized Blocks ANOVA - Example