Macaulay2 » Documentation
Packages » RandomMonomialIdeals :: Mean
next | previous | forward | backward | up | index | toc

Mean -- a summary statistic for a list of objects

Description

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

     89
o3 = --
     20

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.