Uploaded by Ch Abdul Rehman Badar

Analysis of Variance

advertisement
Analysis of Variance
ANOVA is a technique to differentiate between sample means to draw inferences about
the presence or absence of variations between populations means.
•
•
•
Samples from different populations (treatment groups)
Any difference among the population means?
Null hypothesis: no difference among the means
Examples
•
•
•
•
Effect of different lots of vaccine on antibody titer
Effect of different measurement techniques on serum cholesterol determination
from the same pool of serum
Water samples drawn at various location in a city
Effect of antihypertensive drugs and placebo on mean systolic blood pressure
The key statistic in ANOVA is the F-test of difference of group means, testing if the
means of the groups formed by values of the independent variable (or combinations of
values for multiple independent variables) are different enough not to have occurred by
chance
Assumptions of ANOVA
–
–
–
Observations normally distributed within each population
Population (treatment) variances are equal (Homogeneity of variance or
homoscedasticity)
Observations are independent
Step 1 Formulation of Hypothesis
๐ป0 : ๐œ‡1 = ๐œ‡2 = ๐œ‡3 = ๐œ‡4 = โ‹ฏ = ๐œ‡๐‘˜
๐ป1 : atleast two means are significantly different
Step-2
Choose a level of significance ๐›ผ = 0.01, 0.05
Step-3
Test statistic
๐น=
๐‘€๐‘†๐‘ก๐‘Ÿ
๐‘€๐‘†๐ธ
=
๐‘ ๐‘ก2
๐‘ ๐‘’2
Step-4
Computation
In this section we calculate the value of F statistic
Where MStr = Mean-square treatment (Variance of the Treatment)
MSE = Mean-square Error (Variance of the error term)
Sstotal = SSTr + SSE
First of all we calculate the correction factor ie is C.F =
(๐‘‡..)2
๐‘Ÿ๐‘˜
= T..= grand total
And r = no of observation in the treatment (sample) and k = no of treatments
Sstoal = ∑∑(๐‘ฅ๐‘–๐‘— − ๐‘ฅฬ… )
2
2
or ∑∑๐‘ฅ๐‘–๐‘—
− ๐ถ. ๐น
( we square the each value and then add
and minus the correction factor)
SStr =
2
∑ ๐‘ฅ.๐‘—
๐‘˜
− ๐ถ. ๐น and SSE = Sstotal – SStr
Finally after the calculation of these above sum of squares then make an ANOVA table
ANOVA Table
Source of
variation
Between
groups
Within
groups
Total
Df
Sum of squares
Mean square
k-1
Result of SStr
SStr/ k-1
n-k
Result of SSE
SSE/n-k
n-1
Add above two
total
No need
Step-5 Critical Region
๐น ≥ ๐น๐›ผ ,(๐‘ฃ1,๐‘ฃ2)
Where v1 = k-1 and v2 = n-k these are the df.
Step-6
Conclusion
In this section we decide hypothesis would be accepted or rejected.
F-Ratio
๐น=
๐‘†๐‘ก2
๐‘†๐‘’2
No need
Download