Statistics Methods
statistics.NormalDist.zscore()
Express x as signed standard deviations from the distribution mean; requires nonzero sigma.
Formal Syntax & Structure
python syntaxpython
distribution.zscore(x)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | real number | Input real value. |
Return Value
float
Floating-point result; finite precision and domain restrictions apply.
Working Example
Example Snippetpython
import statisticsprint(statistics.NormalDist(10, 2).zscore(14))