Previous Up Next

14.5.1  Lists

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

Let L be a list.

Examples

mean([3,4,2])
     
3           
stddev([3,4,2])
     
6
3
          
stddevp([3,4,2])
     
1           
variance([3,4,2])
     
2
3
          
median([0,1,3,4,2,5,6])
     
3.0           

To obtain the first quartile:

quantile([0,1,3,4,2,5,6],0.25)
     
1.0           

To obtain the median:

quantile([0,1,3,4,2,5,6],0.5)
     
3.0           

To obtain the third quantile:

quantile([0,1,3,4,2,5,6],0.75)
     
5.0           
quartiles([0,1,3,4,2,5,6])
     






0.0
1.0
3.0
5.0
6.0






          
boxwhisker([0,1,3,4,2,5,6])

Previous Up Next