Previous Up Next

6.42.9  Statistics on lists: mean variance stddev stddevp median quantile quartiles boxwhisker

The functions described here can be used if a statistics series is contained in a list. See also Section 6.45.16 for statistics on matrices and Section 9 for more general statistics.

Let L be a list.


Example.
Define the list A by:
Input:

A:=[0,1,2,3,4,5,6,7,8,9,10,11]:;

Then:
Input:

mean(A)

Output:

11
2

Input:

stddev(A)

Output:

2
12
 
429

Input:

quantile(A,0.1)

Output:

1.0

Input:

quantile(A,0.25)

Output:

2.0

Input:

median(A)

or:

quantile(A,0.5)

Output:

5.0

Input:

quantile(A,0.75)

Output:

8.0

Input:

quantile(A,0.9)

Output:

10.0

Input:

max(A)

Output:

11

Input:

quartiles(A)

Output:







0.0
2.0
5.0
8.0
11.0







Previous Up Next