Professional Documents
Culture Documents
CH 5 (ANOVA-1)
CH 5 (ANOVA-1)
5-1
ANOVA
When we are trying to test three (or above) independent
population in order to see whether the average values are
the same or not, we should use analysis of variance
techniques, ANOVA.
Analysis of variance has an important feature. That is the
independent variables are qualitative data, the dependent
variables are quantitative data.
For example, different promotion tool (independent
variable) will have different impact on sales volume
(dependent variable).
5-2
ANOVA
By knowing the number of dependent variables, we
can categorize ANOVA by UNIANOVA and
MANOVA. By knowing the number of
independent variables, we can categorize ANOVA
into single and multiple factor ANOVA. Please
read the following table.
# dependent variables #independent name
1 1 One factor ANOVA
( UNIANOVA ) 2(+) Multiple ANOVA
2(+) 1 One factor ANOVA
( MANOVA ) 2(+) Multiple ANOVA
5-3
ANOVA
Example:
The school is trying to
understand whether different
teaching style will cause different
academic performance.
Therefore, the school categorizes
students into three groups (each
group has five students). Then,
different teaching styles
(democratic, restrict, free) are
applied to the three groups. After
a certain period of time, the
school has a test. From the table
to the right, do you see any
difference? 5-4
ANOVA
Total variance can be categorized into two parts,
intra group variance and internal group variance.
From the previous example, the variance comes
from intra group (teaching style) and internal group
(students’ background). We would like the intra
group variance as large as possible and the internal
group variance as small as possible.
5-5
ANOVA Testing Result
• When the value Sig. is smaller (<0.05), we tend to
reject the null hypothesis. ( As before, the Null
hypothesis is there is no difference among groups)
5-6
Example 1
Please use the “school grade” file to understand whether
different department’s students have different math score
操作:
1. 點選 Analyze/Compare Means/One-Way ANOVA
2. Hypothesis :
H0 : the math scores are the same for students from
different department(μ1= μ2= μ3)
H1 : the math scores are different for students from
different department
5-7
Example-Result
ANOVA
數學能力測驗
Sum of
Squares df Mean Square F Sig.
Between Groups 15703.89 4 3925.973 8.386 .000
Within Groups 105329.9 225 468.133
Total 121033.8 229
5-8
Since we know that different department has
different math score, we would like to know which
department(s) has math scores different than
others?
Define:
Orthogonal Comparison: every event is independent
and there is no overlapping among information
Non-orthogonal Comparisons: every event is not
independent and there is overlapping among
information
5-9
ANOVA
5-10
Example 2
5-11
Example 2―Result
Multiple Comparisons
Dependent Variable: math capabilities test
Scheffe
5-12
Conclusion
The math scores are no much difference among
departments of law, foreign language and business
administration.
The math scores are no much difference among
departments of electronics, information system
and business administration.
The scores for the students from the department of
electronics and information system are higher
than the scores from other departments.
5-13
Practice Question
5-14
貳、雙因子變異數分析
(Double Factors Analysis of Variance)
5-15
Area/Gender Female (j=1) Male (j=2) Mean
5-16
雙因子變異數分析
(Double Factors Analysis of Variance)
5-17
Double Factors Analysis of Variance
5-18
雙因子變異數分析
(Double Factors Analysis of Variance)
Conclusion:
The average deposit amount has no much
difference between male and female customers.
The average deposit amount has no significant
difference among living areas.
“Gender” and “area” have cross sectional effect to
average deposit amount.
5-19
Double Factors Analysis of Variance
5-20
Double Factors Analysis of Variance
Area(A)/ Female (B1) Male (B2) Major Effect
Gender(B)
East(1) A1 A1B1 A1B2 A1
Major Effect B1 B2
5-21
Double Factors Analysis of Variance
Control “Area”
Focusing on A1 ( east ) , we would like to
understand whether “gender” will cause different
depositing behavior. 。 (A1B1 and A1B2)
Procedure :
Data/Select Cases/Area=1(using Independent Sample t-
test)
5-22
Result (By controlling “Area” A=1)
5-26
Result (By controlling “Area” A=2)
5-28
Result (By controlling “Area” A=3)
sig.=0.001<0.05 reject H0
Conclusion : There is significant difference of depositing
for males living in the central area and for females
living in the central area.
5-29
Double Factors Analysis of Variance
Control “gender”
By controlling B2 ( male customer ), we can study people
from different area will have different depositing
behavior ( A1B2 、 A2B2 and A3B2 ) 。 We can use one-
way ANOVA
sig.=0.001<0.05 reject H0
Conclusion : Males from different areas show different
depositing behavior.
5-30
5-31
5-32
Double Factors Analysis of Variance
The depositing behavior is no much difference between
male and female.
The depositing behavior is no much difference among
people living in different area.
There is a cross sectional effect for area and gender 。 For
people living in the central area, females depositing
amount is significantly higher than males; for male
customers, the deposit amount for people live in the “east
and “west” sides is significantly higher than male live in
the central area.
5-33
Practice Questions
5-34
Practice Questions
5-35
Question 1
5-36
Question 2
5-37
Question 3
5-38