# Statistics

### Overview

Statistics functions like mean, median, min, max, and stdev take a list as an argument and return a number.

Supported Statistics Functions:

total(x_1) sum of all elements in a list

length(x_1) number of elements in a list

mean(x_1)

median(x_1)

min(x_1)

max(x_1)

quantile(x_1, p)

quartile(x_1,p)

stdev(x_1) sample standard deviation

stdevp(x_1) population standard deviation

var(x_1) variance

varp(x_1) population variance

cov(x_1, x_2) covariance

corr(x_1, x_2) Pearson correlation coefficient of two lists

random(x_1) Select a random number from a list

nCr(n, r) Number of combinations

nPr(n, r) Number of permutations

n! Factorial

Other functions for working with lists:

join(x_1, x_2) join two or more lists

sort(x_1) sort a list in ascending order

shuffle(x_1) shuffle a list

10 out of 11 found this helpful
Have more questions? Submit a request

• Per H. Christiansen

I miss a more detailed explanation,

for instance you could supply the example

mean (1, 2, 3, 4, 5) = 3 with

= (1 + 2 + 3 + 4 + 5) / 5 etc.

• Mkdudley

It seems as though the MAD function isn't working. Is there an updated function for this?

• Michael McArthur