Anova: Analysis of Variance

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

ANOVA

ANALYSIS OF VARIANCE
What is this test for?
• The one-way analysis of variance (ANOVA) is used to
determine whether there are any statistically
significant differences between the means of three
or more independent (unrelated) groups.
What does this test do?
• The one-way ANOVA compares the means between the groups you
are interested in and determines whether any of those means are
statistically significantly different from each other. Specifically, it
tests the null hypothesis:

• where µ = group mean and k = number of groups. If, however, the


one-way ANOVA returns a statistically significant result, we accept the
alternative hypothesis (Ha), which is that there are at least two group
means that are statistically significantly different from each other.
Example:
• A manager wants to raise the productivity at his company by
increasing the speed at which his employees can use a particular
spreadsheet program. As he does not have the skills in-house, he
employs an external agency which provides training in this
spreadsheet program. They offer 3 courses: a beginner, intermediate
and advanced course. He is unsure which course is needed for the type
of work they do at his company, so he sends 10 employees on the
beginner course, 10 on the intermediate and 10 on the advanced
course. When they all return from the training, he gives them a
problem to solve using the spreadsheet program, and times how long
it takes them to complete the problem. He then compares the three
courses (beginner, intermediate, advanced) to see if there are any
differences in the average time it took to complete the problem.
1. Click Analyze > Compare Means > One-Way ANOVA... on the
top menu, as shown below.
2. You will be presented with the One-Way
ANOVA dialogue box:
Transfer the dependent variable, Time, into the Dependent List: box and the

3. independent variable, Course Factor: box using the


, into the

appropriate buttons (or drag-and-drop the variables into the boxes),


as shown below:
4. Click on the Post hoc button. Tick the Tukey
checkbox as shown below:

Click Continue.
5. Click on the Options button. Tick the Descriptive
checkbox in the Statistic area, as shown below:

• Click on the Continue button.


• Click on the OK button.
The Output
Descriptives Table Course – independent variable
Time – dependent variable

The descriptives table provides some very useful descriptive statistics,


including the mean, standard deviation and 95% confidence intervals for the
dependent variable (Time) for each separate group (Beginners, Intermediate
and Advanced), as well as when all groups are combined (Total). These figures
are useful when you need to describe your data.
ANOVA Table

This is the table that shows the output of the ANOVA analysis and whether there is a
statistically significant difference between our group means. We can see that the
significance value is 0.021 (i.e., p = .021), which is below 0.05. and, therefore, there is a
statistically significant difference in the mean length of time to complete the spreadsheet
problem between the different courses taken. This is great to know, but we do not know
which of the specific groups differed. Luckily, we can find this out in the Multiple
Comparisons table which contains the results of the Tukey post hoc test.
• Sum of squares  the sum of the square of variation
• df  degrees of freedom
• Mean square  arithmetic mean of squares of a set of numbers or of
a random variable
• F  F statistic value
• Sig  p-value
Multiple Comparisons Table

From the results so far, we know that there are statistically significant differences between the groups as
a whole. The table below, Multiple Comparisons, shows which groups differed from each other. The
Tukey post hoc test is generally the preferred test for conducting post hoc tests on a one-way ANOVA,
but there are many others. We can see from the table below that there is a statistically significant
difference in time to complete the problem between the group that took the beginner course and the
intermediate course (p = 0.046), as well as between the beginner course and advanced course (p =
0.034). However, there were no differences between the groups that took the intermediate and
advanced course (p = 0.989).
Post hoc

• adjective
• occurring or done after the event, especially with reference to the
fallacious assumption that the occurrence in question has a logical
relationship with the event it follows.
• "a post hoc justification for the changes"
• adverb
• after the event.
• There was a statistically significant difference between
groups as determined by one-way ANOVA (F(2,27) =
4.467, p = .021). A Tukey post hoc test revealed that the
time to complete the problem was statistically
Reporting significantly lower after taking the intermediate (23.6 ±
3.3 min, p = .046) and advanced (23.4 ± 3.2 min, p = .034)
the output course compared to the beginner's course (27.2 ± 3.0
min). There was no statistically significant difference
of the between the intermediate and advanced groups (p =
.989).
one-way
ANOVA
Mean plot
• A mean plot is a plot which shows the mean, and sometimes also the
standard deviation, of data. It's used to analyze the way in which
the mean varies across different groups of data or between samples.

• to check whether or not the income level had remained generally


constant.
ACTIVITY PROPER
INSTRUCTIONS:
1. Encode the data
2. Select Analyze  Compare Means  One-way ANOVA
3. Determine the independent and dependent variable. Put these in the appropriate boxes (of
variables).
4. Select Contrasts and Polynomial (linear)
5. Select Options  Descriptives, homogeneity of variance test, mean plots and exclude cases
analysis by analysis
6. Select Post Hoc  Tukey
7. Select OK
8. Make a brief interpretation of the ff:
1. ANOVA Table
2. Multiple Comparisons Table
3. The 3 Means Plot
Independent Variable – Type (1,2,3)
DATA SET Dependent Variable – Tar, Nicotine, CO

CO – Carbon Monoxide
DATA SET
DATA SET

You might also like