SlideShare a Scribd company logo
1 of 7
Download to read offline
5/19/2015
1
WAQAS AHMED FAROOQUI
Lecturer of Biostatistics & Research Associate
Department of Research
Dow University of Health Sciences
Email: waqas.ahmed@duhs.edu.pk
Review: Completely Randomized Design ‐
CRD (one‐factor design)
The Completely Randomized design (CRD) randomly divides the
experimental units into “a” groups of size “n” and randomly assigns a
treatment to each group.
CRD (one-way ANOVA) is the generalized form of two-sample
Independent t-test.
Experimental units are relatively homogeneous.
Treatments are assigned to experimental units at random.
Each treatment is replicated the same number of times
(balanced design).
Review ‐ Completely Randomized Design
• Experimental Design ‐ Completely randomized design (CRD)
• Sampling Design ‐ One‐way classification design
CRD Model: ij
i
ij
y 

 


0
1



t
i
i
so
mean
overall
from
deviation
as
defines
are
Effects
Treatment 
yij = the jth observation in the ith treatment
µ= overall mean
αi= the effect of the ith treatment
eij = random error NID (0, σ2) – Normal Probability Plot of Residual
Review – Correlation & Regression
• Correlation –
Relationship (Nature – Positive/Negative & Strength – Weak/Moderate/Strong)
• Regression – Linear Relationship & Estimation
Correlation Formula:
2 2
2 2
x y
x y
n
r ; 1 1
( x ) ( y )
x . y
n n
r

   
   
 
   
   
   
 

 
 
bX
a
ŷ 

 
2
2
b ;
x y
x y
n a y b x
x
x
n

  

 



Linear Regression Model:
5/19/2015
2
INTRODUCTION:
The Analysis of covariance (ANCOVA) is another technique that occasionally
useful for improving the precision of an experiment.
Suppose in a experiment with a response variable Y there is another variable,
such as X, and that Y is linearly dependent to X.
Further more X cannot be controlled by the experimenter but can be observed
along with Y. The variable X is called covariate.
The ANCOVA involves adjusting the observed response variable for the effect
of covariate.
Analysis of Covariance (ANCOVA) is a statistical test related to ANOVA
It tests whether there is a significant difference between groups after
controlling for variance explained by a covariate
A covariate is a continuous variable that correlates with the dependent variable
Analysis of Covariance
ANCOVA is the combination of linear regression model and the model
employed in the ANOVA
Can be used to compare g treatments, after controlling for quantitative factor
believed to be related to response (e.g. pre‐treatment score)
Can be used to compare regression equations among g groups (e.g. common
slopes and/or intercepts)
Advantage:
Analysis of Covariance
Example
Nineteen rats are assigned at random among four experimental groups. Each
group is fed a different diet. The data are rat body weights, in kilograms, after
being raised on these diets. We wish to ask whether rat weights are the same for
all four diets.
Fed at Different Diet
Feed 1 Feed 2 Feed 3
Weight Age Weight Age Weight Age
60.8 3 68.7 4 61.9 3
67.0 3.5 67.7 2 64.2 3.7
65.0 3.2 75.0 3 63.1 3.5
68.6 3.3 73.3 5.5 66.7 4
61.7 1.2 71.8 5 60.3 2.9
Question?
In determining how different Diets will affect a weight, it
may be essential to take age into account.
ANOVA
One way
ANCOVA
with single factor and a
covariate
Involves one qualitative variable
(factor), One continuous (Y,
response, dependent) variable
Involves one qualitative variable (factor)
, one continuous( Y, response,
dependent) variable and an other
continuous variable (X, covariate)
5/19/2015
3
Analysis of Covariance Model
Assume that there is a linear relationship between the response and the
covariate, an appropriate statistical model is
..
1, 2,.....,
( )
1, 2,....,
ij i ij ij
i a
Y X X
j n
   


     


Where
Y ij is the j th observation on the response variable taken under the i th
treatment or level of the single factor.
X ij is the measurement made on the covariate, is the mean of the X ij
µ is the overall mean
τ is the effect of the i th treatment.
β is the linear regression coefficient(common slop) indicating the dependency
of Yij on X ij
ε ij are random error component.
..
X
We assume that ε ij are NID(0, σ2 ), that the slop β ≠ 0 and the relationship
between Yij and X ij is linear, that the regression coefficients for each treatment
are identical, that the treatment effects sum to zero, and the covariates X ij is
not affected by the treatment.
Notice immediately previous equation, that the analysis of covariance model is
a combination of the models employed in analysis of variance and regression.
That is we have treatment effect {τ} as in a single factor analysis of variance
and a regression coefficient β as in regression analysis.
We can rewrite previous model as
1, 2 , ..... ,
'
1, 2 , .... ,
ij i ij ij
i a
Y X
j n
   


    


Where µ` is a constant not equal to the overall mean, which for this model is
..
X
 
 
Analysis of Covariance Model (Cont..)
Assumptions for ANCOVA
ANOVA Assumptions:
• The response variable (data) are randomly sampled (Run Test)
• Group are normally distributed
(Kalmogrov Simrnov (ni≥50)/ Shapiro Walk (ni<50) Test)
• Variance is equal between groups (Homogeneity of Variance Test)
• All measurements are independent (No Trend or Funnel Shape)
• The residuals (error) are normally distributed (Q‐Q Plot for Error)
Also, for ANCOVA:
Linearity: relationship between covariate and dependent variable is linear
Independence : covariate and treatment effect are independent (treatment do
not effect covariates X because technique remove the effect of variation in)
Homogeneity: Assuming that there is a common slope for the covariate effect
with all levels of the experimental factor regression slops
Hypotheses for ANCOVA
• H0 and H1 need to be stated slightly differently for an ANCOVA than a
regular ANOVA
• H0: the group means are equal after controlling for the covariate
• H1: the group means are not equal after controlling for the covariate
The model allows to estimate the factor effects through estimation of the µ.
One can also test for significant differences in the effects due to the factor
levels by testing
0 1 2 3
: . . . .
:
a
a i
H
H a t l e a s t t w o d i f f e r
   

   
Testing for Treatment Effect
5/19/2015
4
Testing for Regression Coefficient
Likewise, one can estimate the effect of the covariate on the response through
the estimation of β. One can also test whether the covariate has a statistically
significant effect on the response by testing
0 : 0
: 0
a
H
H




If we fail to reject null hypothesis then we no need to run ANCOVA
But if null hypothesis is rejected then the adjustment provided by the
ANCOVA is necessary
. . . ..
ˆ( )
i i i
Adjusted Y Y X X

  
23‐14
Example
Four different formulations of an industrial glue are
being tested. The tensile strength (response) of the glue
is known to be related to the thickness as applied. Five
observations on strength (Y) in pounds, and thickness
(X) in 0.01 inches are made for each formulation.
Here:
• There are t=4 treatments (formulations of glue).
• Covariate X is thickness of applied glue.
• Each treatment is replicated n=5 times at different
values of X.
Formulation
Strength
(Pounds)
Thickness
(Inches)
1 46.5 13
1 45.9 14
1 49.8 12
1 46.1 12
1 44.3 14
2 48.7 12
2 49.0 10
2 50.1 11
2 48.5 12
2 45.2 14
3 46.3 15
3 47.1 14
3 48.9 11
3 48.2 11
3 50.3 10
4 44.7 16
4 43.0 15
4 51.0 10
4 48.1 12
4 46.8 11
First we look is there any relationship between strength (Y) and thickness (X).
For this purpose we made scatter plot between strength (Y) and thickness (X).
There is a strong suggestion of a linear relationship between strength and thickness, and
seems appropriate to remove the effect of thickness on strength by ANCOVA
Analysis of Covariance (SPSS Data) ANCOVA.sav
5/19/2015
5
Analysis of Covariance (Scatter Plot) ANCOVA.sav
Now we run ANCOVA
WHY ?
Because there is relationship between dependent variable
(strength) and a covariate (thickness)
Analysis of Covariance (ANCOVA) ANCOVA.sav
These are the unadjusted means of strength (dependent
variable)
Analysis of Covariance (ANCOVA)
5/19/2015
6
Also Effect size for Formulation is 0.103 (10%) so we can say there is no large
contribution of different formulation levels in increasing or decreasing glue
strength.
0 1 2 3 4
:
:
a i
H
H a t l e a s t t w o d i f f e r
   

  
Testing for Formulation
Level of significance : α = 0.05
We will reject null hypothesis if Fcal > Ftab or P‐value ≤ α
Results : P‐value = 0.640
Analysis of Covariance (ANCOVA)
Since P‐value for Formulation is 0.640 so we can not reject the null hypothesis
of no effect of formulation, hence there is no strong evidence that the industrial
glue by formulation differ in strength.
Confirmation of Non significance of formulation by Post Hoc
(LSD) tests
Non of the pair is significant confirming the over all non significance of factor formulation.
Also Effect size for thickness is 0.685 (68.5%) so we can say there is a large
contribution of thickness in increasing or decreasing glue strength.
Testing for Regression Coefficient ( Slope ; β1)
Level of significance : α = 0.05
We will reject null hypothesis if Fcal > Ftab or P‐value ≤ α
Results : P‐value = 0.000 (< 0.001)
Analysis of Covariance (ANCOVA)
Since P‐value for thickness is less than 0.001 so we reject the null hypothesis
β1=0, hence there is a linear relationship between strength and thickness.
0 1
1
: 0
: 0
a
H
H




Adjusted means of strength (dependent variable)
Adjusted means of Dependent variable
These adjusted means can also be obtained manually by using the equation
. . . ..
ˆ( )
i i i
Adjusted Y Y X X

  
unadjusted
Now the adjustment provided by the ANCOVA is necessary.
5/19/2015
7
. . . ..
ˆ( )
i i i
Adjusted Y Y X X

  
Unadjusted
Unadjusted Mean Strength Adjusted Mean Strength
46.520 47.045
48.300 47.680
48.160 47.921
46.720 47.054
Comparing the adjusted mean with unadjusted mean, we note that the adjusted
means are much closer together, another indication that the ANCOVA was
necessary.
THANK YOU

More Related Content

What's hot

Analysis of covariance
Analysis of covarianceAnalysis of covariance
Analysis of covariance
mikko656
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
saba khan
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
Dr Ali Yusob Md Zain
 

What's hot (20)

Analysis of covariance
Analysis of covarianceAnalysis of covariance
Analysis of covariance
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
MANOVA SPSS
MANOVA SPSSMANOVA SPSS
MANOVA SPSS
 
Application of ordinal logistic regression in the study of students’ performance
Application of ordinal logistic regression in the study of students’ performanceApplication of ordinal logistic regression in the study of students’ performance
Application of ordinal logistic regression in the study of students’ performance
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
 
Two-Way ANOVA Overview & SPSS interpretation
Two-Way ANOVA Overview & SPSS interpretationTwo-Way ANOVA Overview & SPSS interpretation
Two-Way ANOVA Overview & SPSS interpretation
 
Regression
RegressionRegression
Regression
 
One way repeated measure anova
One way repeated measure anovaOne way repeated measure anova
One way repeated measure anova
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Parametric Survival Analysis in Health Economics
Parametric Survival Analysis   in Health Economics Parametric Survival Analysis   in Health Economics
Parametric Survival Analysis in Health Economics
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student
 
Generalized linear model
Generalized linear modelGeneralized linear model
Generalized linear model
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
 
Mann Whitney U Test | Statistics
Mann Whitney U Test | StatisticsMann Whitney U Test | Statistics
Mann Whitney U Test | Statistics
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
Basic Descriptive statistics
Basic Descriptive statisticsBasic Descriptive statistics
Basic Descriptive statistics
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
 

Similar to Lecture - ANCOVA 4 Slides.pdf

Chapter 5 experimental design for sbh
Chapter 5 experimental design for sbhChapter 5 experimental design for sbh
Chapter 5 experimental design for sbh
Rione Drevale
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
mousaderhem1
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
Snehamurali18
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
shoffma5
 

Similar to Lecture - ANCOVA 4 Slides.pdf (20)

Variance component analysis by paravayya c pujeri
Variance component analysis by paravayya c pujeriVariance component analysis by paravayya c pujeri
Variance component analysis by paravayya c pujeri
 
Anova single factor
Anova single factorAnova single factor
Anova single factor
 
Chi2 Anova
Chi2 AnovaChi2 Anova
Chi2 Anova
 
Anova single factor
Anova single factorAnova single factor
Anova single factor
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Chapter 5 experimental design for sbh
Chapter 5 experimental design for sbhChapter 5 experimental design for sbh
Chapter 5 experimental design for sbh
 
Bus 173_4.pptx
Bus 173_4.pptxBus 173_4.pptx
Bus 173_4.pptx
 
Parametric Test.pptx
Parametric Test.pptxParametric Test.pptx
Parametric Test.pptx
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 
Unit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdfUnit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdf
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size
 
Applied statistics part 3
Applied statistics part 3Applied statistics part 3
Applied statistics part 3
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Biostatistics ii
Biostatistics iiBiostatistics ii
Biostatistics ii
 
Medical statistics2
Medical statistics2Medical statistics2
Medical statistics2
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 

More from muhammad shahid (12)

chi square test lecture for nurses in pakistan
chi square test lecture for nurses in pakistanchi square test lecture for nurses in pakistan
chi square test lecture for nurses in pakistan
 
1.1.Introduction to Epidemiology.ppt
1.1.Introduction to Epidemiology.ppt1.1.Introduction to Epidemiology.ppt
1.1.Introduction to Epidemiology.ppt
 
Lecture 5 Statistical Power (Handout).ppt
Lecture 5 Statistical Power (Handout).pptLecture 5 Statistical Power (Handout).ppt
Lecture 5 Statistical Power (Handout).ppt
 
MT-Ppt.pptx
MT-Ppt.pptxMT-Ppt.pptx
MT-Ppt.pptx
 
FIRST AID ppt (1).pptx
FIRST AID ppt (1).pptxFIRST AID ppt (1).pptx
FIRST AID ppt (1).pptx
 
Behavoural Psychology curriculum.docx
Behavoural Psychology curriculum.docxBehavoural Psychology curriculum.docx
Behavoural Psychology curriculum.docx
 
Synopsis Writing Guidelines.docx
Synopsis Writing Guidelines.docxSynopsis Writing Guidelines.docx
Synopsis Writing Guidelines.docx
 
cardiac Assessment.ppt
cardiac Assessment.pptcardiac Assessment.ppt
cardiac Assessment.ppt
 
Guess paper biostate
Guess paper biostateGuess paper biostate
Guess paper biostate
 
ENT assessment
ENT assessmentENT assessment
ENT assessment
 
Assignment4 ancova
Assignment4 ancovaAssignment4 ancova
Assignment4 ancova
 
Self directed learning
Self directed learningSelf directed learning
Self directed learning
 

Recently uploaded

🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
Sheetaleventcompany
 
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
🌹Attapur⬅️ Vip Call Girls Hyderabad 📱9352852248 Book Well Trand Call Girls In...
 
Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...
Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...
Call Girls Service Jaipur {9521753030} ❤️VVIP RIDDHI Call Girl in Jaipur Raja...
 
Call Girls Hyderabad Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Hyderabad Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Hyderabad Just Call 8250077686 Top Class Call Girl Service Available
 
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
 
Kollam call girls Mallu aunty service 7877702510
Kollam call girls Mallu aunty service 7877702510Kollam call girls Mallu aunty service 7877702510
Kollam call girls Mallu aunty service 7877702510
 
Call Girls in Delhi Triveni Complex Escort Service(🔝))/WhatsApp 97111⇛47426
Call Girls in Delhi Triveni Complex Escort Service(🔝))/WhatsApp 97111⇛47426Call Girls in Delhi Triveni Complex Escort Service(🔝))/WhatsApp 97111⇛47426
Call Girls in Delhi Triveni Complex Escort Service(🔝))/WhatsApp 97111⇛47426
 
Call Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service Available
Call Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service AvailableCall Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service Available
Call Girls Rishikesh Just Call 9667172968 Top Class Call Girl Service Available
 
9630942363 Genuine Call Girls In Ahmedabad Gujarat Call Girls Service
9630942363 Genuine Call Girls In Ahmedabad Gujarat Call Girls Service9630942363 Genuine Call Girls In Ahmedabad Gujarat Call Girls Service
9630942363 Genuine Call Girls In Ahmedabad Gujarat Call Girls Service
 
Call Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service Available
Call Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service AvailableCall Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service Available
Call Girls Ahmedabad Just Call 9630942363 Top Class Call Girl Service Available
 
Top Rated Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...
Top Rated  Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...Top Rated  Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...
Top Rated Hyderabad Call Girls Erragadda ⟟ 9332606886 ⟟ Call Me For Genuine ...
 
Call Girls Madurai Just Call 9630942363 Top Class Call Girl Service Available
Call Girls Madurai Just Call 9630942363 Top Class Call Girl Service AvailableCall Girls Madurai Just Call 9630942363 Top Class Call Girl Service Available
Call Girls Madurai Just Call 9630942363 Top Class Call Girl Service Available
 
Low Rate Call Girls Bangalore {7304373326} ❤️VVIP NISHA Call Girls in Bangalo...
Low Rate Call Girls Bangalore {7304373326} ❤️VVIP NISHA Call Girls in Bangalo...Low Rate Call Girls Bangalore {7304373326} ❤️VVIP NISHA Call Girls in Bangalo...
Low Rate Call Girls Bangalore {7304373326} ❤️VVIP NISHA Call Girls in Bangalo...
 
Top Rated Call Girls Kerala ☎ 8250092165👄 Delivery in 20 Mins Near Me
Top Rated Call Girls Kerala ☎ 8250092165👄 Delivery in 20 Mins Near MeTop Rated Call Girls Kerala ☎ 8250092165👄 Delivery in 20 Mins Near Me
Top Rated Call Girls Kerala ☎ 8250092165👄 Delivery in 20 Mins Near Me
 
Independent Call Girls Service Mohali Sector 116 | 6367187148 | Call Girl Ser...
Independent Call Girls Service Mohali Sector 116 | 6367187148 | Call Girl Ser...Independent Call Girls Service Mohali Sector 116 | 6367187148 | Call Girl Ser...
Independent Call Girls Service Mohali Sector 116 | 6367187148 | Call Girl Ser...
 
Top Rated Pune Call Girls (DIPAL) ⟟ 8250077686 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls (DIPAL) ⟟ 8250077686 ⟟ Call Me For Genuine Sex Serv...Top Rated Pune Call Girls (DIPAL) ⟟ 8250077686 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls (DIPAL) ⟟ 8250077686 ⟟ Call Me For Genuine Sex Serv...
 
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7Call Girls in Gagan Vihar (delhi) call me [🔝  9953056974 🔝] escort service 24X7
Call Girls in Gagan Vihar (delhi) call me [🔝 9953056974 🔝] escort service 24X7
 
Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...
Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...
Mumbai ] (Call Girls) in Mumbai 10k @ I'm VIP Independent Escorts Girls 98333...
 
Call Girls Varanasi Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Varanasi Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Varanasi Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Varanasi Just Call 8250077686 Top Class Call Girl Service Available
 
💕SONAM KUMAR💕Premium Call Girls Jaipur ↘️9257276172 ↙️One Night Stand With Lo...
💕SONAM KUMAR💕Premium Call Girls Jaipur ↘️9257276172 ↙️One Night Stand With Lo...💕SONAM KUMAR💕Premium Call Girls Jaipur ↘️9257276172 ↙️One Night Stand With Lo...
💕SONAM KUMAR💕Premium Call Girls Jaipur ↘️9257276172 ↙️One Night Stand With Lo...
 
(Low Rate RASHMI ) Rate Of Call Girls Jaipur ❣ 8445551418 ❣ Elite Models & Ce...
(Low Rate RASHMI ) Rate Of Call Girls Jaipur ❣ 8445551418 ❣ Elite Models & Ce...(Low Rate RASHMI ) Rate Of Call Girls Jaipur ❣ 8445551418 ❣ Elite Models & Ce...
(Low Rate RASHMI ) Rate Of Call Girls Jaipur ❣ 8445551418 ❣ Elite Models & Ce...
 

Lecture - ANCOVA 4 Slides.pdf

  • 1. 5/19/2015 1 WAQAS AHMED FAROOQUI Lecturer of Biostatistics & Research Associate Department of Research Dow University of Health Sciences Email: waqas.ahmed@duhs.edu.pk Review: Completely Randomized Design ‐ CRD (one‐factor design) The Completely Randomized design (CRD) randomly divides the experimental units into “a” groups of size “n” and randomly assigns a treatment to each group. CRD (one-way ANOVA) is the generalized form of two-sample Independent t-test. Experimental units are relatively homogeneous. Treatments are assigned to experimental units at random. Each treatment is replicated the same number of times (balanced design). Review ‐ Completely Randomized Design • Experimental Design ‐ Completely randomized design (CRD) • Sampling Design ‐ One‐way classification design CRD Model: ij i ij y       0 1    t i i so mean overall from deviation as defines are Effects Treatment  yij = the jth observation in the ith treatment µ= overall mean αi= the effect of the ith treatment eij = random error NID (0, σ2) – Normal Probability Plot of Residual Review – Correlation & Regression • Correlation – Relationship (Nature – Positive/Negative & Strength – Weak/Moderate/Strong) • Regression – Linear Relationship & Estimation Correlation Formula: 2 2 2 2 x y x y n r ; 1 1 ( x ) ( y ) x . y n n r                               bX a ŷ     2 2 b ; x y x y n a y b x x x n           Linear Regression Model:
  • 2. 5/19/2015 2 INTRODUCTION: The Analysis of covariance (ANCOVA) is another technique that occasionally useful for improving the precision of an experiment. Suppose in a experiment with a response variable Y there is another variable, such as X, and that Y is linearly dependent to X. Further more X cannot be controlled by the experimenter but can be observed along with Y. The variable X is called covariate. The ANCOVA involves adjusting the observed response variable for the effect of covariate. Analysis of Covariance (ANCOVA) is a statistical test related to ANOVA It tests whether there is a significant difference between groups after controlling for variance explained by a covariate A covariate is a continuous variable that correlates with the dependent variable Analysis of Covariance ANCOVA is the combination of linear regression model and the model employed in the ANOVA Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response (e.g. pre‐treatment score) Can be used to compare regression equations among g groups (e.g. common slopes and/or intercepts) Advantage: Analysis of Covariance Example Nineteen rats are assigned at random among four experimental groups. Each group is fed a different diet. The data are rat body weights, in kilograms, after being raised on these diets. We wish to ask whether rat weights are the same for all four diets. Fed at Different Diet Feed 1 Feed 2 Feed 3 Weight Age Weight Age Weight Age 60.8 3 68.7 4 61.9 3 67.0 3.5 67.7 2 64.2 3.7 65.0 3.2 75.0 3 63.1 3.5 68.6 3.3 73.3 5.5 66.7 4 61.7 1.2 71.8 5 60.3 2.9 Question? In determining how different Diets will affect a weight, it may be essential to take age into account. ANOVA One way ANCOVA with single factor and a covariate Involves one qualitative variable (factor), One continuous (Y, response, dependent) variable Involves one qualitative variable (factor) , one continuous( Y, response, dependent) variable and an other continuous variable (X, covariate)
  • 3. 5/19/2015 3 Analysis of Covariance Model Assume that there is a linear relationship between the response and the covariate, an appropriate statistical model is .. 1, 2,....., ( ) 1, 2,...., ij i ij ij i a Y X X j n               Where Y ij is the j th observation on the response variable taken under the i th treatment or level of the single factor. X ij is the measurement made on the covariate, is the mean of the X ij µ is the overall mean τ is the effect of the i th treatment. β is the linear regression coefficient(common slop) indicating the dependency of Yij on X ij ε ij are random error component. .. X We assume that ε ij are NID(0, σ2 ), that the slop β ≠ 0 and the relationship between Yij and X ij is linear, that the regression coefficients for each treatment are identical, that the treatment effects sum to zero, and the covariates X ij is not affected by the treatment. Notice immediately previous equation, that the analysis of covariance model is a combination of the models employed in analysis of variance and regression. That is we have treatment effect {τ} as in a single factor analysis of variance and a regression coefficient β as in regression analysis. We can rewrite previous model as 1, 2 , ..... , ' 1, 2 , .... , ij i ij ij i a Y X j n              Where µ` is a constant not equal to the overall mean, which for this model is .. X     Analysis of Covariance Model (Cont..) Assumptions for ANCOVA ANOVA Assumptions: • The response variable (data) are randomly sampled (Run Test) • Group are normally distributed (Kalmogrov Simrnov (ni≥50)/ Shapiro Walk (ni<50) Test) • Variance is equal between groups (Homogeneity of Variance Test) • All measurements are independent (No Trend or Funnel Shape) • The residuals (error) are normally distributed (Q‐Q Plot for Error) Also, for ANCOVA: Linearity: relationship between covariate and dependent variable is linear Independence : covariate and treatment effect are independent (treatment do not effect covariates X because technique remove the effect of variation in) Homogeneity: Assuming that there is a common slope for the covariate effect with all levels of the experimental factor regression slops Hypotheses for ANCOVA • H0 and H1 need to be stated slightly differently for an ANCOVA than a regular ANOVA • H0: the group means are equal after controlling for the covariate • H1: the group means are not equal after controlling for the covariate The model allows to estimate the factor effects through estimation of the µ. One can also test for significant differences in the effects due to the factor levels by testing 0 1 2 3 : . . . . : a a i H H a t l e a s t t w o d i f f e r          Testing for Treatment Effect
  • 4. 5/19/2015 4 Testing for Regression Coefficient Likewise, one can estimate the effect of the covariate on the response through the estimation of β. One can also test whether the covariate has a statistically significant effect on the response by testing 0 : 0 : 0 a H H     If we fail to reject null hypothesis then we no need to run ANCOVA But if null hypothesis is rejected then the adjustment provided by the ANCOVA is necessary . . . .. ˆ( ) i i i Adjusted Y Y X X     23‐14 Example Four different formulations of an industrial glue are being tested. The tensile strength (response) of the glue is known to be related to the thickness as applied. Five observations on strength (Y) in pounds, and thickness (X) in 0.01 inches are made for each formulation. Here: • There are t=4 treatments (formulations of glue). • Covariate X is thickness of applied glue. • Each treatment is replicated n=5 times at different values of X. Formulation Strength (Pounds) Thickness (Inches) 1 46.5 13 1 45.9 14 1 49.8 12 1 46.1 12 1 44.3 14 2 48.7 12 2 49.0 10 2 50.1 11 2 48.5 12 2 45.2 14 3 46.3 15 3 47.1 14 3 48.9 11 3 48.2 11 3 50.3 10 4 44.7 16 4 43.0 15 4 51.0 10 4 48.1 12 4 46.8 11 First we look is there any relationship between strength (Y) and thickness (X). For this purpose we made scatter plot between strength (Y) and thickness (X). There is a strong suggestion of a linear relationship between strength and thickness, and seems appropriate to remove the effect of thickness on strength by ANCOVA Analysis of Covariance (SPSS Data) ANCOVA.sav
  • 5. 5/19/2015 5 Analysis of Covariance (Scatter Plot) ANCOVA.sav Now we run ANCOVA WHY ? Because there is relationship between dependent variable (strength) and a covariate (thickness) Analysis of Covariance (ANCOVA) ANCOVA.sav These are the unadjusted means of strength (dependent variable) Analysis of Covariance (ANCOVA)
  • 6. 5/19/2015 6 Also Effect size for Formulation is 0.103 (10%) so we can say there is no large contribution of different formulation levels in increasing or decreasing glue strength. 0 1 2 3 4 : : a i H H a t l e a s t t w o d i f f e r         Testing for Formulation Level of significance : α = 0.05 We will reject null hypothesis if Fcal > Ftab or P‐value ≤ α Results : P‐value = 0.640 Analysis of Covariance (ANCOVA) Since P‐value for Formulation is 0.640 so we can not reject the null hypothesis of no effect of formulation, hence there is no strong evidence that the industrial glue by formulation differ in strength. Confirmation of Non significance of formulation by Post Hoc (LSD) tests Non of the pair is significant confirming the over all non significance of factor formulation. Also Effect size for thickness is 0.685 (68.5%) so we can say there is a large contribution of thickness in increasing or decreasing glue strength. Testing for Regression Coefficient ( Slope ; β1) Level of significance : α = 0.05 We will reject null hypothesis if Fcal > Ftab or P‐value ≤ α Results : P‐value = 0.000 (< 0.001) Analysis of Covariance (ANCOVA) Since P‐value for thickness is less than 0.001 so we reject the null hypothesis β1=0, hence there is a linear relationship between strength and thickness. 0 1 1 : 0 : 0 a H H     Adjusted means of strength (dependent variable) Adjusted means of Dependent variable These adjusted means can also be obtained manually by using the equation . . . .. ˆ( ) i i i Adjusted Y Y X X     unadjusted Now the adjustment provided by the ANCOVA is necessary.
  • 7. 5/19/2015 7 . . . .. ˆ( ) i i i Adjusted Y Y X X     Unadjusted Unadjusted Mean Strength Adjusted Mean Strength 46.520 47.045 48.300 47.680 48.160 47.921 46.720 47.054 Comparing the adjusted mean with unadjusted mean, we note that the adjusted means are much closer together, another indication that the ANCOVA was necessary. THANK YOU