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$.