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
| 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(round(statistics.NormalDist().pdf(0), 6))