ANOVA Econ201 HSTS212.

Slides:



Advertisements
Similar presentations
Pooled Variance t Test Tests means of 2 independent populations having equal variances Parametric test procedure Assumptions – Both populations are normally.
Advertisements

1-Way Analysis of Variance
Chapter 11 Analysis of Variance
Analysis of Variance (ANOVA) ANOVA can be used to test for the equality of three or more population means We want to use the sample results to test the.
Design of Experiments and Analysis of Variance
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 11 Analysis of Variance
Analysis of Variance. Experimental Design u Investigator controls one or more independent variables –Called treatment variables or factors –Contain two.
Statistics for Business and Economics
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
Statistics for Managers Using Microsoft® Excel 5th Edition
8. ANALYSIS OF VARIANCE 8.1 Elements of a Designed Experiment
© 2011 Pearson Education, Inc
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chap 10-1 Analysis of Variance. Chap 10-2 Overview Analysis of Variance (ANOVA) F-test Tukey- Kramer test One-Way ANOVA Two-Way ANOVA Interaction Effects.
Chapter 12: Analysis of Variance
F-Test ( ANOVA ) & Two-Way ANOVA
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 統計學 Spring 2004 授課教師:統計系余清祥 日期: 2004 年 3 月 30 日 第八週:變異數分析與實驗設計.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 14 Analysis.
Statistics for Business and Economics Chapter 8 Design of Experiments and Analysis of Variance.
QNT 531 Advanced Problems in Statistics and Research Methods
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 © 2008 Thomson South-Western. All Rights Reserved Chapter 13 Experimental Design and Analysis of Variance nIntroduction to Experimental Design.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
© 2003 Prentice-Hall, Inc.Chap 11-1 Analysis of Variance IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION Dr. Xueping Li University of Tennessee.
© 2002 Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft Excel 3 rd Edition Chapter 9 Analysis of Variance.
Chapter 10 Analysis of Variance.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson 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.
TOPIC 11 Analysis of Variance. Draw Sample Populations μ 1 = μ 2 = μ 3 = μ 4 = ….. μ n Evidence to accept/reject our claim Sample mean each group, grand.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
1 Analysis of Variance Chapter 14 2 Introduction Analysis of variance helps compare two or more populations of quantitative data. Specifically, we are.
Lecture 9-1 Analysis of Variance
Chapter 13 - ANOVA. ANOVA Be able to explain in general terms and using an example what a one-way ANOVA is (370). Know the purpose of the one-way ANOVA.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Chapter 10: Analysis of Variance: Comparing More Than Two Means.
Business Statistics: A First Course (3rd Edition)
Chapter 4 Analysis of Variance
Chap 11-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 11 Analysis of Variance.
Formula for Linear Regression y = bx + a Y variable plotted on vertical axis. X variable plotted on horizontal axis. Slope or the change in y for every.
Chapter 11 Analysis of Variance
Design Lecture: week3 HSTS212.
CHAPTER 3 Analysis of Variance (ANOVA) PART 1
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Statistics for Managers Using Microsoft Excel 3rd Edition
Lecture Slides Elementary Statistics Twelfth Edition
Factorial Experiments
i) Two way ANOVA without replication
Applied Business Statistics, 7th ed. by Ken Black
Comparing Three or More Means
CHAPTER 3 Analysis of Variance (ANOVA)
Chapter 10: Analysis of Variance: Comparing More Than Two Means
Post Hoc Tests on One-Way ANOVA
Post Hoc Tests on One-Way ANOVA
Statistics for Business and Economics (13e)
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Comparing Three or More Means
Chapter 11 Analysis of Variance
Analysis of Variance (ANOVA)
BUSINESS MARKET RESEARCH
Chapter 15 Analysis of Variance
Chapter 10 – Part II Analysis of Variance
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

ANOVA Econ201 HSTS212

Learning Objectives 1. Describe Analysis of Variance (ANOVA) 2. Explain the Rationale of ANOVA 3. Compare Experimental Designs 4. Test the Equality of 2 or More Means Completely Randomized Design Randomized Block Design Factorial Design As a result of this class, you will be able to ... HSTS312

Analysis of Variance A analysis of variance is a technique that partitions the total sum of squares of deviations of the observations about their mean into portions associated with independent variables in the experiment and a portion associated with error HSTS312

Analysis of Variance The ANOVA table was previously discussed in the context of regression models with quantitative independent variables, in this course the focus will be on nominal independent variables (factors) HSTS312

Analysis of Variance A factor refers to a categorical quantity under examination in an experiment as a possible cause of variation in the response variable. HSTS312

Analysis of Variance Levels refer to the categories, measurements, or strata of a factor of interest in the experiment. HSTS312

Types of Experimental Designs This teleology is based on the number of explanatory variables & nature of relationship between X & Y. Completely Randomized Randomized Block Factorial One-Way Anova Two-Way Anova HSTS312 24

Important Design Principles Replication Randomization Blocking

Replication A repetition of the basic experiment Obtain estimate of experimental error Increase power

Randomization Random assignment of treatments to experimental units Random run order Random selection of experimental units from a population

Randomization Randomization restrictions Stratification Clustering

Blocking Grouping to remove sources of heterogeneity Paired design is a form of blocking

Completely Randomized Design HSTS312 9 17

Completely Randomized Design 1. Treatments are Assigned Randomly to Experimental Units EUs are Assumed Homogeneous 2. One Factor or Independent Variable 2 or More Treatment Levels or groups 3. Analyzed by One-Way ANOVA HSTS312

One-Way ANOVA F-Test Tests the Equality of 2 or More (p) Population Means Variables One Nominal Independent Variable One Continuous Dependent Variable Note: There is one dependent variable in the ANOVA model. MANOVA has more than one dependent variable. Ask, what are nominal & interval scales? HSTS312

One-Way ANOVA F-Test Assumptions 1. Randomness & Independence of Errors 2. Normality Populations (for each condition) are Normally Distributed 3. Homogeneity of Variance Populations (for each condition) have Equal Variances HSTS312

One-Way ANOVA F-Test Hypotheses H0: 1 = 2 = 3 = ... = p All Population Means are Equal No Treatment Effect Ha: Not All j Are Equal At Least 1 Pop. Mean is Different Treatment Effect NOT 1  2  ...  p HSTS312

One-Way ANOVA F-Test Hypotheses H0: 1 = 2 = 3 = ... = p All Population Means are Equal No Treatment Effect Ha: Not All j Are Equal At Least 1 Pop. Mean is Different Treatment Effect NOT 1 = 2 = ... = p Or i ≠ j for some i, j. f(X) X  =  =  1 2 3 f(X) X  =   1 2 3 HSTS312

One-Way ANOVA Basic Idea 1. Compares 2 Types of Variation to Test Equality of Means 2. If Treatment Variation Is Significantly Greater Than Random Variation then Means Are Not Equal 3.Variation Measures Are Obtained by ‘Partitioning’ Total Variation HSTS312

One-Way ANOVA Partitions Total Variation Variation due to Random Sampling are due to Individual Differences Within Groups. Variation due to treatment Variation due to random sampling Sum of Squares Among Sum of Squares Between Sum of Squares Treatment (SST) Among Groups Variation Sum of Squares Within Sum of Squares Error (SSE) Within Groups Variation HSTS312 89

One-Way ANOVA Partitions Total Variation HSTS312

Total Variation Response, Y Y Group 1 Group 2 Group 3 HSTS312

Treatment Variation Y3 Y Y2 Y1 Response, Y Group 1 Group 2 Group 3 HSTS312

Random (Error) Variation Response, Y Y3 Y2 Y1 Group 1 Group 2 Group 3 HSTS312

One-Way ANOVA F-Test Test Statistic F = MST / MSE MST Is Mean Square for Treatment MSE Is Mean Square for Error 2. Degrees of Freedom 1 = p -1 2 = n - p p = # Populations, Groups, or Levels n = Total Sample Size HSTS312

Anova Table HSTS312

One-Way ANOVA Summary Table Source of Degrees Sum of Mean F Variation of Squares Square Freedom (Variance) n = sum of sample sizes of all populations. c = number of factor levels All values are positive. Why? (squared terms) Degrees of Freedom & Sum of Squares are additive; Mean Square is NOT. Treatment p - 1 SST MST = MST SST/(p - 1) MSE Error n - p SSE MSE = SSE/(n - p) Total n - 1 SS(Total) = SST+SSE HSTS312

One-Way ANOVA F-Test Critical Value If means are equal, F = MST / MSE  1. Only reject large F! Reject H  Do Not Reject H F F a ( p  1 , n  p ) Always One-Tail! © 1984-1994 T/Maker Co. HSTS312

One-Way ANOVA F-Test Example As a vet epidemiologist you want to see if 3 food supplements have different mean milk yields. You assign 15 cows, 5 per food supplement. Question: At the .05 level, is there a difference in mean yields? Food1 Food2 Food3 25.40 23.40 20.00 26.31 21.80 22.20 24.10 23.50 19.75 23.74 22.75 20.60 25.10 21.60 20.40 HSTS312

One-Way ANOVA F-Test Solution H0: 1 = 2 = 3 Ha: Not All Equal  = .05 1 = 2 2 = 12 Critical Value(s): Test Statistic: Decision: Conclusion: MST 23 . 5820 F    25 . 6 MSE . 9211 Reject at  = .05  = .05 There Is Evidence Pop. Means Are Different F 3.89 HSTS312

Summary Table Solution Source of Degrees of Sum of Mean F Variation Freedom Squares Square (Variance) Food 3 - 1 = 2 47.1640 23.5820 25.60 Error 15 - 3 = 12 11.0532 .9211 Total 15 - 1 = 14 58.2172 HSTS312

Pair-wise comparisons Needed when the overall F test is rejected Can be done without adjustment of type I error if other comparisons were planned in advance (least significant difference - LSD method) Type I error needs to be adjusted if other comparisons were not planned in advance (Bonferroni’s and scheffe’s methods) HSTS312

Fisher’s Least Significant Difference (LSD) Test To compare level 1 and level 2 Compare this to t/2 = Upper-tailed value or - t/2 lower-tailed from Student’s t-distribution for /2 and (n - p) degrees of freedom MSE = Mean square within from ANOVA table n = Number of subjects p = Number of levels HSTS312

Randomized Block Design HSTS312

Randomized Block Design 1. Experimental Units (Subjects) Are Assigned Randomly within Blocks Blocks are Assumed Homogeneous 2. One Factor or Independent Variable of Interest 2 or More Treatment Levels or Classifications 3. One Blocking Factor HSTS312

Randomized Block Design Factor Levels: (Treatments) A, B, C, D   Experimental Units  Treatments are randomly assigned within blocks Block 1 A C D B Block 2 Block 3 . Block b Are the mean training times the same for 3 different methods? 9 subjects 3 methods (factor levels) HSTS312 78

Randomized Block F-Test 1. Tests the Equality of 2 or More (p) Population Means 2. Variables One Nominal Independent Variable One Nominal Blocking Variable One Continuous Dependent Variable Note: There is one dependent variable in the ANOVA model. MANOVA has more than one dependent variable. Ask, what are nominal & interval scales? HSTS312

Randomized Block F-Test Assumptions 1. Normality Probability Distribution of each Block-Treatment combination is Normal 2. Homogeneity of Variance Probability Distributions of all Block-Treatment combinations have Equal Variances HSTS312

Randomized Block F-Test Hypotheses H0: 1 = 2 = 3 = ... = p All Population Means are Equal No Treatment Effect Ha: Not All j Are Equal At Least 1 Pop. Mean is Different Treatment Effect 1  2  ...  p Is wrong HSTS312

Randomized Block F-Test Hypotheses H0: 1 = 2 = ... = p All Population Means are Equal No Treatment Effect Ha: Not All j Are Equal At Least 1 Pop. Mean is Different Treatment Effect 1  2  ...  p Is wrong f(X) X  =  =  1 2 3 f(X) X  =   1 2 3 HSTS312

The F Ratio for Randomized Block Designs SS=SSE+SSB+SST HSTS312

Randomized Block F-Test Test Statistic F = MST / MSE MST Is Mean Square for Treatment MSE Is Mean Square for Error 2. Degrees of Freedom 1 = p -1 2 = n – b – p +1 p = # Treatments, b = # Blocks, n = Total Sample Size HSTS312

Randomized Block F-Test Critical Value If means are equal, F = MST / MSE  1. Only reject large F! Reject H  Do Not Reject H F F a ( p  1 , n  p ) Always One-Tail! © 1984-1994 T/Maker Co. HSTS312

Randomized Block F-Test Example You wish to determine which of four brands of tires has the longest tread life. You randomly assign one of each brand (A, B, C, and D) to a tire location on each of 5 cars. At the .05 level, is there a difference in mean tread life? Tire Location Block Left Front Right Front Left Rear Right Rear Car 1 A: 42,000 C: 58,000 B: 38,000 D: 44,000 Car 2 B: 40,000 D: 48,000 A: 39,000 C: 50,000 Car 3 C: 48,000 D: 39,000 B: 36,000 Car 4 A: 41,000 D: 42,000 C: 43,000 Car 5 D: 51,000 A: 44,000 C: 52,000 B: 35,000 HSTS312

Randomized Block F-Test Solution H0: 1 = 2 = 3= 4 Ha: Not All Equal  = .05 1 = 3 2 = 12 Critical Value(s): Test Statistic: Decision: Conclusion: F = 11.9933 Reject at  = .05  = .05 There Is Evidence Pop. Means Are Different F 3.49 HSTS312

Conclusion: should be able to 5. Conduct and interpret post-analysis of variance pairwise comparisons procedures. 6. Recognize when randomized block analysis of variance is useful and be able to perform the randomized block analysis. 7. Perform two factor analysis of variance tests with replications using SAS and interpret the output. HSTS312

Key Terms Between-Sample Variation Levels One-Way Analysis of Variance Completely Randomized Design Experiment-Wide Error Rate Factor Levels One-Way Analysis of Variance Total Variation Treatment Within-Sample Variation HSTS312