Introduction. After the crises, lenders realized the importance of assessing the risk of default on loan portfolios in various economic conditions. Modeling of credit risk assessment occurs mainly using internal ratings of banks based on probabilistic models of defaults of borrowers over a certain period of time. Theoretical models. Three models are considered. The fi rst is a naive Markov model with R states. The transition matrix is given. The second is a Markov model with multiple states with covariates.