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

StdDev -- a summary statistic for a list of objects


A sample standard deviation is -- along with sample mean -- one of the basic summary statistics for a sample of randomly generated objects (or any list of objects in general). The standard deviation value statistic for some property of a list of objects is stored under the key StdDev 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.StdDev

o3 = 5.11346262331114

o3 : RR (of precision 53)

The last line returns the standard deviation of the degrees of the 100 ideals in the sample $s$. Note that it is more meaningful to look at this value along with the mean value rather than as a stand-alone statistic.

See also

For the programmer

The object StdDev is a symbol.