Sum of squares

In mathematics, statistics and elsewhere, sums of squares occur in a number of contexts: