Statistics How To

Within-Group Variation: Definition and Examples

ANOVA > Within-Group Variation

What is Within-Group Variation?

Formula for within-group variation.

Formula for within-group variation.

Within-group variation (sometimes called error group or error variance) is a term used in ANOVA tests. It refers to variations caused by differences within individual groups (or levels). In other words, not all the values within each group (e.g. means) are the same. These are differences not caused by the independent variable.

Each sample is looked at on its own. In other words, no interactions between samples are considered. For example, let’s say you had four groups, representing drugs A B C D, with each group composed of 20 people in each group and you’re measuring people’s cholesterol levels. For within-group variation, you’ll look at variances in cholesterol levels for people in group A, without considering groups B,C, and D. Then you would look at cholesterol levels for people in group B, without considering groups A,C, and D. And so on.

ANOVA Output

Within-group variation shown on ANOVA output.

Within groups variance shown on Excel ANOVA output.



Within-group variation is reported in ANOVA output as SS(W) or which means Sum of Squares Within groups or SSW: Sum of Squares Within. It is intrinsically linked to between group variation (Sum of Squares between), variance difference caused by how groups interact with each other. This is because the whole point of ANOVA is to compare the ratio of within group variance and between group variance. In fact, the core of the ANOVA test — the F statistic — is calculated by dividing the between group variance by the within group variance.

If the variance caused by interactions between different samples is much greater than the variance found inside values in a single group, that indicates the means aren’t equal.

Degrees of freedom for Within-group variaton equals the sum of the individual degrees of freedom for each sample in the test.

------------------------------------------------------------------------------

Need help with a homework or test question? Chegg offers 30 minutes of free tutoring, so you can try them out before committing to a subscription. Click here for more details.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments? Need to post a correction? Please post on our Facebook page.
Within-Group Variation: Definition and Examples was last modified: June 2nd, 2018 by Stephanie