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

NameTypeDescription
xreal numberInput 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))
Python Reference