|
Analysis of Variance by Adam J. McKee What is Analysis of Variance?
What does the ANOVA involve?
Example
The ANOVA Table
Computing SS With the Computational Formula
Step 1: Setting Up Data for an ANOVA
Step 2: Total Sum of Squares Compute the total sum of squares (SST):
Step 3: Between Groups Sum of Squares This is a measure of the variation between groups—it is needed in order to compute the value of F.
Step 4: Within Groups Sum of Squares This is an estimate of the amount of variation within groups. This works because the total variance is composed of variance between subjects and variance within subjects. Since we know what SS between subjects is, all the rest of it is SS within.
Step 5: Compute df for between groups This is simply the number of groups minus 1. For example, if I have three groups, then: dfb = 3 – 1 = 2 Step 6: Compute df for the Total The total degrees of freedom is equal to the total number of subjects minus 1. For example, if my experiment involves three groups of six subjects for a total of 18 subjects, then my df total will be 18 – 1 = 17 Step 7: Compute df Within Groups Like we did with SS, we get df by subtraction: dfw = dft – dfb = 17 – 2 = 15 This is a good time to go back and replace the question marks in your ANOVA table with the degrees of freedom values. Step 8: Compute the means squares Mean squares are computed by dividing each sum of squares by its degrees of freedom. MSb = SSb / dfb MSw = SSw / dfw Go ahead and ender these values into your ANOVA Table. Step 9: Compute F It took a lot of work to get here, but the computation of F is simple once we have all of the other information:
Establishing p
The Decision Rule IF the calculated value of F is greater than the critical value (table value), then we reject the null hypothesis; otherwise, we do not reject (fail to reject). If we reject, then we state that p is less than the value of our alpha level (if we use a computer program such as SPSS, we can report the exact value of p). Example Table by Steps
What Does It Mean?
Post Hoc Tests Because these tests are conducted after the ANOVA, they are called post hoc tests and are designed for use when individual comparisons were not planed in advance based on theory; they are also known as multiple comparison tests. Although a t-test may be of use to test the difference between a pair of means, its use to make repeated comparisons involving the use of data more than one time makes the probabilities obtained with t inaccurate. Tukey’s HSD Test When a one-way ANOVA is statistically significant, one cannot be sure which specific differences are significant. In a test with three groups, there are three possible significant differences between group means:
(Note that the numbers in parentheses are sample means supplied for the purpose of the following examples). Calculating HSD
q = the studentized range statistic (which we obtain from a table) MSwithin is the mean square for within groups for our ANOVA n is the number of subjects for each group—Tukey’s HSD can only be used if we have the same number of people in each group Using the q Table Determine the degrees of freedom associated with the within groups mean square from your ANOVA. Also determine the number of groups. Read from the table where the number of groups meets the degrees of freedom. Performing the Comparison Fir each pair of means, compare the mean differences to HSD. Here is the decision rule: If the observed difference between a pair of means is greater than HSD, reject the null hypothesis; otherwise, do not reject it. Example: Suppose that we compute HSD to be 2.127 and that for comparison A v. B the observed difference is .500. Since observed difference is not greater than HSD, we fail to reject the null. This page available at: |