Home   >   User Resources   >   Online Help   >   apaMarkov.IsAperiodic
 

 

Function index Version 3.0.0

apaMarkov.IsAperiodic(TransProbs, maxPower)

Excel=apaMarkov.IsAperiodic(TransProbs, maxPower)

Result

Checks whether a Markov chain is aperiodic.

Syntax

TransProbs: matrix of transition probabilities, each row summing to one

maxPower: optional; computational cutoff, i.e. the maximum matrix power. Default: 0 (5*n^2 if the value is 0 or negative). Can be set as low as (n-1)^2+1

Algorithm

For each state, examine return times using powers of the transition matrix. A chain is aperiodic if the greatest common divisor of possible return times is 1 for all states in the communicating class. The function uses repeated matrix powers up to maxPower to test this condition and returns TRUE if the chain is aperiodic, otherwise FALSE.