deeptime.markov.tools.estimation.tmatrix_cov¶
- deeptime.markov.tools.estimation.tmatrix_cov(C, k=None)¶
Covariance tensor for non-reversible transition matrix posterior.
- Parameters:
C ((M, M) ndarray or scipy.sparse matrix) – Count matrix
k (int (optional)) – Return only covariance matrix for entires in the k-th row of the transition matrix
- Returns:
cov – Covariance tensor for transition matrix posterior
- Return type:
(M, M, M) ndarray
Notes
The posterior of non-reversible transition matrices is
Each row in the transition matrix is distributed according to a Dirichlet distribution with parameters given by the observed transition counts .
The covariance tensor is zero whenever so that only is returned.