summary_statistics

summary_statistics(x)

Summary statistics for a sample.

A one-shot description of x: count, extremes, mean, variance, and the standard shape statistics, computed via the C# RunningStatistics class (Welford’s algorithm) with no prior state. For a chunked, resumable version see :func:running_statistics.

Parameters

Name Type Description Default
x array_like required

Returns

Name Type Description
dict Keys n, minimum, maximum, mean, variance, sd, cv, skewness, kurtosis, and the four raw moments m1 to m4.

Examples

>>> from corehydropy import summary_statistics
>>> round(summary_statistics([2, 4, 4, 4, 5, 5, 7, 9])["mean"], 6)
5.0