transitiematrix
A transitiematrix, commonly referred to in English as a transition matrix, is a matrix used to describe the probabilities of moving between states in one step of a stochastic process, most often a discrete-time Markov chain. For a finite state space S = {1, ..., N}, the transition matrix P has entries p_ij = P(X_{t+1} = j | X_t = i). By construction, all entries are nonnegative and the rows sum to one, so P is a row-stochastic matrix. The matrix encodes how likely the process is to transition from each current state i to every possible next state j.
One-step transition probabilities generalize to n steps via P^n: (P^n)_{ij} = P(X_{t+n} = j | X_t = i). The study
Special cases include absorbing transitions, where certain states are absorbing (p_ii = 1). For transient states, the
In continuous-time models, the analogous object is the generator matrix Q; the transition probabilities over time