StabilityAssessment.is_stationary#

classmethod StabilityAssessment.is_stationary(ar_coeffs, *, tol=1e-8)[source]#

Convenience predicate: is the AR/VAR strictly stationary?

The strict verdict of assess_stability() without the record: True only when every companion eigenvalue has modulus below 1 - tol. Unit roots, and stable roots within tol of the circle, return False.

Parameters:
  • ar_coeffs (ArrayLike) – Coefficients A_1, ..., A_p; shape (p,) or (p, k, k). Empty coefficients are stationary.

  • tol (float) – Modulus tolerance.

Return type:

bool

Returns:

True iff all companion eigenvalues lie strictly inside the unit circle, by more than tol.

Raises:
  • SpecificationError – If tol is negative and ar_coeffs is non-empty.

  • DimensionError – If ar_coeffs is neither rank 1 nor a stack of square matrices.

  • NumericalError – If ar_coeffs contains non-finite values, or the eigenvalue computation returns them.

Example

>>> _StabilityAssessment.is_stationary([1.5])
False
>>> _StabilityAssessment.is_stationary([0.5, -0.3])
True
>>> _StabilityAssessment.is_stationary([1.0])
False