arch.univariate.excess_kurtosis

arch.univariate.excess_kurtosis(std_resid: Sequence[float] | ndarray[tuple[int], dtype[float64]] | Series) → float[source]

Sample excess kurtosis of standardized residuals.

Parameters:
std_resid: Sequence[float] | ndarray[tuple[int], dtype[float64]] | Series

Standardized residuals. Non-finite observations are removed before computing the statistic, since the residuals of a fitted model are NaN outside the estimation sample.

Returns:

Sample excess kurtosis computed using sample central moments.

Return type:

float

Raises:
  • TypeError – If std_resid cannot be converted to numbers.

  • ValueError – If std_resid is not 1-d or has no finite observation.