Professional Documents
Culture Documents
L4 Anova
L4 Anova
L4 Anova
BES
1
BES
2
Outline
• A problem context
• One-way ANOVA technique
• Case study
BES
3
A problem context
Which of two incentive packages will lead to higher use of a bank’s
credit cards? The bank designs a randomized comparative
experiment to compare two populations. Credit card customers are
assigned at random to receive one or the other incentive offer. After
six months, the bank compares the amounts charged.
For this problem:
• What are the populations to be compared?
• What inference technique should be considered?
change in 2 population (amt)
Mean (v)
Variance (v) / SD
Intro One-way ANOVA technique Case study
Proportion
1
8/16/23
BES
4
A problem context
Which of three incentive packages will lead to higher use of a bank’s
credit cards? The bank designs a randomized comparative
experiment to compare three populations. Credit card customers are
assigned at random to receive one of the three incentive offers. After
six months, the bank compares the amounts charged.
For this problem:
• What are the populations to be compared?
• Should we use the same inference technique as for the previous
problem?
1, Ha M1 =/= M2
2, M1 =/= M3
3, M2 =/= M3
Intro One-way ANOVA technique Case study
BES
5
Objective of ANOVA
BES
6
2
8/16/23
BES
7
BES
8
BES
9
ANOVA Hypotheses:
• Ho: µ1= µ2=…= µk
• Ha: At least 2 population means differ
3
8/16/23
BES
10
µ1 µ2 µ3
Ho: M1 = M2 = M3
Ha: at least 2 populations mean are differs
Estimate Estimate Estimate
Variation
𝑥' 𝑥( 𝑥)
Xbar1 = Xbar2 = Xbar3 --> Variance = 0
Intro One-way ANOVA technique Case study
10
BES
11
Measuring variation
11
BES
12
Variation
𝑥' 𝑥( 𝑥)
12
4
8/16/23
BES
13
𝑆𝑆𝐺
𝑀𝑆𝐺 =
𝑘−1
• MSG is a kind of variance, which tells the variation among
sample means.
13
BES
14
14
BES
15
Sources of variation
Total
SSG (and MSG) variation SSE (and MSE)
Between
Error
Groups
Intro One-way ANOVA technique Case study
15
5
8/16/23
BES
16
Sources of variation
16
BES
17
One-way ANOVA
assumptions
17
BES
18
(𝑥$ − 𝑥!)
𝑡=
1 1
𝑠* (𝑛 + 𝑛 )
$ !
𝑛$ − 1 𝑠$! + 𝑛! − 1 𝑠!!
where 𝑆*! =
𝑛$ + 𝑛! − 2
18
6
8/16/23
BES
19
++, .+/
𝑀𝑆𝐸 = %-' ; 𝐹 = .+,
• F distribution
• F ranges from 0 to ¥
• A family of distributions
• Depends on 2 degrees of freedom
o 𝑑𝑓$ = numerator degrees of freedom
o 𝑑𝑓! = denominator degrees of freedom
Intro One-way ANOVA technique Case study
19
BES
20
20
BES
21
F statistic
21
7
8/16/23
BES
22
Exploring how F statistic and its p-value depend on both the variation
within the groups and the differences among the group means:
http://digitalfirst.bfwpub.com/stats_applet/stats_applet_1_anova.html
22
BES
23
23
BES
24
Limitation of ANOVA
24
8
8/16/23
BES
25
Case study
A natural product can help bones. Kudzu is a plant that
was imported to the US from Japan and now covers over
seven million acres in the South. The plant contains
chemicals called isoflavones that have been shown to have
beneficial effects on bones. One study used three groups of
rats to compare a control group with rats that were fed either
a low dose or a high dose of isoflavones from kudzu. One of
the outcomes examined was the bone mineral density in
the femur (in grams per square centimeter). The data is
provided in the file named kudzu.csv.
25
BES
26
Case study
bone Mineral bone Mineral bone Mineral
treatment treatment treatment
Density Density Density
26
BES
27
Case study
Questions
27
9
8/16/23
BES
28
R output
1-way frequency table of treatment variable:
Control LowDose HighDose
sample size = n = 15x3 = 45
15 15 15
28
BES R output
29
29
BES
30
R output
n1 = n2 = n3 = 15
Q-Q Plot of residuals
to examine normality
assumption
30
10
8/16/23
BES
31
31
BES
32
32
BES
33
33
11
8/16/23
BES
34
Solution
Hypothesis
• H0: All population means are equal (µ1 = µ1 = ... = µk)
• Ha: At least two population means are different.
Test statistic: F =
Assumptions:
1. Independent, simple random samples
2. All populations are normally distributed
3. All population variances are equal
Significance Level: α
Decision Rule: Reject H0 if 𝑝 − 𝑣𝑎𝑙𝑢𝑒 ≤ 𝛼
Conclusion:
Intro One-way ANOVA technique Case study
34
BES
35
Conclusion
• A problem context
• One-way ANOVA technique
• Case study
35
12