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.



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