Data analysis requires statistical functions:
Mean(Array) provides the mean of the given array along the rows dimension. Examples:
Mean({1,2,3}) returns 2
Mean({{1,2,3},{4,5,6}) returns {2.5,3.5,4.5}
Sum(Array) provides the sum of the given array along the rows dimension. Examples:
Sum({1,2,3}) returns 6
Sum({{1,2,3},{4,5,6}) returns {5,7,9}
Min(Array) provides the minimum value of the given array along the rows dimension. Examples:
Min({1,2,3}) returns 1
Min({{1,2,7},{4,5,6}) returns {1,2,6}
Max(Array) provides the maximum value of the given array along the rows dimension. Examples:
Max({1,2,3}) returns 3
Max({{1,7,3},{2,5,3}) returns {2,7,3}
Variance(Array) provides the variance of the given array along the rows dimension. Examples:
Variance({1,2,4}) returns 2.333
Variance({{1,2,4},{4,5,6}) returns {4.5,4.5,2}
StdDev(Array) provides the standard deviation of the given array along the rows dimension. Examples:
StdDev({1,2,4}) returns 1.528
StdDev({{1,2,4},{4,5,6}) returns {2.121,2.121,1.414}
All of the above functions have equivalents for other array dimensions:
MeanCols()
MeanDepth()
MaxCols()
MaxDepth()
MinCols()
MinDepth()
SumCols()
SumDepth()
VarianceCols()
VarianceDepth()
StdDevCols()
StdDevDepth()
Examples:
Mean({{1,2,3},{4,5,6}) returns {2.5,3.5,4.5}
2.5 is the mean of 1 and 4
3.5 is the mean of 2 and 5
4.5 is the mean of 3 and 6
MeanCols({{1,2,3},{4,5,6}) returns {2,5}
2 is the mean of 1, 2 and 3
5 is the mean of 4, 5 and 6