lpdf#

Normal.lpdf(X)[source]#

Log of the Probability Density Function (LPDF).

The log-PDF for the Normal distribution is:

\[\ln f(x) = -\ln(\sigma) - \frac{1}{2} \ln(2\pi) - \frac{(x - \mu)^2}{2\sigma^2}\]
Parameters:

X (ArrayLike) – The input data points at which to evaluate the LPDF.

Returns:

The log-PDF values corresponding to each point in X.

Return type:

NDArray[np.float64]