Statistics


Computing the mean:
Image
mean ( seq -- x )

Image
geometric-mean ( seq -- x )

Image
harmonic-mean ( seq -- x )


Computing the median:
Image
median ( seq -- x )

Image
lower-median ( seq -- elt )

Image
upper-median ( seq -- elt )

Image
medians ( seq -- lower upper )


Computing the mode:
Image
mode ( seq -- x )


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

Image
population-ste ( seq -- x )

Image
population-var ( seq -- x )


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

Image
sample-ste ( seq -- x )

Image
sample-var ( seq -- x )


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

Image
ste-ddof ( seq n -- x )

Image
var-ddof ( seq n -- x )


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

Image
minmax ( seq -- min max )


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


Counting the frequency of occurrence of elements:
Image Computing histograms

Computing cumulative sequences:
Image Computing cumulative sequences

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

Image
ndcg ( scores -- ndcg )