Professional Documents
Culture Documents
Wah Mong Weh Jabatan Matematik IPG KSAH Understand the basic principles of ANOVA -why it is done? - what it tells us? To conduct one-way independent ANOVA by hand
AOVA
One-way analysis of variance (ANOVA) is a hypothesis testing technique that is used to compare means from three or more populations.
ANOVA
ANOVA adalah kaedah ujian hipotesis bagi mengenalpasti perbezaan min yang wujud dalam dua ataupun lebih sample ujian. Tujuan utama ANOVA adalah menentukan sama ada perbezaan sample disebabkan kesilapan proses sample ataupun kesan rawatan yang sistematik .
5
JENIS-JENIS ANOVA
a. One way ANOVA - yang melibatkan satu pembolehubah bebas. b. Two way ANOVA - melibatkan dua pembolehubah bebas.
Theory of ANOVA
We calculate how much variability there is between scores. -Total sum of squares (SST ) We then calculate how much of this variability can be explained by the model we fit to the data -how much variability is due to the experimental manipulation, Model Sum of Squares (SSM)
9 10
Theory of ANOVA
How much cannot be explained How much is due to individual differences in performance, Residual Sum of Squares (SSR ) We compare the amount of variability explained by the model (experiment), to the error in the model ( individual differences)
- The ratio is called the F-ratio
F=
A excessively large F test statistic is evidence against equal population means. Thus, the null will be rejected.
11
12
The variance is calculated in two different ways and the ratio of the two values is formed'
MSB, Mean Square Between, the variance between samples, measures the differences related to the treatment given to each sample. 2. MSW Mean Square Within, the variance within samples, measures the differences related to entries within the same sample. The variance within samples is due to sampling error.
13 14
MS B F= MSW
Critical Value of F
Right-tailed test Degree of freedom with k samples of the same size n is given by:
F [3,16]
numerator df
= k -1
N-k = 20-4= 16
18
Taburan persampelan yan! di!una an ialah taburan (' & ala statisti yan! di!una an ialah nisbah (
19
20
CALCULATING ANOVA
BY HAND
where x = mean of all sample scores combined, also known as grand mean
23
24
k = number of population means being compared ni = number of values in the ith sample
25
26
k = number of population means being compared ni = number of values in the ith sample xi = mean of the ith sample
k = number of population means being compared ni = number of values in the ith sample xi = mean of the ith sample si = variance of values in the ith sample
27 28 2
SS (Total ) = x
( x )
N
2
SS(total) = (x - x)
29
30
31
32
= (ni - 1)si
33
34
MS (Treatment / Model / Group) MSTR / MSM / MSG is the mean square for
treatment or model or group and is obtained as follows:
MS (treatment) =
SS (treatment) k-1
35
36
MS (Error or Residual)
MS (error) is mean square for error, obtained as follows: MS (error) =
SS (error) N-k
MS (error) = MS (total) =
37
38
df = k -1 Denominator df = N - k
Numerator
Medicati on 10 12 9 15 13
Sample means sample sd sample var
Exercis e 6 8 3 0 2
Diet 5 9 12 8 4
41