Wilang Documentation1.0.0+4

Statistics#

Summaries#

mean, median, mode, min, max, sum, cumsum, std, variance, mad, and quantileSeq all accept compatible data.

Example
mean([2,4,6])
median([2,8,4])
std([2,4,6])
variance([2,4,6])
sum([2,4,6])

Normalization and dimensions#

std and variance take a normalization option: "unbiased", "uncorrected", or "biased". Pick the one that matches whether your data is a sample or a whole population. A matrix summary can reduce one dimension at a time, and the function page lists the accepted overloads. In cell syntax, matrix dimensions and indices start at 1.

Correlation and ordering#

Use corr for correlation, sort for ordering, and partitionSelect for selecting by rank.

Example
corr([1,2,3],[2,4,6])
sort([3,1,2])

Pair series of equal length, and check for empty or constant data. Not every input gives a meaningful statistic.

A note on prod#

The app's prod is a symbolic product and does not accept a numeric array. Multiply a short list explicitly instead. See the prod reference for symbolic products.

Probability and random values · All functions