pyfan.stats.markov.transprobcheck

The pyfan.stats.markov.transprobcheck checks markov transition row sums.

A markov transition matrix where each row does not sum up to 1 due to simulation errors. Check if the gap between 1 and the row values are too big, and then normalize.

import pyfan.stats.markov.transprobcheck as pyfan_stats_transprobcheck

Includes method markov_trans_prob_check() and markov_condi_prob2one().

Functions

markov_condi_prob2one(mt_trans)

Rescale markov transitions rows to sum to 1

markov_trans_prob_check(mt_trans[, …])

Markov conditional transition probability check