MS within, or mean square within, is a statistical concept that represents the average variance within the groups or samples being compared in an analysis of variance (ANOVA) test. It is a measure of the variation in the data that is not explained by the differences between the groups, but rather by the natural variation within each group.