Sum of squares in ANOVA (source code)

= Sum of squares in ANOVA
{title2=$SS=Y^TPY$}

= Sums of squares in ANOVA
{synonym}

For an <orthogonal projection matrix> $P$, a <sum of squares in ANOVA> is $Y^TPY=\|PY\|^2$. Mutually orthogonal projections yield an additive decomposition of total squared response magnitude. Removing the grand mean gives the corrected total.