ANCOVA
From Wikipedia, the free encyclopedia
ANCOVA, or analysis of covariance is a general linear model with one continuous explanatory variable and one or more factors. ANCOVA is a merger of ANOVA and regression for continuous variables. ANCOVA tests whether certain factors have an effect after removing the variance for which quantitative predictors (covariates) account. The inclusion of covariates can increase statistical power because it accounts for some of the variability.
Contents |
[edit] Equations
[edit] One-factor ANCOVA analysis
One factor analysis is appropriate when dealing with more than 3 populations; k populations. The single factor has k levels equal to the k populations. n samples from each population are chosen random from their respective population.
[edit] Calculating the sum of squared deviates for the independent variable X and the dependent variable Y
The sum of squared deviates (SS): SSTy, SSTry, and SSEy must be calculated using the following equations for the dependent variable, Y. The SS for the covariate must also be calculated, the two necessary values are SSTx and SSEx.
The total sum of squares determines the variability of all the samples. nT represents the total number of samples:
The sum of squares for treatments determines the variability between populations or factors. nk represents the number of factors:
The sum of squares for error determines the variability within each population or factor. nn represents the number of samples with a given population:
The total sum of squares is equal to the sum of the sum of squares for treatments and the sum of squares for error:
[edit] Calculating the covariance of X and Y
The total sum of square covariates determines the covariance of X and Y within all the data samples:
[edit] Adjusting SSTy
The correlation between X and Y is .
The proportion of covariance is subtracted from the dependent, SSy values:
- SSTryadj = SSTyadj − SSEyadj
[edit] Adjusting the means of each population k
The mean of each population is adjusted in the following manner:
[edit] Analysis using adjusted sum of squares values
Mean squares for treatments where dfTr is equal to NT − k − 1. dfTr is one less than in ANOVA to account for the covariance and dfE = k − 1:
The F statistic is