Statistical aggregates

Statistical aggregates are similar to the avg aggregate in that:

Unlike the avg aggregate, however, the results are:

Formulas

Figure 2-1: The formula for population-related statistical aggregate functions

The formula for population-related statistical aggregate functions.

Figure 2-2: The formula for sample-related statistical aggregate functions

The formula for sample-related statistical aggregate functions.

The essential difference between the two formulas is the division by n-1 instead of n.

These two functions are similar, but are used for different purposes: