Skip to contents

Computes the spectral radius of a square matrix, defined as the maximum modulus (absolute value) of its eigenvalues. The spectral radius is often used to assess the stability of systems such as vector autoregressive (VAR) models: a system is considered stationary if the spectral radius of its transition matrix is strictly less than 1.

Usage

SpectralRadius(x)

Arguments

x

Numeric square matrix.

Value

Numeric value representing the spectral radius of x.

Author

Ivan Jacob Agaloos Pesigan

Examples

# Matrix with eigenvalues less than 1
x <- matrix(
  data = c(
    0.5, 0.3,
    0.2, 0.4
  ),
  nrow = 2
)
SpectralRadius(x)
#> [1] 0.7

# Matrix with eigenvalues greater than 1
y <- matrix(
  data = c(
    1.2, 0.3,
    0.4, 0.9
  ),
  nrow = 2
)
SpectralRadius(y)
#> [1] 1.427492