Docsity

One-way ANOVA: Comparing Group Means with Homogeneity of Variance Assumption, Study notes of Design

Toggle sidebar
bg1
U
NDERSTANDING THE
O
NE
-
WAY
ANOVA
The One-way Analysis of Variance (ANOVA) is a procedure for testing the hypothesis that K
population means are equal, where K > 2. The One-way ANOVA compares the means of the
samples or groups in order to make inferences about the population means. The One-way
ANOVA is also called a single factor analysis of variance because there is only one independent
variable or factor. The independent variable has nominal levels or a few ordered levels.
P
ROBLEMS WITH USING MULTIPLE
t
TESTS
To test whether pairs of sample means differ by more than would be expected due to chance,
we might initially conduct a series of t tests on the K sample means – however, this approach
has a major problem (i.e., inflating the Type I Error rate).
The number of t tests needed to compare all possible pairs of means would be K(K – 1)/2,
where K = number of means.
When more than one t test is run, each at a specified level of significance (such as α =
.05), the probability of making one or more Type I errors in the series of t tests is greater
than
α
.
The Type I Error Rate is determined as
c
)1(1
α
āˆ’āˆ’
Where
α
= level of significance for each separate t test
c = number of independent t tests
Sir Ronald A. Fisher developed the procedure known as analysis of variance (ANOVA),
which allows us to test the hypothesis of equality of K population means while maintaining
the Type I error rate at the pre-established (a priori) α level for the entire set of comparisons.
T
HE VARIABLES IN THE
O
NE
-
WAY
ANOVA
In an ANOVA, there are two kinds of variables: independent and dependent.
The independent variable is controlled or manipulated by the researcher. It is a
categorical (discrete) variable used to form the groupings of observations. However,
do not confuse the independent variable with the ā€œlevels of an independent variable.ā€
In the One-way ANOVA, only one independent variable is considered, but there
are two or more (theoretically any finite number) levels of the independent variable.
The independent variable is typically a categorical variable. The independent variable
(or factor) divides individuals into two or more groups or levels. The procedure is a
One-way ANOVA, since there is only one independent variable.
There are two types of independent variables: active and attribute.
If the independent variable is an active variable then we manipulate the values of the
variable to study its affect on another variable. For example, anxiety level is an active
independent variable.
An attribute independent variable is a variable where we do not alter the variable
during the study. For example, we might want to study the effect of age on weight.
We cannot change a person’s age, but we can study people of different ages and
weights.
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download One-way ANOVA: Comparing Group Means with Homogeneity of Variance Assumption and more Study notes Design in PDF only on Docsity!

UNDERSTANDING THE ONE-WAY ANOVA

The One-way Analysis of Variance (ANOVA) is a procedure for testing the hypothesis that K population means are equal, where K > 2. The One-way ANOVA compares the means of the samples or groups in order to make inferences about the population means. The One-way ANOVA is also called a single factor analysis of variance because there is only one independent variable or factor. The independent variable has nominal levels or a few ordered levels.

PROBLEMS WITH USING MULTIPLE t TESTS

To test whether pairs of sample means differ by more than would be expected due to chance, we might initially conduct a series of t tests on the K sample means – however, this approach has a major problem (i.e., inflating the Type I Error rate). The number of t tests needed to compare all possible pairs of means would be K ( K – 1)/2, where K = number of means. When more than one t test is run, each at a specified level of significance (such as α = .05), the probability of making one or more Type I errors in the series of t tests is greater

than α.

The Type I Error Rate is determined as 1 āˆ’( 1 āˆ’ α ) c

Where α = level of significance for each separate t test

c = number of independent t tests Sir Ronald A. Fisher developed the procedure known as analysis of variance (ANOVA), which allows us to test the hypothesis of equality of K population means while maintaining the Type I error rate at the pre-established ( a priori ) α level for the entire set of comparisons.

THE VARIABLES IN THE ONE-WAY ANOVA

In an ANOVA, there are two kinds of variables: independent and dependent. The independent variable is controlled or manipulated by the researcher. It is a categorical ( discrete ) variable used to form the groupings of observations. However, do not confuse the independent variable with the ā€œlevels of an independent variable.ā€ In the One-way ANOVA, only one independent variable is considered , but there are two or more (theoretically any finite number) levels of the independent variable. The independent variable is typically a categorical variable. The independent variable (or factor) divides individuals into two or more groups or levels. The procedure is a One-way ANOVA, since there is only one independent variable. There are two types of independent variables: active and attribute. If the independent variable is an active variable then we manipulate the values of the variable to study its affect on another variable. For example, anxiety level is an active independent variable. An attribute independent variable is a variable where we do not alter the variable during the study. For example, we might want to study the effect of age on weight. We cannot change a person’s age, but we can study people of different ages and weights.

THE ONE-WAY ANOVA

The ( continuous ) dependent variable is defined as the variable that is, or is presumed to be, the result of manipulating the independent variable. In the One-way ANOVA, there is only one dependent variable – and hypotheses are formulated about the means of the groups on that dependent variable. The dependent variable differentiates individuals on some quantitative (continuous) dimension. The ANOVA F test (named after Sir Ronald A. Fisher) evaluates whether the group means on the dependent variable differ significantly from each other. That is, an overall analysis-of-variance test is conducted to assess whether means on a dependent variable are significantly different among the groups.

MODELS IN THE ONE-WAY ANOVA

In an ANOVA, there are two specific types of models that describe how we choose the levels of our independent variable. We can obtain the levels of the treatment (independent) variable in at least two different ways: We could, and most often do, deliberately select them or we could sample them at random. The way in which the levels are derived has important implications for the generalization we might draw from our study. For a one-way analysis of variance, the distinction is not particularly critical, but it can become quite important when working with more complex designs such as the factorial analysis of variance. If the levels of an independent variable (factor) were selected by the researcher because they were of particular interest and/or were all possible levels, it is a fixed-model (fixed-factor or effect). In other words, the levels did not constitute random samples from some larger population of levels. The treatment levels are deliberately selected and will remain constant from one replication to another. Generalization of such a model can be made only to the levels tested. Although most designs used in behavioral science research are fixed, there is another model we can use in single-factor designs. If the levels of an independent variable (factor) are randomly selected from a larger population of levels, that variable is called a random- model (random-factor or effect). The treatment levels are randomly selected and if we replicated the study we would again choose the levels randomly and would most likely have a whole new set of levels. Results can be generalized to the population levels from which the levels of the independent variable were randomly selected.

HYPOTHESES FOR THE ONE-WAY ANOVA

The null hypothesis ( H 0 ) tested in the One-way ANOVA is that the population means from which the K samples are selected are equal. Or that each of the group means is equal.

H 0 : μ 1 = μ 2 =...= μ K Where K is the number of levels of the independent variable.

For example: If the independent variable has three levels – we would write…

H 0 : μ 1 = μ 2 = μ 3

If the independent variable has five levels – we would write…

H 0 : μ 1 = μ 2 = μ 3 = μ 4 = μ 5

THE ONE-WAY ANOVA

The assumption of independence is commonly known as the unforgiving assumption (r.e., robustness), which simply means that if the K groups are not independent of each other, one cannot use the one-way analysis of variance. That is, if the groups (categories) are independent of each other, which is typically assessed through an examination of the research design, the assumption of independence has been met. If this assumption is not met, the one- way ANOVA is an inappropriate statistic.

TESTING THE ASSUMPTION OF NORMALITY

Another of the first steps in using the One-way ANOVA test is to test the assumption of normality, where the Null Hypothesis is that there is no significant departure from normality for each of the groups/levels, as such; retaining the null hypothesis indicates that the assumption of normality has been met for the given samples. The Alternative Hypothesis is that there is a significant departure from normality, as such; rejecting the null hypothesis in favor of the alternative indicates that the assumption of normality has not been met for the given samples. The normality assumption can also be checked through an examination of the research design. It can be tested through supplemental statistical analyses, such as a ā€œgoodness-of-fitā€ test (e.g., Chi-Square), which tests whether the sample distributions are within random sampling fluctuation of normality. To test the assumption of normality, we can use the Shapiro-Wilks test, which is more commonly used by statisticians. The Shapiro-Wilks Test is a statistical test of the hypothesis that sample data have been drawn from a normally distributed population. From this test, the Sig. ( p ) value is compared to the a priori alpha level (level of significance for the statistic) – and a determination is made as to reject ( p < α) or retain ( p > α) the null hypothesis.

Tests of Normality

.182 10 .200* .930 10. .253 10 .068 .915 10. .164 10 .200* .968 10.

style Attachment Style 1 Secure 2 Anxious 3 Avoidant

delta Delta Sleep

Statistic df Sig. Statistic df Sig.

Kolmogorov-Smirnova^ Shapiro-Wilk

*. This is a lower bound of the true significance. a. Lilliefors Significance Correction

For the above example, where α = .001, given that p = .445 for the Secure Group, p =. for the Anxious Group, and p = .876 for the Avoidant Group – we would conclude that each of the levels of the Independent Variable (Attachment Style) are normally distributed. Therefore, the assumption of normality has been met for this sample. The a priori alpha level is based on sample size – where .05 and .01 are commonly used. Tabachnick and Fidell (2007) report that conventional but conservative (.01 and .001) alpha levels are commonly used to evaluate the assumption of normality. NOTE: Since the Shapiro-Wilks test is rather conservative, most statisticians will agree that the Shapiro-Wilks Test should not be the sole determination of normality. We typically supplement our assessment of normality with an examination of skewness (in excess of +3.29 is a concern), kurtosis (in excess of +3.29 is a concern), an examination of the

THE ONE-WAY ANOVA

histogram graph (non-normal shape is a concern), an examination of box plots (extreme outliers is a concern), and an examination of the Normal Q-Q Plots (a non-linear relationship is a concern). These procedures are typically done during data screening. In examining skewness and kurtosis, we divide the skewness (kurtosis) statistic by its standard error. We want to know if this standard score value significantly departs from normality. Concern arises when the skewness (kurtosis) statistic divided by its standard error is greater than z +3.29 ( p < .001, two-tailed test) (Tabachnick & Fidell, 2007). We have several options for handling non-normal data, such as deletion and data transformation (based on the type and degree of violation as well as the randomness of the missing data points). Any adjustment to the data should be justified (i.e., referenced) based on solid resources (e.g., prior research or statistical references). As a first step, data should be thoroughly screened to ensure that any issues are not a factor of missing data or data entry errors. Such errors should be resolved prior to any data analyses using acceptable procedures (see for example Howell, 2007 or Tabachnick & Fidell, 2007).

TESTING THE ASSUMPTION OF HOMOGENEITY-OF-VARIANCE

Another one of the first steps in the One-way ANOVA test is to test the assumption of homogeneity of variance, where the null hypothesis assumes no difference between the K group’s variances. One method is the Bartlett’s test for homogeneity of variance (this test is very sensitive to non-normality). The Levene’s F Test for Equality of Variances, which is the most commonly used statistic (and is provided in SPSS), is used to test the assumption of homogeneity of variance.

Levene’s test uses the level of significance set a priori for the ANOVA (e.g., α = .05) to test

the assumption of homogeneity of variance.

Test of Homogeneity of Variances SCORE

1.457 2 42.

Levene Statistic df1 df2 Sig.

For Example: For the SCORE variable (shown above), the F value for Levene’s test is 1.457 with a Sig. ( p ) value of .244. Because the Sig. value is greater than our alpha of .05 ( p

.05), we retain the null hypothesis (no difference) for the assumption of homogeneity of variance and conclude that there is not a significant difference between the three group’s variances. That is, the assumption of homogeneity of variance is met.

Test of Homogeneity of Variances VISUAL

17.570 1 498.

Levene Statistic df1 df2 Sig.

THE ONE-WAY ANOVA

THE WELCH AND BROWN-FORSYTHE STATISTIC

If the equal variance assumption has been violated (e.g., if the significance for the Levene’s test is less than .05), we can use an adjusted F statistic. Two such types of adjustments are provided by the Welch statistic and the Brown-Forsythe statistic. The Welch test is more powerful and more conservative than the Brown-Forsythe test. If the F ratio is found to be significant with either the Welch statistic or the Brown- Forsythe statistic, an appropriate post hoc test would be required. The Games-Howell post hoc test, for example, is appropriate when the equal variances assumption has been violated. This test is not appropriate if equal variance were assumed.

Robust Tests of Equality of Means Number of words recalled

9.037 4 21.814. 6.095 4 18.706.

Welch Brown-Forsythe

Statistica^ df1 df2 Sig.

a. Asymptotically F distributed.

The output from the above table is only valid if the equal variance assumption has been violated. From this example, using the Welch statistic, we find that F (4, 21.814) = 9.037, p < .001. If for example, our a priori alpha level were set at .05, we would conclude that the

adjusted F ratio is significant. Since the p value is smaller than α we would reject the null

hypothesis and we would have permission to proceed and compare the group means. The difference between the adjusted F ratio (devised by Welch and Brown and Forsythe) and the ordinary F ratio is quite similar to that of the adjusted t and ordinary t found in the independent-samples t test. In both cases it is only the denominator (i.e., error term) of the formula that changes.

SUMMARY TABLE FOR THE ONE-WAY ANOVA

Summary ANOVA

Source Sum of Squares Degrees of Freedom

Variance Estimate (Mean Square) F^ Ratio

Between SSB K – 1 MSB = K āˆ’ 1

SSB

W

B MS

MS

Within SSW N – K MSW = N K

SSW

Total SST = SSB + SSW N – 1

THE ONE-WAY ANOVA

THE ONE-WAY ANOVA F RATIO

The analysis of variance partitions the total variability of the data ( SST ) into two sources: the variability that exists within each group, called the within-groups sum of squares ( SSW ), and the variability that exists between the groups, called the between-groups sum of squares ( SSB ). Each sum of squares is used to form an independent estimate of the H 0 population variance. The estimate based on the within-groups variability is called the within-groups variance estimate (also known as Mean Square Within, MSW ), and the estimate based on the between-group variability is called the between-groups variance estimate (also known as Mean Square Between, MSB ). Finally, an F ratio ( Fobt ) is calculated where

W

B obt MS

MS

F =

This first component ( MSW ) reflects the differences observed among subjects exposed to the same treatment. It is assumed that within-groups variation of a similar magnitude exists in each of the groups. This variation within any one group is a function of the specific subjects selected at random for the group or allocated at random to the group. Therefore, we can attribute variation within a group to random sampling fluctuation (i.e., sampling error – which is why MSW is also referred to as ERROR). The second component ( MSB ) has to do with the differences among group means. Even if there were absolutely no treatment effects, it would be unlikely that the sample means for the groups would be identical. A more reasonable expectation is that the group means will differ, even without treatment, simply as a function of the individual difference of the subjects. Thus, we would expect the group means to vary somewhat due to the random selection (assignment) process in the formation of the groups. If, in addition, different treatments that do have an effect on the dependent variable are applied to the different groups, we can expect even larger differences among the group means. Thus, the between-groups variation reflects variation due to the treatment plus variation attributable to the random process by which subjects are selected and assigned to groups. That is, the treatment effect of the independent variable plus error.

Which means Error

Treatment Effect+ Error Fobt =

When the null hypothesis is true (no difference between the group means – or – no treatment effect), we would expect F to be equal to 1. Note that the observed mean squares merely estimate the parameters and that these estimates may be larger or smaller than the corresponding parameters. Therefore, it is possible to have an observed F ratio less than 1.00, even though conceptually the ratio cannot be less than 1.00. F increases with the effect of the independent variable. Thus, the larger the F ratio is, the more reasonable it is that the independent variable has had a real effect. If the F ratio is less than 1.00, we don’t even need to compare it with the critical value of F ( Fcrit ). It is obvious that the treatment has not had a significant effect, and we can immediately conclude by retaining H 0.

THE ONE-WAY ANOVA

EFFECT SIZE

Effect size, broadly, is any of several measures of association or of the strength of a relation, such as Pearson’s r or eta (). Effect size is thought of as a measure of practical significance. It is defined as the degree to which a phenomenon exists. Keep in mind that there are several acceptable measures of effect size. The choice should be made based on solid references based on the specific analysis being conducted. So why bother with effect size at all? Any observed difference between two sample means can be found to be statistically significant when the sample sizes are sufficiently large. In such a case, a small difference with little practical importance can be statistically significant. On the other hand, a large difference with apparent practical importance can be nonsignificant when the sample sizes are small. Effect sizes provide another measure of the magnitude of the difference expressed in standard deviation units in the original measurement. Thus, with the test of statistical significance (e.g., the F statistic) and the interpretation of the effect size ( ES ), the researcher can address issues of both statistical significance and practical importance. When we find significant pairwise differences – we will need to calculate an effect size for each of the significant pairs, which will need to be calculated by hand. An examination of the group means will tell us which group performed significantly higher than the other did.

For example, using the following formula: W

i j MS

X X

ES

Note that X (^) i āˆ’ Xj (which can also be written as X (^) i āˆ’ Xk ) is the mean difference of the two groups (pairs) under consideration. This value can be calculated by hand or found in the Mean Difference (I-J) column on the Multiple Comparison table in SPSS. MSW is the Within Group’s Mean Square value (a.k.a. Mean Square Within or ERROR), which is found on the ANOVA Summary Table. Suppose that the mean for the Red Group = 16.60 and the mean for the Green Group = 11.10, and the Mean Square Within ( MSW ) found in the ANOVA table = 16.136, we would find that the ES = 1.37. That is, the mean difference of 5.50 is 1.37 standard deviation units away from the hypothesized mean difference of 0. Recall that H 0 : μ 1 - μ 2 = 0.

For Red / Green, we find ES = 1. 3691933

  1. 016964

= 1.

THE ONE-WAY ANOVA

TESTING THE NULL HYPOTHESIS FOR THE ONE-WAY ANOVA

In testing the null hypothesis for the One-way ANOVA – we follow these steps:

  1. STATE THE HYPOTHESES
    • State the Null Hypothesis and Alternative Hypothesis
  2. SET THE CRITERION FOR REJECTING H 0
    • Set the alpha level, which in turn identifies the critical values
  3. TEST THE ASSUMPTIONS FOR THE ONE-WAY ANOVA
    • Assumption of Independence (e.g., Research Design)
    • Assumption of Normality (e.g., Shaprio-Wilks)
    • Assumption of Homogeneity of Variance (e.g., Levene’s Test of Homogeneity)
  4. COMPUTE THE TEST STATISTIC
    • Calculate the F ratio (or adjusted F ratio using for example the Welch statistic)
  5. DECIDE WHETHER TO RETAIN OR REJECT H 0
    • Using the obtained probability value (compared to the alpha level)
      • If p > α  Retain the null hypothesis
      • If p < α  Reject the null hypothesis
    • Using the obtained statistic value (compared to the critical value)
      • If Fobt < Fcrit  Retain the null hypothesis
      • If Fobt > Fcrit  Reject the null hypothesis
  6. CALCULATE MEASURE OF ASSOCIATION (ω 2 , OMEGA SQUARED)
    • If the null hypothesis is rejected, calculate omega squared to determine strength of the association between the independent variable and the dependent variable.
  7. DECIDE WHETHER TO RETAIN OR REJECT H 0 FOR EACH OF THE PAIRWISE COMPARISONS (I.E., CONDUCT POST HOC PROCEDURES)
    • If the null hypothesis is rejected, use the appropriate post hoc procedure to determine whether unique pairwise comparisons are significant.
    • Choice of post hoc procedures is based on whether the assumption of homogeneity of variance was met (e.g., Tukey HSD) or not (e.g, Games-Howell).
  8. CALCULATE EFFECT SIZE
    • Calculate an effect size for each significant pairwise comparison
  9. INTERPRET THE RESULTS
  10. WRITE A RESULTS SECTION BASED ON THE FINDINGS

THE ONE-WAY ANOVA

Post hoc comparisons using Tukey procedures were used to determine which pairs of the

three group means differed. These results are given in Table 3 and indicate that students who had

received the lecture and hands-on teaching method ( M = 92.67) scored significantly higher on

the standardized test than did students who had received the lecture only teaching method ( M =

82.80). The effect size for this significant pairwise difference was 1.19.

Table 3

Tukey Post Hoc Results and Effect Size of Standardized Test Scores by Teaching Method

Mean Differences ( X i āˆ’ Xk ) (Effect Size is indicated in parentheses)

Group Mean 1. 2. 3.

  1. Lecture Only 82.80 0.
  2. Hands-On Only 88.53 5.73 0.
  3. Lecture and Hands-On 92.67 9.87** (1.19)

** (^) p <.

REFERENCES

Green, S. B., & Salkind, N. J. (2003). Using SPSS for Windows and Macintosh: Analyzing and Understanding Data (3rd^ ed.). Upper Saddle River, NJ: Prentice Hall.

Hinkle, D. E., Wiersma, W., & Jurs, S. G. (2003). Applied Statistics for the Behavioral Sciences (5th^ ed.). New York: Houghton Mifflin Company.

Howell, D. C. (2002). Statistical Methods for Psychology (5th^ ed.). Pacific Grove, CA: Duxbury.

Morgan, G. A., Leech, N. L., Gloeckner, G. W., & Barrett, K. C. (2004). SPSS for Introductory Statistics: Use and Interpretation (2nd^ ed.). Mahwah, NJ: Lawrence Erlbaum Associates.

Pagano, R. R. (2004). Understanding Statistics in the Behavioral Sciences (7th^ ed.). Belmont, CA: Thomson/Wadsworth.

Tabachnick, B. G., & Fidell, L. S. (2007). Using Multivariate Statistics (5th^ ed.). Needham Heights, MA: Allyn & Bacon.