arch.univariate.Normal.moment

Normal.moment(n: int, parameters: Sequence[float] | ndarray[tuple[int], dtype[float64]] | Series | None = None) → float[source]

Compute the moment of order n.

Parameters:
n: int

Order of moment. NaN is returned if n is negative.

parameters: Sequence[float] | ndarray[tuple[int], dtype[float64]] | Series | None = None

Distribution parameters. Use None for parameterless distributions.

Returns:

Calculated moment.

Return type:

float

Raises:
  • TypeError – If n is not an integer, or parameters cannot be converted to float64.

  • ValueError – If parameters does not have one element for each shape parameter, contains NaN or inf, or is outside the bounds of the distribution.