600 likes | 747 Views
Chapter 4. analysis of variance (ANOVA). Section 1 the basic idea and condition of application. Objective : deduce and compare several (or two ) population means . Method : analysis of Variance (ANOVA), ie F test for comparing several sample means .
E N D
Chapter 4 analysis of variance (ANOVA)
Section 1 the basic idea and condition of application
Objective: deduce and compare several (or two ) population means . Method: analysis of Variance (ANOVA), ie F test for comparing several sample means . Basic idea : according to the type of design, the sum of squares of deviation from means (SS) and degree of freedom (df) were divided into two or several sections . Except the chance error, the variation of every section can be explained by a certain or some factors.
Condition of Application : population : normal distribution and homogeneity of variance. Sample: independent and random Types of design : The ANOVA of completely random design; The ANOVA of randomized block design; The ANOVA of Latin square design; The ANOVA of cross-over design ;
partition of variation • sum of squares of deviations from mean,SS:
1. total variation : the degree of variation of all variable values , the formula as follows amend factor:
2. between- group variation: the sum of squares of deviations from mean between groups means and grand mean show the effects of treatment and random error, the formula :
3.Within-group Variation : differences among values within each group .The formula as follows:
Test statistic: If , were the estimated value of the random error , F value should be close to 1 . • If were not equal , F value will be larger than 1.
Section 2 The ANOVA of Completely Random Design
completely random design All of objects were randomly distributed to g groups (levels), and every group give the different treatment. The effects of treatment will be deduced by comparing the groups means after experimentation.
Example 4-1 A doctor want to explore the clinic effect of a new medicine for reducing blood fat, and selects 120 patients according to the same standard. All of patients were divide into 4 groups by the completely random design. How should he divide the groups?
The methods of dividing groups of completely random design 1. serial number: 120 patients was numbered from 1to 120 ( table 4-2 column 1); 2.choosing random figure: you can begin from the any row or any column in the appendix 15(for example beginning from the fifth row and seventh column), and read three digit in turn as a random number to write down the serial number, (table 4-2,column 2)
3.edit serial number: edit serial number according to the number from small to large (the same number according to early or late order) (table 4-2,column 3) 4.define in advance: the serial numbers from 1-30 were defined the A group; 31-60 were the B group; 61-90 were the C group; 91-120 were the D group, (table 4-2,column 4)
(2)the choice of statistic methods 1. If the data accord with normal distribution and homogeneity of variance, one-way ANOVA or independent t test was used (g=2) ; 2. If the data are not normal distribution or heterogeneity of variance, the datum transform or Wilcoxon rank sum test can be done.
Example 4-2 A doctor wanted to explore the clinic effect of a new medicine for reducing blood fat, and selected 120 patients according to the same standard. He divided all of patients into 4 groups by the completely random design. The low density lipoprotein were measured after 6 weeks by double blind experiment, table 4-3. Is there difference among the population means of low density lipoprotein of 4 groups ?
Table 4-3 the low density lipoproteinvalue of 4 treatment groups (mmol/L)
三、steps of analysis 1. State the hypotheses and test criteria H0: ie. all of 4 population means are equal. H1:not all of the population means are equal 2 . Calculate test statistic
list the ANOVA table Table 4-5 the table of ANOVA of completely random design
3. Calculate p value and deduce according to a=0.05 level, reject , and accept , not all of 4 population means are equal; ie. different dose medicines have different effects on ldl-c.
attention: if the result of ANOVA is to reject H0 , and accept H1, it does not mean that all of population means have difference each other. If analysing which groups have significant difference , we must compare among several population means (section 6). When g=2, the ANOVA of completely random design is equal to independent t test, ie.
Section 3 The ANOVA of randomized block design
randomized block design (1) grouping method of randomized block design: Firstly, match the objects as the blocks according to the non-treatment factor affecting the result of experiment (such as sex, weight, age, occupation , state of illness, course of disease et al) . Secondly, the objects of each block were randomly distributed to each treatment group or control group.
(2)characteristic ofrandomized block design • Random distribution was repeated many times for objects of the blocks. The number of objects is same in every treatment group. • SS of the block variation was separated from SS of the within-group variation of completely random design; SS of within-group (sum of error square) was decreased, and power of test was increased.
example 4-3 distribute 15 white mice of 5 blocks to three treatment groups , how to do it ? Grouping method: firstly, number the mice by the weight, and match the 3 near weigh mice as a block (table 4-6). Secondly, select 2 digit as one random number from any row or any column in the random number table, for example, from the 8th row and third column (table 4-6); and rank the random number from small to large in every block. The object of serial number in each block is 1,2,3 will accept A,B,C treatment respectively. (table 4-6)
partition of variation (1)Total variation:SStotal. (2) Treatment-group variation :SStreatment. (3) block-group variation:SSblock. (4) Error variation:SSerror.
Steps of analysis example 4-4 15 mice were divided into 5 blocks by the weight. there are 3 mice in every block .the result showed in table 4-9. is there difference among 3 treatment groups?
H0: H1:not of all population means are equal
according to 1=2、2=8, check F value table: At α=0.05 level,reject H0,accept H1,not all of population means are equal.
section 6 multiple comparison
can the above example be analyzed by t test ? Numbers of t test a=0.05, the probability of non-type I error for one comparison : 1-0.05=0.95; the probability of non-type I error for all of 6 times analysis : =0.77; the probability of type I error for 6 times analysis: 1-0.77=0.23 the probability of type I error will be increased
Condition of application: when the result of ANOVA reject H0, and accept H1, not all of population means are equal. If wanting to know the difference between any two group means, we should do the multiple comparison.
example 4-7 for the example 4-2 data,are there difference among the population means of 2.4g、4.8g、7.2g and placebo group?
4.8g VS placebo group: LSD-t =-4.29 7.2g VS placebo: LSD-t =-8.59。