Quasi-Markov model