Processing a list of values in the terminal

Given a list of numerical values, how can you compute statistical functions on them?.»