Statistics


Computing the mean:
mean ( seq -- x )

geometric-mean ( seq -- x )

harmonic-mean ( seq -- x )


Computing the median:
median ( seq -- x )

lower-median ( seq -- elt )

upper-median ( seq -- elt )

medians ( seq -- lower upper )


Computing the mode:
mode ( seq -- x )


Computing the population standard deviation, standard error, and variance:
population-std ( seq -- x )

population-ste ( seq -- x )

population-var ( seq -- x )


Computing the sample standard deviation, standard error, and variance:
sample-std ( seq -- x )

sample-ste ( seq -- x )

sample-var ( seq -- x )


Computing the nth delta-degrees-of-freedom statistics:
std-ddof ( seq n -- x )

ste-ddof ( seq n -- x )

var-ddof ( seq n -- x )


Computing the range and minimum and maximum elements:
range ( seq -- x )

minmax ( seq -- min max )


Computing the kth smallest element:
kth-smallest ( seq k -- elt )


Counting the frequency of occurrence of elements:
Computing histograms

Computing cumulative sequences:
Computing cumulative sequences

Calculating discounted cumulative gain:
dcg ( scores -- dcg )

ndcg ( scores -- ndcg )