Professional Documents
Culture Documents
o two types (1) amount attributed to chance (2) amount attributed to specified causes. Through ANOVA we can investigate any number of factors which are hypothesized or said to influence the dependent variable. We make 2 estimates of population variance one based on variance between samples and one based on variance within samples.
http://sites.google.com/site/hvimcost
(Estimate of
One way ANOVA: 1. Obtain mean of each sample i.e. X1 bar.Xk bar 2. Find X double bar 3. SS between = n1(X1 bar X dbl bar)2 + n2(X2 bar X dbl bar)2 +.+ nk(Xk bar X dbl bar)2 4. Mean Square (MS) between = SS between / (k-1) 5. SS within = (X1i X1 bar)2 + (X2i X2 bar)2 + ..... + (Xki Xk bar)2 6. Mean Square (MS) within = SS within / (n k) where n = total number of items in all samples k = number of samples
http://sites.google.com/site/hvimcost 3
7. To check we can find the SS for the total variance by: SS (for total variance) = (Xij X dbl bar)2 SS (for total variance) = SS between + SS within The d.f. is (n-1) = (k -1) + (n k)
http://sites.google.com/site/hvimcost
among several sample means is significant or is just a matter of sampling fluctuations. b. If the calculated value of F < table value of F, then the difference is insignificant and the null hypothesis of no difference between the means stands. c. If calculated F value > table F value then the difference is significant and the samples did not come from the same universe. d. The higher the calculated F value above the table, the more definite one can be about the conclusion.
http://sites.google.com/site/hvimcost
Example 1: Set up an analysis of variance table for the following per acre production data for 3 varieties of wheat, each grown on 4 plots and state if the variety differences are significant:
http://sites.google.com/site/hvimcost
A
1 2 3 4
6 7 3 8
http://sites.google.com/site/hvimcost
5 5 3 7
5 4 3 4
7
2 way ANOVA :
Used when data are classified on the basis of 2 factors
For example:
Agricultural output may depend on seeds and fertilizers
Sales data may be classified on the basis of salesperson
Steps Involved in 2 way Anova: 1. Total all values in all samples i.e. find T 2. Calculate the correction factor T2/n 3. Calculate Total SS = X2ij (T2/n) 4. SS between columns 5. SS between rows 6. SS for residual or error variance = Total SS (SS between columns + SS between rows)
http://sites.google.com/site/hvimcost
7. Degrees of Freedom:
http://sites.google.com/site/hvimcost
10
Source of Variation
F-ratio
(T2j/nj)T2/n
(T2i/ni)T2/n
Total SS-(SS col+SS row)
r-1
(c-1)(r-1)
Total
X2ij-T2/n
(c.r-1)
http://sites.google.com/site/hvimcost
11
Y
Z
3
8
3
7
3
4
http://sites.google.com/site/hvimcost
12
F-ratio
8
18
3-1=2
8/2=4
4/1=4
4-1=3
18/3=6
6/1=6
Residual or error
6 32
Total
http://sites.google.com/site/hvimcost
F (2,6) = 5.14
F (3,6) = 4.76
http://sites.google.com/site/hvimcost
14
values.
http://sites.google.com/site/hvimcost
15
Group of People A B
X 14 15 12 11 10 11
Drug Y 10 9 7 8 11 11
Z 11 11 10 11 8 7
16
http://sites.google.com/site/hvimcost
Example 3 continued: Test the 3 drugs to judge the effectiveness in reducing blood pressure by answering the following: 1. Do the drugs act differently? 2. Are the different groups of people affected differently? 3. Is the interaction term significant? Answer the above questions taking a significant level of 5%.
http://sites.google.com/site/hvimcost
17