product_moments
product_moments(x)Product moments of a sample.
Mirrors the C# Statistics.ProductMoments: the mean, sample standard deviation, and the bias-corrected skewness and excess kurtosis. Requires at least 4 observations (returns nan otherwise, matching the C# behavior).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| x | array_like | required |
Returns
| Name | Type | Description |
|---|---|---|
| dict | Keys mean, sd, skewness, kurtosis. |
Examples
>>> from corehydropy import product_moments
>>> round(product_moments([2.1, 3.4, 1.8, 4.9, 3.3, 2.7, 5.1, 3.9])["mean"], 4)
3.4