next | previous | forward | backward | up | top | index | toc | Macaulay2 website
RandomMonomialIdeals :: Mean

Mean -- a summary statistic for a list of objects


A sample mean is one of the basic summary statistics for a sample of randomly generated objects (or any list of objects in general). The mean value statistic for some property of a list of objects is stored under the key Mean in the hash table returned by the function statistics.

i1 : s=sample(ER(6,3,0.2),100);
i2 : myStats = statistics(s, degree@@ideal);
i3 : myStats.Mean

o3 = --

o3 : QQ

The last line returns the average degree of the 100 ideals in the sample $s$.

See also

For the programmer

The object Mean is a symbol.