12 Analysis of Variance Analysis of variance ANOVA

  • Slides: 12
Download presentation

12 Analysis of Variance

12 Analysis of Variance

Analysis of variance (ANOVA) • How do we compare multiple samples at once? •

Analysis of variance (ANOVA) • How do we compare multiple samples at once? • We could do pairwise t-tests to see which differed from one another. • However, the a-level probability of making an error applies to each test. So, the real chance of making an error is increased by using multiple tests. • There are ways of dealing with this, but it is timeconsuming to do many pairs. • The analysis of variance procedure (called ANOVA) is a way to make multiple comparisons. • H 0 : m 1 = m 2 = m 3 =. . mn, for n means • Ha : at least one mean is not equal to the others, i. e. mi ≠ mj , or mj ≠ mk or mi ≠ mj ≠ mk or more http: //www. tnstate. edu/ganter/BIO%20311%20 Ch%2011%20 Many. Means. html

Analysis of variance (ANOVA) Some necessary definitions and notation • xij = observation j

Analysis of variance (ANOVA) Some necessary definitions and notation • xij = observation j in group i • I = the number of groups • ni = the sample size of group i • Dot notation = a dot that replaces an index stands for the mean for the observations the dot replaces. • xi • = mean for group i (the j's have been averaged for the group)Group i • In summation notation, the dot looks like: x j obs. • The total number of observations is n* : • the OVERALL MEAN x • • 11 x 12. . . Total number of obs. n 1 n 2 n 3. . Group average x 1. x 2. Overall mean, n* x. .

Analysis of variance (ANOVA) • Now we need to define some of the terms

Analysis of variance (ANOVA) • Now we need to define some of the terms that will be important for this technique. • The first term is called a "SUM OF SQUARES" (abbreviated "SS"), SUM OF SQUARES: TOTAL, WITHIN GROUPS, AND BETWEEN GROUPS • SS(total) means the sum of squares for all of the data, corrected for the OVERALL MEAN OF ALL OBSERVATIONS. • SS(within groups) means the sum of squares for all of the groups, corrected for the MEAN OF EACH GROUP (i. e. j observations) • The SS(between groups) is • • • the degrees of freedom (d. o. f) associated with the total n* -1 the degrees of freedom associated with the within groups is n* - I the degrees of freedom associated with the between groups is I -1.

Analysis of variance (ANOVA) • • the relationship between the Sum of Squares we

Analysis of variance (ANOVA) • • the relationship between the Sum of Squares we have just calculated: SS(total) = SS(between groups) + SS(within groups) Another way to write this (in terms of an experiment) is: SS(total) = SS(treatments) + SS(random error) • The mean squares • If SS(total) is fixed (= can't change), then as SS(treatments) increases, SS(random error) must decrease. A successful experiment has most of the sums of squares in the between group partition, so that groups differ (treatments differ from control, etc. ). An unsuccessful experiment has most of the sums of squares in the within group partition, so that it doesn't matter which group an observation is in (treatment means are the same as control, etc. ). • • •

Analysis of variance (ANOVA) A summary of presenting the calculated values. Source d. o.

Analysis of variance (ANOVA) A summary of presenting the calculated values. Source d. o. f SS MS Between Groups I-1 SS(between groups) MS(between groups) Within Groups n* - I SS(within groups) MS(within groups) Total n* - 1 SS(total)

Analysis of variance (ANOVA) Example – do the three groups have the same mean

Analysis of variance (ANOVA) Example – do the three groups have the same mean values ? H 0 : m 1 = m 2 = m 3 reject null hypothesis, since p<0. 05 EXCEL functions – SUMXMY 2, FINV, AVERAGE 3. 89 < 4. 43

Analysis of variance (ANOVA) – using Excel tool reject null hypothesis, since p<0. 05

Analysis of variance (ANOVA) – using Excel tool reject null hypothesis, since p<0. 05

Chapter 12 p 288

Chapter 12 p 288

Chapter 12 p 290

Chapter 12 p 290

Chapter 12 p 291

Chapter 12 p 291