Statistics Methods

statistics.NormalDist.pdf()

Evaluate the normal probability density at x. A density is not the probability of an individual point and can exceed one; sigma must be positive.

Formal Syntax & Structure

python syntaxpython
distribution.pdf(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(round(statistics.NormalDist().pdf(0), 6))
Python Reference