Siti Nor Jannah bt Ahmad Siti Shahida bt Kamel Zamriyah bt Abu Samah.

Slides:



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

BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
Lecture 15 Two-Factor Analysis of Variance (Chapter 15.5)
Design of Experiments and Analysis of Variance
The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved.
© 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.
Independent Sample T-test Formula
Part I – MULTIVARIATE ANALYSIS
Analysis of Variance Chapter Introduction Analysis of variance compares two or more populations of interval data. Specifically, we are interested.
Statistics Are Fun! Analysis of Variance
Chapter Topics The Completely Randomized Model: One-Factor Analysis of Variance F-Test for Difference in c Means The Tukey-Kramer Procedure ANOVA Assumptions.
Chapter 3 Analysis of Variance
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 16 Two-factor Analysis of Variance (Chapter 15.5) Homework 4 has been posted. It is due Friday, March 21 st.
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:
Intro to Statistics for the Behavioral Sciences PSYC 1900
8. ANALYSIS OF VARIANCE 8.1 Elements of a Designed Experiment
Lecture 12 One-way Analysis of Variance (Chapter 15.2)
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
CHAPTER 3 Analysis of Variance (ANOVA) PART 1
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.
STA291 Statistical Methods Lecture 31. Analyzing a Design in One Factor – The One-Way Analysis of Variance Consider an experiment with a single factor.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
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.
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
Chapter 10 Analysis of Variance.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
1 Analysis of Variance Chapter 14 2 Introduction Analysis of variance helps compare two or more populations of quantitative data. Specifically, we are.
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
Lecture 9-1 Analysis of Variance
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
Chapter Seventeen. Figure 17.1 Relationship of Hypothesis Testing Related to Differences to the Previous Chapter and the Marketing Research Process Focus.
12-1 Chapter Twelve McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved.
Econ 3790: Business and Economic Statistics Instructor: Yogesh Uppal
Econ 3790: Business and Economic Statistics Instructor: Yogesh Uppal
Research Methods and Data Analysis in Psychology Spring 2015 Kyle Stephenson.
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.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Chapter 14 Repeated Measures and Two Factor Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Seventh.
Chapter 11 Analysis of Variance
Chapter 11 Created by Bethany Stubbe and Stephan Kogitz.
CHAPTER 3 Analysis of Variance (ANOVA) PART 1
Factorial Experiments
ANOVA Econ201 HSTS212.
i) Two way ANOVA without replication
Comparing Three or More Means
CHAPTER 3 Analysis of Variance (ANOVA)
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
One-Way Analysis of Variance
Chapter 10 – Part II Analysis of Variance
Quantitative Methods ANOVA.
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Siti Nor Jannah bt Ahmad Siti Shahida bt Kamel Zamriyah bt Abu Samah

 A statistical method for making simultaneous comparisons between two or more means.  ANOVA is a general technique that can be used to test the hypothesis that the means among two or more groups are equal, under the assumption that the sampled populations are normally distributed.  Analysis of variance can be used to test differences among several means for significance without increasing the Type I error rate.

To begin, let us consider the effect of temperature on a passive component such as a resistor. We select three different temperatures and observe their effect on the resistors. This experiment can be conducted by measuring all the participating resistors before placing n resistors each in three different ovens. Each oven is heated to a selected temperature. Then we measure the resistors again after, say, 24 hours and analyze the responses, which are the differences between before and after being subjected to the temperatures. The temperature is called a factor. The different temperature settings are called levels. In this example there are three levels or settings of the factor Temperature.

4 What is a factor? A factor is an independent treatment variable whose settings (values) are controlled and varied by the experimenter. The intensity setting of a factor is the level. Levels may be quantitative numbers or, in many cases, simply "present" or "not present" ("0" or "1"). In the experiment, there is only one factor, temperature, and the analysis of variance that we will be using to analyze the effect of temperature is called a one-way or one-factor ANOVA. The 1-way ANOVA The 2-way or 3-way ANOVA We could have opted to also study the effect of positions in the oven. In this case there would be two factors, temperature and oven position. Here we speak of a two-way or two-factor ANOVA. Furthermore, we may be interested in a third factor, the effect of time. Now we deal with a three-way or three-factor ANOVA. Different types of ANOVA

 You may use ANOVA whenever you have 2 or more independent groups  You must use ANOVA whenever you have 3 or more independent groups.

One-way ANOVA  1 factor-e.g. smoking status (never,former,current) Two-way ANOVA  2 factors-e.g. gender and smoking status Three-way ANOVA  3 factors-e.g. gender, smoking and beer consumption

The P value answers this question: If all the populations really have the same mean (the treatments are ineffective), what is the chance that random sampling would result in means as far apart (or more so) as observed in this experiment?  If the overall P value is large, the data do not give you any reason to conclude that the means differ. Even if the population means were equal, you would not be surprised to find sample means this far apart just by chance. You just don't have compelling evidence that they differ.

 If the overall P value is small, then it is unlikely that the differences you observed are due to random sampling. You can reject the idea that all the populations have identical means.  This doesn't mean that every mean differs from every other mean, only that at least one differs from the rest.

F (2,27) = 8.80, p <.05F (2,27) = 8.80, p <.05 ◦ F = test statistic ◦ 2,27  2 =df between groups  27 = df within groups ◦ 8.80 = obtained value of F ◦ p <.05 = probability less than 5% that null hypothesis is true  Reject the null hypothesis  Some of the group means differ significantly from each other.

 Example ◦ 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.

 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.

Weekly sales

 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 strategies.

 Solution ◦ The data are interval ◦ The problem objective is to compare sales in three cities. ◦ We hypothesize that the three population means are equal

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

 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 Sum of Squares for Treatments SST In our example treatments are represented by the different advertising strategies.

There are k treatments The size of sample j The mean of sample j 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

 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 variability within samples is measured by adding all the squared distances between observations and their sample means. This sum is called the Sum of Squares for Error 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).

 Solution – continued Calculate 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

mean squares To perform the test we need to calculate the mean squares as follows: Calculation of MST - Mean Square for Treatments Calculation of MSE Mean Square for Error

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

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.

SS(Total) = SST + SSE

 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).

 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.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.

 Example ◦ Suppose in the Example, two factors are to be examined:  The effects of the marketing strategy on sales.  Emphasis on convenience  Emphasis on quality  Emphasis on price  The effects of the selected media on sales.  Advertise on TV  Advertise in newspapers

 Solution ◦ We may attempt to analyze combinations of levels, one from each factor using one-way ANOVA. ◦ The treatments will be:  Treatment 1: Emphasize convenience and advertise in TV  Treatment 2: Emphasize convenience and advertise in newspapers  …………………………………………………………………….  Treatment 6: Emphasize price and advertise in newspapers

 Solution ◦ The hypotheses tested are: H 0 :  1 =  2 =  3 =  4 =  5 =  6 H 1 : At least two means differ.

City1 City2 City3 City4City5City6 Convnce Convnce Quality Quality Price Price TVPaper TV Paper TV Paper – In each one of six cities sales are recorded for ten weeks. – In each city a different combination of marketing emphasis and media usage is employed. Solutio n

The p-value = We conclude that there is evidence that differences exist in the mean weekly sales among the six cities. City1 City2 City3 City4City5City6 Convnce Convnce Quality Quality Price Price TVPaper TV Paper TV Paper  Solution

 These result raises some questions: ◦ Are the differences in sales caused by the different marketing strategies? ◦ Are the differences in sales caused by the different media used for advertising? ◦ Are there combinations of marketing strategy and media that interact to affect the weekly sales?

 The current experimental design cannot provide answers to these questions.  A new experimental design is needed.

City 1 sales City3 sales City 5 sales City 2 sales City 4 sales City 6 sales TV Newspapers ConvenienceQualityPrice Are there differences in the mean sales caused by different marketing strategies? Factor A: Marketing strategy Factor B: Advertising media

Test whether mean sales of “Convenience”, “Quality”, and “Price” significantly differ from one another. H 0 :  Conv. =  Quality =  Price H 1 : At least two means differ Calculations are based on the sum of square for factor A SS(A)

City 1 sales City 3 sales City 5 sales City 2 sales City 4 sales City 6 sales Factor A: Marketing strategy Factor B: Advertising media Are there differences in the mean sales caused by different advertising media? TV Newspapers ConvenienceQualityPrice

Test whether mean sales of the “TV”, and “Newspapers” significantly differ from one another. H 0 :  TV =  Newspapers H 1 : The means differ Calculations are based on the sum of square for factor B SS(B)

City 1 sales City 5 sales City 2 sales City 4 sales City 6 sales TV Newspapers ConvenienceQualityPrice Factor A: Marketing strategy Factor B: Advertising media Are there differences in the mean sales caused by interaction between marketing strategy and advertising medium? City 3 sales TV Quality

Test whether mean sales of certain cells are different than the level expected. Calculation are based on the sum of square for interaction SS(AB)

 Test for the difference between the levels of the main factors A and B F= MS(A) MSE F= MS(B) MSE Rejection region: F > F ,a-1,n-ab F > F , b-1, n-ab Test for interaction between factors A and B F= MS(AB) MSE Rejection region: F > F  a- 1)(b-1),n-ab SS(A)/(a-1) SS(B)/(b-1) SS(AB)/(a-1)(b-1) SSE/(n-ab)

1. The response distributions is normal 2. The treatment variances are equal. 3. The samples are independent.

 Example – continued ◦ Test of the difference in mean sales between the three marketing strategies H 0 :  conv. =  quality =  price H 1 : At least two mean sales are different Factor A Marketing strategies

 Example – continued ◦ Test of the difference in mean sales between the three marketing strategies H 0 :  conv. =  quality =  price H 1 : At least two mean sales are different F = MS(Marketing strategy)/MSE = 5.33 F critical = F ,a-1,n-ab = F.05,3-1,60-(3)(2) = 3.17; (p-value =.0077) ◦ At 5% significance level there is evidence to infer that differences in weekly sales exist among the marketing strategies. MS(A)  MSE

 Example - continued ◦ Test of the difference in mean sales between the two advertising media H 0 :  TV. =  Nespaper H 1 : The two mean sales differ Factor B = Advertising media

 Example - continued ◦ Test of the difference in mean sales between the two advertising media H 0 :  TV. =  Nespaper H 1 : The two mean sales differ F = MS(Media)/MSE = 1.42 F critical = F  a-1,n-ab = F.05,2-1,60-(3)(2) = 4.02 (p-value =.2387) ◦ At 5% significance level there is insufficient evidence to infer that differences in weekly sales exist between the two advertising media. MS(B)  MSE

 Example - continued ◦ Test for interaction between factors A and B H 0 :  TV*conv. =  TV*quality =…=  newsp.*price H 1 : At least two means differ Interaction AB = Marketing*Media

 Example - continued ◦ Test for interaction between factor A and B H 0 :  TV*conv. =  TV*quality =…=  newsp.*price H 1 : At least two means differ F = MS(Marketing*Media)/MSE =.09 F critical = F  a-1)(b-1),n-ab = F.05,(3-1)(2-1),60-(3)(2) = 3.17 (p- value=.9171) ◦ At 5% significance level there is insufficient evidence to infer that the two factors interact to affect the mean weekly sales. MS(AB)  MSE

To compare 2 or more means in a single test we use ANOVA The type of ANOVA test to use is decided by the number of FACTORS in the experiment The ANOVA will only tell whether there is a significant difference and gives no information on which mean(s) are different Further pairwise comparisons of the means are required to gain further information on which mean(s) are different Pairwise testing of means can increase the probability of type 1 errors If we have to go do pair wise t-tests after the ANOVA anyway, why not just do them and forget the ANOVA? – Well of course that is their choice BUT the ANOVA may return a result of no sig diff. In one test, saving a lot of time and effort AND pairwise testing increases the probability of false results

Thank You