Beruflich Dokumente
Kultur Dokumente
Sex
Male
Female
n
133
162
25.34
24.94
s
5.05
5.44
STAT3010: Lecture 4
With assumptions:
1.
2.
3.
4.
STAT3010: Lecture 4
Treatment 1
Treatment 2
29.0
29.2
29.1
28.9
28.8
Treatment 3
25.1
25.0
25.0
24.9
25.0
20.1
20.0
19.9
19.8
20.2
x1
s12
s1
x2
s22
s2
x3
s32
s2
STAT3010: Lecture 4
options LS = 80 PS = 60
nodate;
data relief;
input x;
cards;
29
29.2
29.1
28.9
28.8
25.1
25
25
24.9
25
20.1
20
19.9
19.8
20.2
run;
proc print;
run;
proc means;
var x;
run;
The SAS System
The MEANS Procedure
Analysis Variable : x
N
Mean
Std Dev
Minimum
Maximum
15
24.6666667
3.8130728
19.8000000
29.2000000
STAT3010: Lecture 4
variability. If the means in each group are very similar, then the
between variability is small.
In ANOVA, we compare the variation within samples (which is
small) to the variation between samples (which is large) to
assess the equality of the population means.
If the observations within a sample are similar in value (ie., small
within sample variation) and the means are different across
samples (large between sample variation), then a real
difference is said to exist in the population means. (Reject H o )
So what have we learned?
H o : 1 2 3 ... k
vs
5
STAT3010: Lecture 4
variance ( ).
First estimate:
Second estimate:
STAT3010: Lecture 4
Treatment 2
25.1
25.0
25.0
24.9
25.0
Treatment 3
20.1
20.0
19.9
19.8
20.2
x1 29
s12 0.025
s1 0.158
x 2 25
s22 0.005
s2 0.071
x 3 20
s32 0.025
s2 0.158
STAT3010: Lecture 4
Decision:
STAT3010: Lecture 4
Source of
Variation
Sums of Squares
(SS)
Between
SS b n j ( X . j X .. ) 2
k-1
s b2 MS b
SS b
k 1
Within
SS w ( X ij X . j ) 2
N-k
s w2 MS w
SS w
N k
Total
SS total ( X ij X .. ) 2
N-1
Mean Squares
(MS)
MS b
MS w