Stochastic Process, Markov Chains, Banking.
useful for chains with more than two states. The concepts discussed here can be extended to model more complex dynamics, such as several states, state-dependent repayment amounts, and time-dependent transition probabilities. The repository with the R code to reproduce the diagram and calculations