se_mean
se_mean(x)Standard error of a mean (point estimate).
sd(x) / sqrt(n), the sampling error of a mean such as an average 1-5 rating: the sample standard deviation divided by the square root of the (non-missing) sample size. It shrinks as the sample grows, and is the basis of the margin of error you quote for an average rating. Fewer than two values gives missing (no spread to estimate).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| x | list or Series | Numbers. Missing values are ignored. | required |
Returns
| Name | Type | Description |
|---|---|---|
| float | The standard error, or NaN if fewer than two non-missing values are present. |
See Also
se_prop, rse, margin_of_error, diagnose
Examples
>>> se_mean([4, 5, 3, 4, 5, 2, 4])