Statistics for Managers Using Microsoft Excel 3rd Edition

Slides:



Advertisements
Similar presentations
Chapter 11 Analysis of Variance
Advertisements

Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 11 Analysis of Variance
© 2002 Prentice-Hall, Inc.Chap 8-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 8 Two Sample Tests with Numerical Data.
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
1 Pertemuan 11 Analisis Varians Data Nonparametrik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
Chapter 17 Analysis of Variance
Statistics for Managers Using Microsoft® Excel 5th Edition
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 15 Analysis of Variance.
Chapter 11 Analysis of Variance
© 2004 Prentice-Hall, Inc.Chap 10-1 Basic Business Statistics (9 th Edition) Chapter 10 Two-Sample Tests with Numerical Data.
Copyright ©2011 Pearson Education 11-1 Chapter 11 Analysis of Variance Statistics for Managers using Microsoft Excel 6 th Global Edition.
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.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 11-1 Chapter 11 Analysis of Variance Statistics for Managers using Microsoft Excel.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 12-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 12 Analysis.
F-Test ( ANOVA ) & Two-Way ANOVA
Statistics for Business and Economics Chapter 8 Design of Experiments and Analysis of Variance.
INFERENTIAL STATISTICS: Analysis Of Variance ANOVA
© 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 12 Analysis of Variance Tests
ANOVA (Analysis of Variance) by Aziza Munir
© 2003 Prentice-Hall, Inc.Chap 11-1 Analysis of Variance & Post-ANOVA ANALYSIS IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION Dr. Xueping.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Analysis of Variance.
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 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests and One-Way ANOVA Business Statistics, A First.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Lecture 9-1 Analysis of Variance
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 15 Analysis of Variance.
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.
Copyright © 2016, 2013, 2010 Pearson Education, Inc. Chapter 10, Slide 1 Two-Sample Tests and One-Way ANOVA Chapter 10.
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.
ENGR 610 Applied Statistics Fall Week 8 Marshall University CITE Jack Smith.
Chapter 11 Analysis of Variance
Chapter 12 Chi-Square Tests and Nonparametric Tests
CHAPTER 3 Analysis of Variance (ANOVA) PART 1
CHAPTER 4 Analysis of Variance (ANOVA)
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Statistics for Managers using Microsoft Excel 3rd Edition
Two-Way Analysis of Variance Chapter 11.
Factorial Experiments
ANOVA Econ201 HSTS212.
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 4 Analysis of Variance (ANOVA)
Chapter 10: Analysis of Variance: Comparing More Than Two Means
CHAPTER 12 ANALYSIS OF VARIANCE
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Chapter 11 Hypothesis Tests and Estimation for Population Variances
Chapter 11 Analysis of Variance
Analysis of Variance (ANOVA)
Chapter 9 Analysis of Variance
Chapter 10 Hypothesis Tests for One and Two Population Variances
One-Way Analysis of Variance
Chapter 15 Analysis of Variance
Chapter 10 – Part II Analysis of Variance
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Statistics for Managers Using Microsoft Excel 3rd Edition Chapter 9 Analysis of Variance © 2002 Prentice-Hall, Inc.

Chapter Topics The completely randomized design: one-factor analysis of variance ANOVA assumptions F test for difference in c means The Tukey-Kramer procedure The factorial design: two-way analysis of variance Examine effects of factors and interaction Kruskal-Wallis rank test for differences in c medians © 2002 Prentice-Hall, Inc.

General Experimental Setting Investigator controls one or more independent variables Called treatment variables or factors Each treatment factor contains two or more levels (or categories/classifications) Observe effects on dependent variable Response to levels of independent variable Experimental design: the plan used to test hypothesis © 2002 Prentice-Hall, Inc.

Completely Randomized Design Experimental units (subjects) are assigned randomly to treatments Subjects are assumed homogeneous Only one factor or independent variable With two or more treatment levels Analyzed by One-factor analysis of variance (one-way ANOVA) © 2002 Prentice-Hall, Inc.

Randomized Design Example Factor (Training Method) Factor Levels (Treatments) Randomly Assigned Units Dependent Variable (Response) 21 hrs 17 hrs 31 hrs 27 hrs 25 hrs 28 hrs 29 hrs 20 hrs 22 hrs    © 2002 Prentice-Hall, Inc.

One-Factor Analysis of Variance F Test Evaluate the difference among the mean responses of two or more (c ) populations e.g.: Several types of tires, oven temperature settings Assumptions Samples are randomly and independently drawn This condition must be met Populations are normally distributed F test is robust to moderate departure from normality Populations have equal variances Less sensitive to this requirement when samples are of equal size from each population © 2002 Prentice-Hall, Inc.

Why ANOVA? Could compare the means one by one using Z or t tests for difference of means Each Z or t test contains Type I error The total Type I error with k pairs of means is 1- (1 - a) k e.g.: If there are 5 means and use a = .05 Must perform 10 comparisons Type I error is 1 – (.95) 10 = .40 40% of the time you will reject the null hypothesis of equal means in favor of the alternative even when the null is true! © 2002 Prentice-Hall, Inc.

Hypotheses of One-Way ANOVA All population means are equal No treatment effect (no variation in means among groups) At least one population mean is different (others may be the same!) There is treatment effect Does not mean that all population means are different © 2002 Prentice-Hall, Inc.

One-Factor ANOVA (No Treatment Effect) The Null Hypothesis is True © 2002 Prentice-Hall, Inc.

One-Factor ANOVA (Treatment Effect Present) The Null Hypothesis is NOT True © 2002 Prentice-Hall, Inc.

One-Factor ANOVA (Partition of Total Variation) Total Variation SST Variation Due to Treatment SSA + Variation Due to Random Sampling SSW = Commonly referred to as: Sum of Squares Among Sum of Squares Between Sum of Squares Model Sum of Squares Explained Sum of Squares Treatment Among Groups Variation Commonly referred to as: Sum of Squares Within Sum of Squares Error Sum of Squares Unexplained Within Groups Variation © 2002 Prentice-Hall, Inc.

Total Variation © 2002 Prentice-Hall, Inc.

Total Variation (continued) © 2002 Prentice-Hall, Inc.

Among-Group Variation Variation Due to Differences Among Groups. © 2002 Prentice-Hall, Inc.

Among-Group Variation (continued) © 2002 Prentice-Hall, Inc.

Within-Group Variation Summing the variation within each group and then adding over all groups. © 2002 Prentice-Hall, Inc.

Within-Group Variation (continued) © 2002 Prentice-Hall, Inc.

Within-Group Variation (continued) For c = 2, this is the pooled-variance in the t-Test. If more than two groups, use F Test. For two groups, use t-Test. F Test more limited. © 2002 Prentice-Hall, Inc.

One-Factor ANOVA F Test Statistic MSA is mean squares among or between variances MSW is mean squares within or error variances Degrees of freedom © 2002 Prentice-Hall, Inc.

One-Factor ANOVA Summary Table Source of Variation Degrees of Freedom Sum of Squares Mean Squares (Variance) F Statistic Among (Factor) c – 1 SSA MSA = SSA/(c – 1 ) MSA/MSW Within (Error) n – c SSW MSW = SSW/(n – c ) Total n – 1 SST = SSA + SSW © 2002 Prentice-Hall, Inc.

Features of One-Factor ANOVA F Statistic The F Statistic is the ratio of the among estimate of variance and the within estimate of variance The ratio must always be positive Df1 = c -1 will typically be small Df2 = n - c will typically be large The ratio should be closed to 1 if the null is true © 2002 Prentice-Hall, Inc.

Features of One-Factor ANOVA F Statistic (continued) The numerator is expected to be greater than the denominator The ratio will be larger than 1 if the null is false © 2002 Prentice-Hall, Inc.

One-Factor ANOVA F Test Example Machine1 Machine2 Machine3 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 As production manager, you want to see if three filling machines have different mean filling times. You assign 15 similarly trained and experienced workers, five per machine, to the machines. At the .05 significance level, is there a difference in mean filling times? © 2002 Prentice-Hall, Inc.

One-Factor ANOVA Example: Scatter Diagram Machine1 Machine2 Machine3 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 Time in Seconds 27 26 25 24 23 22 21 20 19 • • • • • • • • • • • • • • • © 2002 Prentice-Hall, Inc.

One-Factor ANOVA Example Computations Machine1 Machine2 Machine3 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 © 2002 Prentice-Hall, Inc.

Mean Squares (Variance) Summary Table Source of Variation Degrees of Freedom Sum of Squares Mean Squares (Variance) F Statistic Among (Factor) 3-1=2 47.1640 23.5820 MSA/MSW =25.60 Within (Error) 15-3=12 11.0532 .9211 Total 15-1=14 58.2172 © 2002 Prentice-Hall, Inc.

One-Factor ANOVA Example Solution Test Statistic: Decision: Conclusion: H0: 1 = 2 = 3 H1: Not All Equal  = .05 df1= 2 df2 = 12 Critical Value(s): MSA 23 . 5820 F    25 . 6 MSW . 9211 Reject at  = 0.05  = 0.05 There is evidence that at least one  i differs from the rest. F 3.89 © 2002 Prentice-Hall, Inc.

Solution In EXCEL Use tools | data analysis | ANOVA: single factor EXCEL worksheet that performs the one-factor ANOVA of the example © 2002 Prentice-Hall, Inc.

The Tukey-Kramer Procedure Tells which population means are significantly different e.g.: 1 = 2  3 Two groups whose means may be significantly different Post hoc (a posteriori) procedure Done after rejection of equal means in ANOVA Ability for pair-wise comparisons Compare absolute mean differences with critical range f(X)    X = 1 2 3 © 2002 Prentice-Hall, Inc.

The Tukey-Kramer Procedure: Example 1. Compute absolute mean differences: Machine1 Machine2 Machine3 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 2. Compute Critical Range: 3. All of the absolute mean differences are greater. There is a significance difference between each pair of means at 5% level of significance. © 2002 Prentice-Hall, Inc.

Solution in PHStat Use PHStat | c-sample tests | Tukey-Kramer procedure … EXCEL worksheet that performs the Tukey-Kramer procedure for the previous example © 2002 Prentice-Hall, Inc.

Two-Way ANOVA Examines the effect of Two factors on the dependent variable e.g.: Percent carbonation and line speed on soft drink bottling process Interaction between the different levels of these two factors e.g.: Does the effect of one particular percentage of carbonation depend on which level the line speed is set? © 2002 Prentice-Hall, Inc.

Two-Way ANOVA Assumptions Normality Homogeneity of Variance (continued) Assumptions Normality Populations are normally distributed Homogeneity of Variance Populations have equal variances Independence of Errors Independent random samples are drawn © 2002 Prentice-Hall, Inc.

Two-Way ANOVA Total Variation Partitioning + Variation Due to Treatment A SSA d.f.= r-1 SSB + Variation Due to Treatment B d.f.= c-1 Total Variation SSAB + Variation Due to Interaction SST = d.f.= (r-1)(c-1) d.f.= n-1 SSE Variation Due to Random Sampling d.f.= rc(n’-1) © 2002 Prentice-Hall, Inc.

Two-Way ANOVA Total Variation Partitioning © 2002 Prentice-Hall, Inc.

Total Variation © 2002 Prentice-Hall, Inc.

Factor A Variation Sum of Squares Due to Factor A = the difference among the various levels of factor A and the grand mean © 2002 Prentice-Hall, Inc.

Factor B Variation Sum of Squares Due to Factor B = the difference among the various levels of factor B and the grand mean © 2002 Prentice-Hall, Inc.

Interaction Variation Sum of Squares Due to Interaction between A and B = the effect of the combinations of factor A and factor B © 2002 Prentice-Hall, Inc.

Random Error Sum of Squares Error = the differences among the observations within each cell and the corresponding cell means © 2002 Prentice-Hall, Inc.

Two-Way ANOVA: The F Test Statistic F Test for Factor A Main Effect H0: 1 .= 2 . = ••• = r . H1: Not all i . are equal Reject if F > FU F Test for Factor B Main Effect H0: 1 = . 2 = ••• =  c H1: Not all . j are equal Reject if F > FU F Test for Interaction Effect H0: ij = 0 (for all i and j) H1: ij  0 Reject if F > FU © 2002 Prentice-Hall, Inc.

Two-Way ANOVA Summary Table Source of Variation Degrees of Freedom Sum of Squares Mean Squares F Statistic Factor A (Row) r – 1 SSA MSA = SSA/(r – 1) MSA/ MSE Factor B (Column) c – 1 SSB MSB = SSB/(c – 1) MSB/ MSE AB (Interaction) (r – 1)(c – 1) SSAB MSAB = SSAB/ [(r – 1)(c – 1)] MSAB/ MSE Error rc (n’ – 1) SSE MSE = SSE/[rc (n’ – 1)] Total rc n’ – 1 SST © 2002 Prentice-Hall, Inc.

Features of Two-Way ANOVA F Test Degrees of freedom always add up rcn’-1=rc(n’-1)+(c-1)+(r-1)+(c-1)(r-1) Total=error+column+row+interaction The denominator of the F Test is always the same but the numerator is different. The sums of squares always add up © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Rank Test for c Medians Extension of Wilcoxon rank-sum test Tests the equality of more than 2 (c) population medians Distribution-free test procedure Used to analyze completely randomized experimental designs Use 2 distribution to approximate if each sample group size nj > 5 df = c – 1 © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Rank Test Assumptions Independent random samples are drawn Continuous dependent variable Data may be ranked both within and among samples Populations have same variability Populations have same shape Robust with regard to last two conditions Use F test in completely randomized designs and when the more stringent assumptions hold © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Rank Test Procedure Obtain ranks In event of tie, each of the tied values gets their average rank Add the ranks for data from each of the c groups Square to obtain tj2 © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Rank Test Procedure (continued) Compute test statistic Number of observation in j –th sample H may be approximated by chi-square distribution with df = c –1 when each nj >5 © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Rank Test Procedure (continued) Critical value for a given a Upper tail Decision rule Reject H0: M1 = M2 = ••• = mc if test statistic H > Otherwise do not reject H0 © 2002 Prentice-Hall, Inc.

Kruksal-Wallis Rank Test: Example Machine1 Machine2 Machine3 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 As production manager, you want to see if three filling machines have different median filling times. You assign 15 similarly trained & experienced workers, five per machine, to the machines. At the .05 significance level, is there a difference in median filling times? © 2002 Prentice-Hall, Inc.

Example Solution: Step 1 Obtaining a Ranking Raw Data Ranks Machine1 Machine2 Machine3 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 Machine1 Machine2 Machine3 14 9 2 15 6 7 12 10 1 11 8 4 13 5 3 65 38 17 © 2002 Prentice-Hall, Inc.

Example Solution: Step 2 Test Statistic Computation © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Test Example Solution H0: M1 = M2 = M3 H1: Not all equal  = .05 df = c - 1 = 3 - 1 = 2 Critical Value(s): Test Statistic: H = 11.58 Decision: Reject at  = .05 Conclusion:  = .05 There is evidence that population medians are not all equal. © 2002 Prentice-Hall, Inc.

Kruskal-Wallis Test in PHStat PHStat | c-sample tests | Kruskal-Wallis rank sum test … Example solution in excel spreadsheet © 2002 Prentice-Hall, Inc.

Chapter Summary Described the completely randomized design: one-factor analysis of variance ANOVA assumptions F test for difference in c means The Tukey-Kramer procedure Described the factorial design: two-way analysis of variance Examine effects of factors and interaction Discussed Kruskal-Wallis rank test for differences in c medians © 2002 Prentice-Hall, Inc.