SlideShare a Scribd company logo
ANALYSIS OF VARIANCE 
(ANOVA) 
DR RAVI ROHILLA 
COMMUNITY MEDICINE 
PT. B.D. SHARMA PGIMS, ROHTAK 
1
Contents 
 Parametric tests 
 Difference b/w parametric & non-parametric tests 
 Introduction of ANOVA 
 Defining the Hypothesis 
 Rationale for ANOVA 
 Basic ANOVA situation and assumptions 
 Methodology for Calculations 
 F- distribution 
 Example of 1 way ANOVA 
2
Contents 
 Violation of assumptions 
 Two way ANOVA 
 Null hypothesis and data layout 
 Methodology for calculations and example 
 Comparisons in ANOVA 
 ANOVA with repeated measures 
 Assumptions and example 
 MANOVA 
 Assumptions and example 
 Other tests of interest and References 
3
PARAMETRIC TESTS 
 Parameter- summary value that describes the 
population such as mean, variance, correlation 
coefficient, proportion etc. 
 Parametric test- population constants as described 
above are used such as mean, variances etc. and 
data tend to follow one assumed or established 
distribution such as normal, binomial, poisson etc. 
4
Parametric vs. non-parametric tests 
Choosing parametric 
test 
Choosing non-parametric 
test 
Correlation test Pearson Spearman 
Independent measures, 
2 groups 
Independent-measures 
t-test 
Mann-Whitney test 
Independent measures, 
>2 groups 
One-way, independent-measures 
ANOVA 
Kruskal-Wallis test 
Repeated measures, 2 
conditions 
Matched-pair t-test Wilcoxon test 
Repeated measures, >2 
conditions 
One-way, repeated 
measures ANOVA 
Friedman's test 
5
(ANalysis Of VAriance) 
• Idea: For two or more groups, test difference 
between means, for quantitative normally 
distributed variables. 
• Just an extension of the t-test (an ANOVA with only 
two groups is mathematically equivalent to a t-test). 
6
EXAMPLE 
Question 1. 
Marks of 8th class students of two schools are given. Find 
whether the scores are differing significantly with each other. 
A 45 35 45 46 48 41 42 39 49 
B 49 47 36 48 42 38 41 42 45 
ANSWER: The test applicable here is T-test since there 
are two groups involved here. 
7
EXAMPLE 
Question 2. 
Marks of 8th class students of four schools are given. Find 
whether the scores are differing significantly with each other. 
A 45 35 45 46 48 41 42 39 49 
B 49 47 36 48 42 38 41 42 45 
C 43 45 42 37 39 40 41 35 47 
D 34 48 47 42 36 41 45 42 48 
ANSWER: The test applicable here is ANOVA since there 
are more than two groups(4) involved here. 
8
Why Not Use t-test Repeatedly? 
• The t-test can only be used to test differences 
between two means. 
• Conducting multiple t-tests can lead to severe 
inflation of the Type I error rate (false positives) and 
is NOT RECOMMENDED 
• ANOVA is used to test for differences among several 
means without increasing the Type I error rate 
9
Defining the hypothesis 
10 
The Null & Alternate hypotheses for one-way 
ANOVA are: 
H0  1  2...  i 
Ha  not all of the i are equal
Rationale of the test 
• Null Hypothesis states that all groups come from the 
same population; have the same means! 
• But do all groups have the same population mean?? 
• We need to compare the sample means. 
We compare the variation among (between) the 
means of several groups with the variation within 
groups 
11
30 
25 
20 
19 
12 
10 
9 
7 
A small variability within 
the samples makes it easier 
to draw a conclusion about the 
population means. 
1 
Treatment 1 Treatment 2Treatment 3 
20 
16 
15 
14 
11 
10 
9 
10 x1  
x2 15 
x3  20 
TreatmentT 1reatmentT 2reatment 3 
x110 
x2 15 
20 x3  
The sample means are the same as before, 
but the larger within-sample variability 
makes it harder to draw a conclusion 
about the population means. 
12 
FIGURE 1 FIGURE 2
13 
FIGURE 1 FIGURE 2
Rationale of the test 
• Clearly, we can conclude that the groups appear 
most different or distinct in the 1st figure. Why? 
• Because there is relatively little overlap between the 
bell-shaped curves. In the high variability case, the 
group difference appears least striking because the 
bell-shaped distributions overlap so much. 
14
Rationale of the test 
• This leads us to a very important conclusion: when 
we are looking at the differences between scores for 
two or more groups, we have to judge the difference 
between their means relative to the spread or 
variability of their scores. 
15
Types of variability 
Two types of variability are employed when 
testing for the equality of the means: 
17 
Between Group variability 
& 
Within Group variability
 To distinguish between the groups, the variability 
between (or among) the groups must be greater 
than the variability within the groups. 
 If the within-groups variability is large compared with 
the between-groups variability, any difference 
between the groups is difficult to detect. 
 To determine whether or not the group means are 
significantly different, the variability between groups 
and the variability within groups are compared 
18
The basic ANOVA situation 
• Two variables: 1 Categorical, 1 Quantitative 
• Main Question: Whether there are any significant 
differences between the means of three or more 
independent (unrelated) groups? 
19
Assumptions 
• Normality: the values within each group are 
normally distributed. 
• Homogeneity of variances: the variance within each 
group should be equal for all groups. 
• Independence of error: The error(variation of each 
value around its own group mean) should be 
independent of each value. 
20
ANOVA Calculations 
Sum of squares represent variation present in the data. They are calculated 
by summing squared deviations. The simple ANOVA design have 3 sums 
of squares. 
  2 ( ) TOT i G SS X X 
The total sum of squares comes from the 
distance of all the scores from the grand 
mean. 
  2 ( ) W i A SS X X 
The within-group or within-cell sum of 
squares comes from the distance of the 
observations to the cell means. This 
indicates error. 
  2 ( ) B A A G SS N X X 
The between-cells or between-groups 
sum of squares tells of the distance of 
the cell means from the grand mean. 
This indicates IV effects. 
TOT B W SS  SS  SS 21
Calculating variance between groups 
1. Calculate the mean of each sample. 
2. Calculate the Grand average 
3. Take the difference between the means of the 
nx n x ... n x 
   
various samples and the grand average. 
1 1 2 2 k k 
n n ... n 
X 
 
4. Square these deviations and obtain the total which 
   
1 2 k 
will give sum of squares between the samples 
5. Divide the total obtained in step 4 by the degrees of 
2 
i SST n (x x) i 
freedom to calculate the mean squares for 
treatment(MST). 
i 
22
Calculating Variance within groups 
1. Calculate the mean value of each sample 
2. Take the deviations of the various items in a sample 
from the mean values of the respective samples. 
3. Square these deviations and obtain the total which 
gives the sum of square within the samples 
4. Divide the total obtained in 3rd step by the degrees 
(  )2 
of freedom to SSE calculate the x mean x 
i squares for 
ij error(MSE). 
ij 
23
The mean sum of squares 
• To perform the test we need to calculate the 
mean squares as follows 
SST 
1 
 
k 
MST 
SSE 
n k 
MSE 
 
 
Calculation of 
MST-Mean Square 
for Treatments 
Calculation of MSE 
Mean Square for Error 
24
ANOVA: one way classification model 
Source of 
Variation 
SS (Sum of 
Squares) 
Degrees of 
Freedom 
MS Mean 
Square 
Variance 
Ratio of F 
Between 
Samples 
Sum of squares 
between samples 
SSB/SST k-1 MST= 
SST/(k-1) 
MST/MSE 
Within 
Samples 
Sum of squares 
within samples 
Total sum of 
square of 
variations 
SSW/SSE n-k MSE= 
SSE/(n-k) 
Total SS(Total) n-1 
k= No of Groups, n= Total No of observations 25
The F-distribution 
 The F distribution is the probability 
distribution associated with the f statistic 
 The F-test tests the hypothesis that two 
variances are equal. 
26
F- Distribution 
27
Calculation of the test statistic 
Variability between groups 
Variability within groups 
F  
with the following degrees of freedom: 
v1=k -1 and v2=n-k 
28 
F- statistic = 
푀푆푇 
푀푆퐸 
We compare the F-statistic value with F(critical) value 
which is obtained by looking for it in F distribution tables 
against degrees of freedom respectively.
Example 
Group1 Group 2 Group3 Group 4 
60 50 48 47 
67 52 49 67 
42 43 50 54 
67 67 55 67 
56 67 56 68 
62 59 61 65 
64 67 61 65 
59 64 60 56 
72 63 59 60 
71 65 64 65 
29
Group1 Group 2 Group3 Group 4 
60 50 48 47 
67 52 49 67 
42 43 50 54 
67 67 55 67 
56 67 56 68 
62 59 61 65 
64 67 61 65 
59 64 60 56 
72 63 59 60 
71 65 64 65 
62.0 59.7 56.3 61.4 
Step 1) calculate the sum 
of squares between 
groups: 
Grand mean= 59.85 
SSB = [(62-59.85)2 + 
(59.7-59.85)2 + (56.3- 
59.85)2 + (61.4-59.85)2] 
x n per group = 
19.65x10 = 196.5 
Mean 
DEGREES OF 
FREEDOM(df) are 
k-1 = 4-1 = 3 
30
Step 2) calculate the sum 
of squares within groups: 
SSW=(60-62) 2+(67-62) 
2+ … + (50-59.7) 2+ (52- 
59.7) 2+ …+(48-56.3)2 
+(49-56.3)2 +…(sum of 
40 squared deviations) 
= 2060.6 
Group1 Group 2 Group3 Group 4 
60 50 48 47 
67 52 49 67 
42 43 50 54 
67 67 55 67 
56 67 56 68 
62 59 61 65 
64 67 61 65 
59 64 60 56 
72 63 59 60 
71 65 64 65 
Mean 62.0 59.7 56.3 61.4 
DEGREES OF 
FREEDOM(df) are 
N-k = 40-4 = 36 
31
RESULTS 
Source of 
variation 
df Sum of 
Squares 
Mean Sum 
of Squares 
F-Statistic P-value 
Between 
(Treatment 
effect) 
3 196.5 65.5 1.14 .344 
Within 
(Error) 
36 2060.6 57.2 - - 
Total 39 2257.1 - - - 
32 
F(critical) 
= 2.866
Violations of Assumptions 
Testing for Normality 
• Each of the populations being compared should 
follow a normal distribution. This can be tested using 
various normality tests, such as: 
 Shapiro-Wilk test or 
 Kolmogorov–Smirnov test or 
 Assessed graphically using a normal quantile plot or 
Histogram. 
34
Remedies for Non- normal data 
• Transform your data using various algorithms so that 
the shape of your distributions become normally 
distributed . Common transformation used are: 
 Logarithm 
 Square root and 
 Multiplicative inverse 
• Choose the non-parametric Kruskal-Wallis H Test 
which does not require the assumption of normality. 
35
Testing for variances 
• The populations being compared should have the 
same variance. Tested by using 
 Levene's test, 
 Modified Levene's test 
 Bartlett's test 
36
Remedies for heterogenous data 
• Two tests that we can run when the assumption of 
homogeneity of variances has been violated are: 
Welch test or 
 Brown and Forsythe test. 
• Alternatively, we can run a Kruskal-Wallis H Test. But 
for most situations it has been shown that the Welsh 
test is best. 
37
Two-Way ANOVA 
• One dependent variable (quantitative variable), 
• Two independent variables (classifying variables = 
factors) 
• Key Advantages 
– Compare relative influences on DV 
– Examine interactions between IV 
38
Example 
IV#1 IV#2 DV 
– Drug Level Age of Patient Anxiety Level 
– Type of Therapy Length of Therapy Anxiety Level 
– Type of Exercise Type of Diet Weight 
Change 
39
Null hypothesis 
 The two-way ANOVA include tests of three 
null hypotheses: 
 That the means of observations grouped by one 
factor are the same; 
 That the means of observations grouped by the 
other factor are the same; and 
 That there is no interaction between the two 
factors. The interaction test tells you whether 
the effects of one factor depend on the other 
factor. 
40
Two-Way ANOVA Data Layout 
Observation k 
in each cell 
Xijk 
Level i 
Factor 
A 
Level j 
Factor 
B 
Factor Factor B 
A 1 2 ... b 
1 
X111 X121 ... X1b1 
X11n X12n ... X1bn 
2 
X211 X221 ... X2b1 
X21n X22n ... X2bn 
: : : : : 
a Xa11 Xa21 ... Xab1 
Xa1n Xa2n ... Xabn 
i = 1,…,a 
j = 1,…,b 
k = 1,…,n 
There are a X b treatment combinations 
41
Formula for calculations 
• Just as we had Sums of Squares and Mean 
Squares in One-way ANOVA, we have the 
same in Two-way ANOVA. 
• In balanced Two-way ANOVA, we measure 
the overall variability in the data by: 
a 
2     
 SS X X df N 
( ) 1 
T ijk 
   
1 1 1 
i 
b 
j 
n 
k 
42
Formula for calculations 
Sum of Squares for factor A 
2        
  SS X X bn X X df a 
( ) ( ) 1 
1 
2 
A i 
1 1 1 
 
  
   
a 
i 
i 
a 
i 
b 
j 
n 
k 
Sum of Squares for factor B 
a 
2 2 ( ) ( ) 1 
  
    
B j j SS X X an X X df b 
            
i 
b 
j 
n 
k 
b 
j 
1 1 1 1 
43
Formula for calculations 
Interaction Sum of Squares 
a 
 
   
AB ij i j SS X X X X df a b 
            
i 
b 
j 
n 
k 
1 1 1 
2 ( ) ( 1)( 1) 
Measures the variation in the response due to the interaction 
between factors A and B. 
Error or Residual Sum of Squares 
a 
 
   
E ijk ij SS X X df ab n 
     
i 
b 
j 
n 
k 
1 1 1 
2 ( ) ( 1) 
Measures the variation in the response within the a x b factor 
combinations. 
44
Formula for calculations 
• So the Two-way ANOVA Identity is: 
T A B AB E SS  SS  SS  SS  SS 
• This partitions the Total Sum of Squares 
into four pieces of interest for our 
hypotheses to be tested. 
45
Two-way ANOVA Table 
Source of 
Variation 
Degrees of 
Freedom 
Sum of 
Squares 
Mean 
Square F-ratio 
P-value 
Factor A a  1 SSA MSA FA = MSA / MSE Tail area 
Factor B b  1 SSB MSB FB = MSB / MSE Tail area 
Interaction (a – 1)(b – 1) SSAB MSAB FAB = MSAB / 
MSE 
Tail area 
Error ab(n – 1) SSE MSE 
Total abn  1 SST 
46
WHAT AFTER ANOVA RESULTS?? 
• ANOVA test tells us whether we have an 
overall difference between our groups but it 
does not tell us which specific groups differed. 
• Two possibilities are then available: 
For specific predictions k/a priori tests(contrasts) 
For predictions after the test k/a post-hoc 
comparisons. 
47
CONTRASTS 
• Known as priori or planned comparisons 
– Used when a researcher plans to compare specific group 
means prior to collecting the data or 
– Decides to compare group means after the data has been 
collected and noticing that some of the means appears to 
be different. 
– This can be tested, even when the H0 cannot be rejected. 
– Bonferroni t procedure(referred as Dunn’s test) is used. 
48
Post-hoc Tests 
• Post-hoc tests provide solution to this and therefore 
should only be run when we have an overall 
significant difference in group means. 
• Post-hoc tests are termed a posteriori tests - that is, 
performed after the event. 
– Tukey’s HSD Procedure 
– Scheffe’s Procedure 
– Newman-Keuls Procedure 
– Dunnett’s Procedure 
49
Example in SPSS 
• A clinical psychologist is interested in comparing the relative 
effectiveness of three forms of psychotherapy for alleviating 
depression. Fifteen individuals are randomly assigned to each 
of three treatment groups: cognitive-behavioral, Rogerian, 
and assertiveness training. The Depression Scale of MMPI 
serves as the response. The psychologist also wished to 
incorporate information about the patient’s severity of 
depression, so all subjects in the study were classified as 
having mild, moderate, or severe depression. 
50
ANOVA with Repeated Measures 
• An ANOVA with repeated measures is for comparing 
three or more group means where the participants 
are the same in each group. 
• This usually occurs in two situations – 
– when participants are measured multiple times to see 
changes to an intervention or 
– when participants are subjected to more than one 
condition/trial and the response to each of these 
conditions wants to be compared 
51
Assumptions 
• The dependent variable is interval or ratio 
(continuous). 
• Dependent variable is approximately normally 
distributed. 
• Sphericity 
• One independent variable where participants are 
tested on the same dependent variable at least 2 
times. 
Sphericity is the condition where the variances of the differences between all 
combinations of related groups (levels) are equal. 
52
Sphericity violation 
• Sphericity can be likened to homogeneity of 
variances in a between-subjects ANOVA. 
• The violation of sphericity is serious for the Repeated 
Measures ANOVA, with violation causing the test to 
have an increase in the Type I error rate). 
• Mauchly's Test of Sphericity tests the assumption of 
sphericity. 
53
Sphericity violation 
• The corrections employed to combat the violation of 
the assumption of sphericity are: 
 Lower-bound estimate, 
 Greenhouse-Geisser correction and 
 Huynh-Feldt correction. 
• The corrections are applied to the degrees of 
freedom (df) such that a valid critical F-value can be 
obtained. 
54
Problems 
• In a 6-month exercise training program with 20 
participants, a researcher measured CRP levels of the 
subjects before training, 2 weeks into training and 
post-6-months-training. 
• The researcher wished to know whether protection 
against heart disease might be afforded by exercise 
and whether this protection might be gained over a 
short period of time or whether it took longer. 
55
MANOVA 
• MANOVA is a procedure used to test the significance 
of the effects of one or more IVs on two or more 
DVs. 
• MANOVA can be viewed as an extension of ANOVA 
with the key difference that we are dealing with 
many dependent variables (not a single DV as in the 
case of ANOVA) 
56
Data requirements 
• Dependent Variables 
– Interval (or ratio) level variables 
– May be correlated 
– Multivariate normality 
– Homogeneity of variance 
• Independent Variable(s) 
– Nominal level variable(s) 
– At least two groups with each independent variable 
– Each independent variable should be independent of 
each other 
57
Various tests to use 
 Wilk's Lambda 
 Widely used; good balance between power and 
assumptions 
 Pillai's Trace 
 Useful when sample sizes are small, cell sizes are unequal, 
or covariances are not homogeneous 
 Hotelling's (Lawley-Hotelling) Trace 
 Useful when examining differences between two groups 
58
Results 
• The result of a MANOVA simply tells us that a 
difference exists (or not) across groups. 
• It does not tell us which treatment(s) differ or what is 
contributing to the differences. 
• For such information, we need to run ANOVAs with 
post hoc tests. 
59
Example 
• A high school takes its intake from three different 
primary schools. A teacher was concerned that, even 
after a few years, there were academic differences 
between the pupils from the different schools. As 
such, she randomly selected 20 pupils from each 
School and measured their academic performance by 
end-of-year English and Maths exams. 
60 
INDEPENDENT VARIABLE is Gender with 
male and female categories 
DEPENDENT VARIABLE are English and math 
scores
Other tests of Interest 
• ANCOVA 
Analysis of Covariance 
This test is a blend of ANOVA and linear regression 
MANCOVA 
Multivariate analysis of covariance 
One or more continous covariates present 
61
References 
• Wikepedia: Encyclopedia. Available from 
URL:http://en.wikipedia.org/wiki/ 
• Methods in Biostatistics by BK Mahajan 
• Statistical Methods by SP Gupta 
• Basic & Clinical Biostatistics by Dawson and Beth 
• Statistical Methods in Medical Research by 
Armitage, Berry, Matthews 
62
63 
THANKS

More Related Content

What's hot

One Way Anova
One Way AnovaOne Way Anova
One Way Anovashoffma5
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)
Irfan Hussain
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
Andi Koentary
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
D-kay Verma
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
Subramani Parasuraman
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
Avjinder (Avi) Kaler
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
Shafeek S
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
elulu123
 
Repeated anova measures ppt
Repeated anova measures pptRepeated anova measures ppt
Repeated anova measures ppt
Aamna Haneef
 
Kruskal Wall Test
Kruskal Wall TestKruskal Wall Test
Kruskal Wall Test
Khadijah Sohail
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
Parag Shah
 
oneway ANOVA.ppt
oneway ANOVA.pptoneway ANOVA.ppt
oneway ANOVA.ppt
Neha Madan
 
Anova, ancova
Anova, ancovaAnova, ancova
Anova, ancova
Aritra Das
 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
Dr. Ankit Gaur
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovanaranbatn
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
Babasab Patil
 
Anova; analysis of variance
Anova; analysis of varianceAnova; analysis of variance
Anova; analysis of variance
Dr. Priyamvada Saarsar
 
{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx
SNEHA AGRAWAL GUPTA
 

What's hot (20)

One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
 
Repeated anova measures ppt
Repeated anova measures pptRepeated anova measures ppt
Repeated anova measures ppt
 
Kruskal Wall Test
Kruskal Wall TestKruskal Wall Test
Kruskal Wall Test
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
oneway ANOVA.ppt
oneway ANOVA.pptoneway ANOVA.ppt
oneway ANOVA.ppt
 
Anova, ancova
Anova, ancovaAnova, ancova
Anova, ancova
 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anova
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
Anova; analysis of variance
Anova; analysis of varianceAnova; analysis of variance
Anova; analysis of variance
 
Manova
ManovaManova
Manova
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx
 

Viewers also liked

Analysis of covariance
Analysis of covarianceAnalysis of covariance
Analysis of covariancemikko656
 
Statr session 19 and 20
Statr session 19 and 20Statr session 19 and 20
Statr session 19 and 20
Ruru Chowdhury
 
T13 parametric tests
T13 parametric testsT13 parametric tests
T13 parametric testskompellark
 
Quick reminder parametric tests
Quick reminder   parametric testsQuick reminder   parametric tests
Quick reminder parametric tests
Ken Plummer
 
Standard Score And The Normal Curve
Standard Score And The Normal CurveStandard Score And The Normal Curve
Standard Score And The Normal Curve
JOHNY NATAD
 
20 Creative & Award Winning Ads
20 Creative & Award Winning Ads 20 Creative & Award Winning Ads
20 Creative & Award Winning Ads Marketing Wise
 
Hrm 3 B Motivation
Hrm 3 B MotivationHrm 3 B Motivation
Hrm 3 B Motivation
Rinie Altena
 
Grammar and writing introduction 2011
Grammar and writing introduction 2011Grammar and writing introduction 2011
Grammar and writing introduction 2011Mark O'Meara
 
Unit 9 lesson 1
Unit 9 lesson 1Unit 9 lesson 1
Unit 9 lesson 1VMRoberts
 
Connecting Grammar And Writing Jenny
Connecting Grammar And Writing    JennyConnecting Grammar And Writing    Jenny
Connecting Grammar And Writing JennyKevin Hodgson
 
Mod 18 Operant conditioning
Mod 18   Operant conditioningMod 18   Operant conditioning
Mod 18 Operant conditioningTina Medley
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
Mawwy Sioson
 
Transition words
Transition wordsTransition words
Transition wordsRick Zepeda
 
The wiki way of learning: Supporting vocabulary, grammar and writing skills i...
The wiki way of learning: Supporting vocabulary, grammar and writing skills i...The wiki way of learning: Supporting vocabulary, grammar and writing skills i...
The wiki way of learning: Supporting vocabulary, grammar and writing skills i...Anna Bougia
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
Sr Edith Bogue
 
Anova new exercise
Anova new exerciseAnova new exercise
Anova new exercise
Maaruthiswari Nadeson
 

Viewers also liked (19)

Analysis of covariance
Analysis of covarianceAnalysis of covariance
Analysis of covariance
 
Statr session 19 and 20
Statr session 19 and 20Statr session 19 and 20
Statr session 19 and 20
 
T13 parametric tests
T13 parametric testsT13 parametric tests
T13 parametric tests
 
Quick reminder parametric tests
Quick reminder   parametric testsQuick reminder   parametric tests
Quick reminder parametric tests
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 
Standard Score And The Normal Curve
Standard Score And The Normal CurveStandard Score And The Normal Curve
Standard Score And The Normal Curve
 
20 Creative & Award Winning Ads
20 Creative & Award Winning Ads 20 Creative & Award Winning Ads
20 Creative & Award Winning Ads
 
Hrm 3 B Motivation
Hrm 3 B MotivationHrm 3 B Motivation
Hrm 3 B Motivation
 
Grammar and writing introduction 2011
Grammar and writing introduction 2011Grammar and writing introduction 2011
Grammar and writing introduction 2011
 
Anova (1)
Anova (1)Anova (1)
Anova (1)
 
Unit 9 lesson 1
Unit 9 lesson 1Unit 9 lesson 1
Unit 9 lesson 1
 
Connecting Grammar And Writing Jenny
Connecting Grammar And Writing    JennyConnecting Grammar And Writing    Jenny
Connecting Grammar And Writing Jenny
 
Chapter15
Chapter15Chapter15
Chapter15
 
Mod 18 Operant conditioning
Mod 18   Operant conditioningMod 18   Operant conditioning
Mod 18 Operant conditioning
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Transition words
Transition wordsTransition words
Transition words
 
The wiki way of learning: Supporting vocabulary, grammar and writing skills i...
The wiki way of learning: Supporting vocabulary, grammar and writing skills i...The wiki way of learning: Supporting vocabulary, grammar and writing skills i...
The wiki way of learning: Supporting vocabulary, grammar and writing skills i...
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 
Anova new exercise
Anova new exerciseAnova new exercise
Anova new exercise
 

Similar to Analysis of variance

ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
sadiakhan783184
 
Anova.ppt
Anova.pptAnova.ppt
Anova.ppt
satyamsk
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
Dr Shovan Padhy, MD
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundations
smackinnon
 
lecture12.ppt
lecture12.pptlecture12.ppt
lecture12.ppt
BAGARAGAZAROMUALD2
 
lecture12.ppt
lecture12.pptlecture12.ppt
lecture12.ppt
Nimish Savaliya
 
Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anova
praba karan
 
Anova one way sem 1 20142015 dk
Anova one way sem 1 20142015 dkAnova one way sem 1 20142015 dk
Anova one way sem 1 20142015 dk
Syifa' Humaira
 
Independent samples t-test
Independent samples t-testIndependent samples t-test
Independent samples t-test
Kaori Kubo Germano, PhD
 
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptxtest_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
RaquelMaacap
 
ANOVA BIOstat short explaination .pptx
ANOVA BIOstat short explaination   .pptxANOVA BIOstat short explaination   .pptx
ANOVA BIOstat short explaination .pptx
DrDeveshPandey1
 
Anova n metaanalysis
Anova n metaanalysisAnova n metaanalysis
Anova n metaanalysisutpal sharma
 
Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)
Farhan Alfin
 
One-way ANOVA research paper
One-way ANOVA research paperOne-way ANOVA research paper
One-way ANOVA research paperJose Dela Cruz
 
Anova stat 512
Anova stat 512Anova stat 512
Anova stat 512
gargnisha
 
2Analysis of Variance.pdf
2Analysis of Variance.pdf2Analysis of Variance.pdf
2Analysis of Variance.pdf
YomifDeksisaHerpa
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8Daria Bogdanova
 
classmar16.ppt
classmar16.pptclassmar16.ppt
classmar16.ppt
RangothriSreenivasaS
 
classmar16.ppt
classmar16.pptclassmar16.ppt
classmar16.ppt
RangothriSreenivasaS
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech
 

Similar to Analysis of variance (20)

ANOVA.ppt
ANOVA.pptANOVA.ppt
ANOVA.ppt
 
Anova.ppt
Anova.pptAnova.ppt
Anova.ppt
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundations
 
lecture12.ppt
lecture12.pptlecture12.ppt
lecture12.ppt
 
lecture12.ppt
lecture12.pptlecture12.ppt
lecture12.ppt
 
Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anova
 
Anova one way sem 1 20142015 dk
Anova one way sem 1 20142015 dkAnova one way sem 1 20142015 dk
Anova one way sem 1 20142015 dk
 
Independent samples t-test
Independent samples t-testIndependent samples t-test
Independent samples t-test
 
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptxtest_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
 
ANOVA BIOstat short explaination .pptx
ANOVA BIOstat short explaination   .pptxANOVA BIOstat short explaination   .pptx
ANOVA BIOstat short explaination .pptx
 
Anova n metaanalysis
Anova n metaanalysisAnova n metaanalysis
Anova n metaanalysis
 
Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)Ch7 Analysis of Variance (ANOVA)
Ch7 Analysis of Variance (ANOVA)
 
One-way ANOVA research paper
One-way ANOVA research paperOne-way ANOVA research paper
One-way ANOVA research paper
 
Anova stat 512
Anova stat 512Anova stat 512
Anova stat 512
 
2Analysis of Variance.pdf
2Analysis of Variance.pdf2Analysis of Variance.pdf
2Analysis of Variance.pdf
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8
 
classmar16.ppt
classmar16.pptclassmar16.ppt
classmar16.ppt
 
classmar16.ppt
classmar16.pptclassmar16.ppt
classmar16.ppt
 
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCHAshish Dadheech PRESENT TOPIC NURSING RESEARCH
Ashish Dadheech PRESENT TOPIC NURSING RESEARCH
 

More from Ravi Rohilla

Tribal health
Tribal healthTribal health
Tribal health
Ravi Rohilla
 
IYCF
IYCFIYCF
E governance
E governanceE governance
E governance
Ravi Rohilla
 
Fluorosis
FluorosisFluorosis
Fluorosis
Ravi Rohilla
 
Water quality standard
Water quality standardWater quality standard
Water quality standard
Ravi Rohilla
 
Revised national tuberculosis control programme
Revised national tuberculosis control programmeRevised national tuberculosis control programme
Revised national tuberculosis control programme
Ravi Rohilla
 
Medical tourism
Medical tourismMedical tourism
Medical tourism
Ravi Rohilla
 
Modern management techniques
Modern management techniquesModern management techniques
Modern management techniques
Ravi Rohilla
 
Right of children
Right of childrenRight of children
Right of children
Ravi Rohilla
 

More from Ravi Rohilla (9)

Tribal health
Tribal healthTribal health
Tribal health
 
IYCF
IYCFIYCF
IYCF
 
E governance
E governanceE governance
E governance
 
Fluorosis
FluorosisFluorosis
Fluorosis
 
Water quality standard
Water quality standardWater quality standard
Water quality standard
 
Revised national tuberculosis control programme
Revised national tuberculosis control programmeRevised national tuberculosis control programme
Revised national tuberculosis control programme
 
Medical tourism
Medical tourismMedical tourism
Medical tourism
 
Modern management techniques
Modern management techniquesModern management techniques
Modern management techniques
 
Right of children
Right of childrenRight of children
Right of children
 

Recently uploaded

一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
alex933524
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization Sample
James Polillo
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
ewymefz
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 

Recently uploaded (20)

一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization Sample
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 

Analysis of variance

  • 1. ANALYSIS OF VARIANCE (ANOVA) DR RAVI ROHILLA COMMUNITY MEDICINE PT. B.D. SHARMA PGIMS, ROHTAK 1
  • 2. Contents  Parametric tests  Difference b/w parametric & non-parametric tests  Introduction of ANOVA  Defining the Hypothesis  Rationale for ANOVA  Basic ANOVA situation and assumptions  Methodology for Calculations  F- distribution  Example of 1 way ANOVA 2
  • 3. Contents  Violation of assumptions  Two way ANOVA  Null hypothesis and data layout  Methodology for calculations and example  Comparisons in ANOVA  ANOVA with repeated measures  Assumptions and example  MANOVA  Assumptions and example  Other tests of interest and References 3
  • 4. PARAMETRIC TESTS  Parameter- summary value that describes the population such as mean, variance, correlation coefficient, proportion etc.  Parametric test- population constants as described above are used such as mean, variances etc. and data tend to follow one assumed or established distribution such as normal, binomial, poisson etc. 4
  • 5. Parametric vs. non-parametric tests Choosing parametric test Choosing non-parametric test Correlation test Pearson Spearman Independent measures, 2 groups Independent-measures t-test Mann-Whitney test Independent measures, >2 groups One-way, independent-measures ANOVA Kruskal-Wallis test Repeated measures, 2 conditions Matched-pair t-test Wilcoxon test Repeated measures, >2 conditions One-way, repeated measures ANOVA Friedman's test 5
  • 6. (ANalysis Of VAriance) • Idea: For two or more groups, test difference between means, for quantitative normally distributed variables. • Just an extension of the t-test (an ANOVA with only two groups is mathematically equivalent to a t-test). 6
  • 7. EXAMPLE Question 1. Marks of 8th class students of two schools are given. Find whether the scores are differing significantly with each other. A 45 35 45 46 48 41 42 39 49 B 49 47 36 48 42 38 41 42 45 ANSWER: The test applicable here is T-test since there are two groups involved here. 7
  • 8. EXAMPLE Question 2. Marks of 8th class students of four schools are given. Find whether the scores are differing significantly with each other. A 45 35 45 46 48 41 42 39 49 B 49 47 36 48 42 38 41 42 45 C 43 45 42 37 39 40 41 35 47 D 34 48 47 42 36 41 45 42 48 ANSWER: The test applicable here is ANOVA since there are more than two groups(4) involved here. 8
  • 9. Why Not Use t-test Repeatedly? • The t-test can only be used to test differences between two means. • Conducting multiple t-tests can lead to severe inflation of the Type I error rate (false positives) and is NOT RECOMMENDED • ANOVA is used to test for differences among several means without increasing the Type I error rate 9
  • 10. Defining the hypothesis 10 The Null & Alternate hypotheses for one-way ANOVA are: H0  1  2...  i Ha  not all of the i are equal
  • 11. Rationale of the test • Null Hypothesis states that all groups come from the same population; have the same means! • But do all groups have the same population mean?? • We need to compare the sample means. We compare the variation among (between) the means of several groups with the variation within groups 11
  • 12. 30 25 20 19 12 10 9 7 A small variability within the samples makes it easier to draw a conclusion about the population means. 1 Treatment 1 Treatment 2Treatment 3 20 16 15 14 11 10 9 10 x1  x2 15 x3  20 TreatmentT 1reatmentT 2reatment 3 x110 x2 15 20 x3  The sample means are the same as before, but the larger within-sample variability makes it harder to draw a conclusion about the population means. 12 FIGURE 1 FIGURE 2
  • 13. 13 FIGURE 1 FIGURE 2
  • 14. Rationale of the test • Clearly, we can conclude that the groups appear most different or distinct in the 1st figure. Why? • Because there is relatively little overlap between the bell-shaped curves. In the high variability case, the group difference appears least striking because the bell-shaped distributions overlap so much. 14
  • 15. Rationale of the test • This leads us to a very important conclusion: when we are looking at the differences between scores for two or more groups, we have to judge the difference between their means relative to the spread or variability of their scores. 15
  • 16. Types of variability Two types of variability are employed when testing for the equality of the means: 17 Between Group variability & Within Group variability
  • 17.  To distinguish between the groups, the variability between (or among) the groups must be greater than the variability within the groups.  If the within-groups variability is large compared with the between-groups variability, any difference between the groups is difficult to detect.  To determine whether or not the group means are significantly different, the variability between groups and the variability within groups are compared 18
  • 18. The basic ANOVA situation • Two variables: 1 Categorical, 1 Quantitative • Main Question: Whether there are any significant differences between the means of three or more independent (unrelated) groups? 19
  • 19. Assumptions • Normality: the values within each group are normally distributed. • Homogeneity of variances: the variance within each group should be equal for all groups. • Independence of error: The error(variation of each value around its own group mean) should be independent of each value. 20
  • 20. ANOVA Calculations Sum of squares represent variation present in the data. They are calculated by summing squared deviations. The simple ANOVA design have 3 sums of squares.   2 ( ) TOT i G SS X X The total sum of squares comes from the distance of all the scores from the grand mean.   2 ( ) W i A SS X X The within-group or within-cell sum of squares comes from the distance of the observations to the cell means. This indicates error.   2 ( ) B A A G SS N X X The between-cells or between-groups sum of squares tells of the distance of the cell means from the grand mean. This indicates IV effects. TOT B W SS  SS  SS 21
  • 21. Calculating variance between groups 1. Calculate the mean of each sample. 2. Calculate the Grand average 3. Take the difference between the means of the nx n x ... n x    various samples and the grand average. 1 1 2 2 k k n n ... n X  4. Square these deviations and obtain the total which    1 2 k will give sum of squares between the samples 5. Divide the total obtained in step 4 by the degrees of 2 i SST n (x x) i freedom to calculate the mean squares for treatment(MST). i 22
  • 22. Calculating Variance within groups 1. Calculate the mean value of each sample 2. Take the deviations of the various items in a sample from the mean values of the respective samples. 3. Square these deviations and obtain the total which gives the sum of square within the samples 4. Divide the total obtained in 3rd step by the degrees (  )2 of freedom to SSE calculate the x mean x i squares for ij error(MSE). ij 23
  • 23. The mean sum of squares • To perform the test we need to calculate the mean squares as follows SST 1  k MST SSE n k MSE   Calculation of MST-Mean Square for Treatments Calculation of MSE Mean Square for Error 24
  • 24. ANOVA: one way classification model Source of Variation SS (Sum of Squares) Degrees of Freedom MS Mean Square Variance Ratio of F Between Samples Sum of squares between samples SSB/SST k-1 MST= SST/(k-1) MST/MSE Within Samples Sum of squares within samples Total sum of square of variations SSW/SSE n-k MSE= SSE/(n-k) Total SS(Total) n-1 k= No of Groups, n= Total No of observations 25
  • 25. The F-distribution  The F distribution is the probability distribution associated with the f statistic  The F-test tests the hypothesis that two variances are equal. 26
  • 27. Calculation of the test statistic Variability between groups Variability within groups F  with the following degrees of freedom: v1=k -1 and v2=n-k 28 F- statistic = 푀푆푇 푀푆퐸 We compare the F-statistic value with F(critical) value which is obtained by looking for it in F distribution tables against degrees of freedom respectively.
  • 28. Example Group1 Group 2 Group3 Group 4 60 50 48 47 67 52 49 67 42 43 50 54 67 67 55 67 56 67 56 68 62 59 61 65 64 67 61 65 59 64 60 56 72 63 59 60 71 65 64 65 29
  • 29. Group1 Group 2 Group3 Group 4 60 50 48 47 67 52 49 67 42 43 50 54 67 67 55 67 56 67 56 68 62 59 61 65 64 67 61 65 59 64 60 56 72 63 59 60 71 65 64 65 62.0 59.7 56.3 61.4 Step 1) calculate the sum of squares between groups: Grand mean= 59.85 SSB = [(62-59.85)2 + (59.7-59.85)2 + (56.3- 59.85)2 + (61.4-59.85)2] x n per group = 19.65x10 = 196.5 Mean DEGREES OF FREEDOM(df) are k-1 = 4-1 = 3 30
  • 30. Step 2) calculate the sum of squares within groups: SSW=(60-62) 2+(67-62) 2+ … + (50-59.7) 2+ (52- 59.7) 2+ …+(48-56.3)2 +(49-56.3)2 +…(sum of 40 squared deviations) = 2060.6 Group1 Group 2 Group3 Group 4 60 50 48 47 67 52 49 67 42 43 50 54 67 67 55 67 56 67 56 68 62 59 61 65 64 67 61 65 59 64 60 56 72 63 59 60 71 65 64 65 Mean 62.0 59.7 56.3 61.4 DEGREES OF FREEDOM(df) are N-k = 40-4 = 36 31
  • 31. RESULTS Source of variation df Sum of Squares Mean Sum of Squares F-Statistic P-value Between (Treatment effect) 3 196.5 65.5 1.14 .344 Within (Error) 36 2060.6 57.2 - - Total 39 2257.1 - - - 32 F(critical) = 2.866
  • 32. Violations of Assumptions Testing for Normality • Each of the populations being compared should follow a normal distribution. This can be tested using various normality tests, such as:  Shapiro-Wilk test or  Kolmogorov–Smirnov test or  Assessed graphically using a normal quantile plot or Histogram. 34
  • 33. Remedies for Non- normal data • Transform your data using various algorithms so that the shape of your distributions become normally distributed . Common transformation used are:  Logarithm  Square root and  Multiplicative inverse • Choose the non-parametric Kruskal-Wallis H Test which does not require the assumption of normality. 35
  • 34. Testing for variances • The populations being compared should have the same variance. Tested by using  Levene's test,  Modified Levene's test  Bartlett's test 36
  • 35. Remedies for heterogenous data • Two tests that we can run when the assumption of homogeneity of variances has been violated are: Welch test or  Brown and Forsythe test. • Alternatively, we can run a Kruskal-Wallis H Test. But for most situations it has been shown that the Welsh test is best. 37
  • 36. Two-Way ANOVA • One dependent variable (quantitative variable), • Two independent variables (classifying variables = factors) • Key Advantages – Compare relative influences on DV – Examine interactions between IV 38
  • 37. Example IV#1 IV#2 DV – Drug Level Age of Patient Anxiety Level – Type of Therapy Length of Therapy Anxiety Level – Type of Exercise Type of Diet Weight Change 39
  • 38. Null hypothesis  The two-way ANOVA include tests of three null hypotheses:  That the means of observations grouped by one factor are the same;  That the means of observations grouped by the other factor are the same; and  That there is no interaction between the two factors. The interaction test tells you whether the effects of one factor depend on the other factor. 40
  • 39. Two-Way ANOVA Data Layout Observation k in each cell Xijk Level i Factor A Level j Factor B Factor Factor B A 1 2 ... b 1 X111 X121 ... X1b1 X11n X12n ... X1bn 2 X211 X221 ... X2b1 X21n X22n ... X2bn : : : : : a Xa11 Xa21 ... Xab1 Xa1n Xa2n ... Xabn i = 1,…,a j = 1,…,b k = 1,…,n There are a X b treatment combinations 41
  • 40. Formula for calculations • Just as we had Sums of Squares and Mean Squares in One-way ANOVA, we have the same in Two-way ANOVA. • In balanced Two-way ANOVA, we measure the overall variability in the data by: a 2      SS X X df N ( ) 1 T ijk    1 1 1 i b j n k 42
  • 41. Formula for calculations Sum of Squares for factor A 2          SS X X bn X X df a ( ) ( ) 1 1 2 A i 1 1 1       a i i a i b j n k Sum of Squares for factor B a 2 2 ( ) ( ) 1       B j j SS X X an X X df b             i b j n k b j 1 1 1 1 43
  • 42. Formula for calculations Interaction Sum of Squares a     AB ij i j SS X X X X df a b             i b j n k 1 1 1 2 ( ) ( 1)( 1) Measures the variation in the response due to the interaction between factors A and B. Error or Residual Sum of Squares a     E ijk ij SS X X df ab n      i b j n k 1 1 1 2 ( ) ( 1) Measures the variation in the response within the a x b factor combinations. 44
  • 43. Formula for calculations • So the Two-way ANOVA Identity is: T A B AB E SS  SS  SS  SS  SS • This partitions the Total Sum of Squares into four pieces of interest for our hypotheses to be tested. 45
  • 44. Two-way ANOVA Table Source of Variation Degrees of Freedom Sum of Squares Mean Square F-ratio P-value Factor A a  1 SSA MSA FA = MSA / MSE Tail area Factor B b  1 SSB MSB FB = MSB / MSE Tail area Interaction (a – 1)(b – 1) SSAB MSAB FAB = MSAB / MSE Tail area Error ab(n – 1) SSE MSE Total abn  1 SST 46
  • 45. WHAT AFTER ANOVA RESULTS?? • ANOVA test tells us whether we have an overall difference between our groups but it does not tell us which specific groups differed. • Two possibilities are then available: For specific predictions k/a priori tests(contrasts) For predictions after the test k/a post-hoc comparisons. 47
  • 46. CONTRASTS • Known as priori or planned comparisons – Used when a researcher plans to compare specific group means prior to collecting the data or – Decides to compare group means after the data has been collected and noticing that some of the means appears to be different. – This can be tested, even when the H0 cannot be rejected. – Bonferroni t procedure(referred as Dunn’s test) is used. 48
  • 47. Post-hoc Tests • Post-hoc tests provide solution to this and therefore should only be run when we have an overall significant difference in group means. • Post-hoc tests are termed a posteriori tests - that is, performed after the event. – Tukey’s HSD Procedure – Scheffe’s Procedure – Newman-Keuls Procedure – Dunnett’s Procedure 49
  • 48. Example in SPSS • A clinical psychologist is interested in comparing the relative effectiveness of three forms of psychotherapy for alleviating depression. Fifteen individuals are randomly assigned to each of three treatment groups: cognitive-behavioral, Rogerian, and assertiveness training. The Depression Scale of MMPI serves as the response. The psychologist also wished to incorporate information about the patient’s severity of depression, so all subjects in the study were classified as having mild, moderate, or severe depression. 50
  • 49. ANOVA with Repeated Measures • An ANOVA with repeated measures is for comparing three or more group means where the participants are the same in each group. • This usually occurs in two situations – – when participants are measured multiple times to see changes to an intervention or – when participants are subjected to more than one condition/trial and the response to each of these conditions wants to be compared 51
  • 50. Assumptions • The dependent variable is interval or ratio (continuous). • Dependent variable is approximately normally distributed. • Sphericity • One independent variable where participants are tested on the same dependent variable at least 2 times. Sphericity is the condition where the variances of the differences between all combinations of related groups (levels) are equal. 52
  • 51. Sphericity violation • Sphericity can be likened to homogeneity of variances in a between-subjects ANOVA. • The violation of sphericity is serious for the Repeated Measures ANOVA, with violation causing the test to have an increase in the Type I error rate). • Mauchly's Test of Sphericity tests the assumption of sphericity. 53
  • 52. Sphericity violation • The corrections employed to combat the violation of the assumption of sphericity are:  Lower-bound estimate,  Greenhouse-Geisser correction and  Huynh-Feldt correction. • The corrections are applied to the degrees of freedom (df) such that a valid critical F-value can be obtained. 54
  • 53. Problems • In a 6-month exercise training program with 20 participants, a researcher measured CRP levels of the subjects before training, 2 weeks into training and post-6-months-training. • The researcher wished to know whether protection against heart disease might be afforded by exercise and whether this protection might be gained over a short period of time or whether it took longer. 55
  • 54. MANOVA • MANOVA is a procedure used to test the significance of the effects of one or more IVs on two or more DVs. • MANOVA can be viewed as an extension of ANOVA with the key difference that we are dealing with many dependent variables (not a single DV as in the case of ANOVA) 56
  • 55. Data requirements • Dependent Variables – Interval (or ratio) level variables – May be correlated – Multivariate normality – Homogeneity of variance • Independent Variable(s) – Nominal level variable(s) – At least two groups with each independent variable – Each independent variable should be independent of each other 57
  • 56. Various tests to use  Wilk's Lambda  Widely used; good balance between power and assumptions  Pillai's Trace  Useful when sample sizes are small, cell sizes are unequal, or covariances are not homogeneous  Hotelling's (Lawley-Hotelling) Trace  Useful when examining differences between two groups 58
  • 57. Results • The result of a MANOVA simply tells us that a difference exists (or not) across groups. • It does not tell us which treatment(s) differ or what is contributing to the differences. • For such information, we need to run ANOVAs with post hoc tests. 59
  • 58. Example • A high school takes its intake from three different primary schools. A teacher was concerned that, even after a few years, there were academic differences between the pupils from the different schools. As such, she randomly selected 20 pupils from each School and measured their academic performance by end-of-year English and Maths exams. 60 INDEPENDENT VARIABLE is Gender with male and female categories DEPENDENT VARIABLE are English and math scores
  • 59. Other tests of Interest • ANCOVA Analysis of Covariance This test is a blend of ANOVA and linear regression MANCOVA Multivariate analysis of covariance One or more continous covariates present 61
  • 60. References • Wikepedia: Encyclopedia. Available from URL:http://en.wikipedia.org/wiki/ • Methods in Biostatistics by BK Mahajan • Statistical Methods by SP Gupta • Basic & Clinical Biostatistics by Dawson and Beth • Statistical Methods in Medical Research by Armitage, Berry, Matthews 62