scieee AI-readable full text Open interactive document viewer

Loan modifications and risk of default: a Markov chains approach

Almeida, Filipa Cardoso de

Abstract

With the housing crisis, credit risk analysis has had an exponentially increasing importance, since it is a key tool for banks’ credit risk management, as well as being of great relevance for rigorous regulation. Credit scoring models that rely on logistic regression have been the most widely applied to evaluate credit risk, more specifically to analyze the probability of default of a borrower when a credit contract initiates. However, these methods have some limitations, such as the inability to model the entire probabilistic structure of a process, namely, the life of a mortgage, since they essentially focus on binary outcomes. Thus, there is a weakness regarding the analysis and characterization of the behavior of borrowers over time and, consequently, a disregard of the multiple loan outcomes and the various transitions a borrower may face. Therefore, it hampers the understanding of the recurrence of risk events. A discrete-time Markov chain model is applied in order to overcome these limitations. Several states and transitions are considered with the purpose of perceiving a borrower’s behavior and estimating his default risk before and after some modifications are made, along with the determinants of post-modification mortgage outcomes. Mortgages loans are considered in order to take a reasonable timeline towards a proper assessment of different loan performances. In addition to analyzing the impact of modifications, this work aims to identify and evaluate the main risk factors among borrowers that justify transitions to default states and different loan outcomes.

Full text

ii                             LOANMODIFICATIONSANDRISKOFDEFAULT:A MARKOVCHAINSAPPROACH Filipa Cardoso de Almeida Dissertationpresentedasthepartialrequirementfor obtainingaMaster'sdegreeinStatisticsandInformation Management  ii   NOVAInformationManagementSchool InstitutoSuperiordeEstatísticaeGestãodeInformação UniversidadeNovadeLisboa  LOANMODIFICATIONSANDRISKOFDEFAULT: AMARKOVCHAINSAPPROACH by  FilipaCardosodeAlmeida      DissertationpresentedasthepartialrequirementforobtainingaMaster'sdegreeinStatisticsand InformationManagement,SpecializationinRiskAnalysisandManagement   Advisor:DoctorBrunoMiguelPintoDamásio    March2020  iii ACKNOWLEDGMENTS The realization of this dissertation would not be possible without the help and support of several people, to whom I would like to leave my most sincere gratitude. First of all, I would like to thank my advisor, Bruno Damásio, for all the support and accompaniment throughout the development of this work, for all the advice and for always taking me further. A special thanks to Carolina Vasconcelos for the help given in the development of this thesis. I would also like to thank my friends that accompanied me the most in this journey, Bruna, Luis Miguel, Joana, and Bigo, for all the hours we spent doing work together, studying and also decompressing from all these responsibilities. A huge appreciation to all my friends who always understood my more considerable absence during the development of this thesis, Inês, Sara, Diogo and Sofia, who listened to me, gave me advice and strengthened me so that this phase of my life resulted with the greatest success. Last but not least, my most enormous gratitude to my family, for always being there and giving me fundamental support so that I never give up. To my mother, Paula, my sister Beatriz, my aunt and uncle, Carla and Raúl, my grandparents, Conceição and António and my boyfriend, Fábio, thank you, without you none of this would have been possible. This dissertation marks the end of a phase in my life that, without all of you, would not have been possible to achieve. For this, I leave here my most sincere thanks to all. iv ABSTRACT With the housing crisis, credit risk analysis has had an exponentially increasing importance, since it is a key tool for banks’ credit risk management, as well as being of great relevance for rigorous regulation. Credit scoring models that rely on logistic regression have been the most widely applied to evaluate credit risk, more specifically to analyze the probability of default of a borrower when a credit contract initiates. However, these methods have some limitations, such as the inability to model the entire probabilistic structure of a process, namely, the life of a mortgage, since they essentially focus on binary outcomes. Thus, there is a weakness regarding the analysis and characterization of the behavior of borrowers over time and, consequently, a disregard of the multiple loan outcomes and the various transitions a borrower may face. Therefore, it hampers the understanding of the recurrence of risk events. A discrete-time Markov chain model is applied in order to overcome these limitations. Several states and transitions are considered with the purpose of perceiving a borrower’s behavior and estimating his default risk before and after some modifications are made, along with the determinants of post-modification mortgage outcomes. Mortgages loans are considered in order to take a reasonable timeline towards a proper assessment of different loan performances. In addition to analyzing the impact of modifications, this work aims to identify and evaluate the main risk factors among borrowers that justify transitions to default states and different loan outcomes. KEYWORDS Loan Modification; Default; Markov Chains; Self-Organizing Maps; Credit Risk v INDEX 1. Introduction .................................................................................................................. 1 Background and problem identification ................................................................ 1 Study Objectives .................................................................................................... 2 Study Relevance and Importance .......................................................................... 3 2. Literature Review ......................................................................................................... 4 3. Methodology ................................................................................................................ 8 Self-Organizing Maps ............................................................................................. 8 3.1.1. Theoretical Framework .................................................................................. 8 Markov Chains ....................................................................................................... 9 3.2.1. Theoretical Framework .................................................................................. 9 4. Data............................................................................................................................. 14 Data Set ............................................................................................................... 14 Data Preparation ................................................................................................. 16 5. Results and Discussion ................................................................................................ 19 SOM ..................................................................................................................... 19 5.1.1. Modified Credits ........................................................................................... 19 5.1.2. Unmodified Credits ...................................................................................... 28 Markov Chains ..................................................................................................... 39 5.2.1. Modified Credits ........................................................................................... 39 5.2.2. Unmodified Credits ...................................................................................... 43 6. Conclusions ................................................................................................................. 52 7. Limitations and Recommendations for Future Works ............................................... 54 8. Bibliography ................................................................................................................ 55 9. Appendix ..................................................................................................................... 58 10. Annexes ................................................................................................................ 59 vi LIST OF FIGURES Figure 5.1 - Training Progress of Modified Credits ................................................................................ 20 Figure 5.2 - Node Counts of Modified Credits ....................................................................................... 20 Figure 5.3 - U-Matrix of Modified Credits ............................................................................................. 21 Figure 5.4 - Optimal Number of Clusters of Modified Credits .............................................................. 22 Figure 5.5 - Clusters of Modified Credits ............................................................................................... 22 Figure 5.6 - Training Progress of Unmodified Credits ........................................................................... 29 Figure 5.7 - Node Counts of Unmodified Credits .................................................................................. 29 Figure 5.8 - U-Matrix of Unmodified Credits ......................................................................................... 30 Figure 5.9 - Optimal Number of Clusters of Unmodified Credits .......................................................... 31 Figure 5.10 - Clusters of Unmodified Credits ........................................................................................ 31 vii LIST OF TABLES Table 4.1 - Descriptive Statistics Total Data Set .................................................................................... 16 Table 4.2 - States of the Markov Chain Methodology .......................................................................... 18 Table 5.1 - Descriptive statistics (Modified Credits – Cluster 1) ........................................................... 23 Table 5.2 - Descriptive Statistics (Modified Credits – Cluster 2) ........................................................... 25 Table 5.3 - Descriptive Statistics (Modified Credits – Cluster 3) ........................................................... 26 Table 5.4 - Descriptive statistics (Modified Credits – Cluster 4) ........................................................... 27 Table 5.5 - Descriptive statistics (Unmodified Credits – Cluster 1) ....................................................... 33 Table 5.6 - Descriptive statistics (Unmodified Credits – Cluster 2) ....................................................... 34 Table 5.7 - Descriptive statistics (Unmodified Credits – Cluster 3) ....................................................... 35 Table 5.8 - Descriptive statistics (Unmodified Credits – Cluster 4) ....................................................... 37 Table 5.9 - Transition Probability Matrix (Modified Credits - Cluster 1) ............................................... 39 Table 5.10 - Transition Probability Matrix (Modified Credits - Cluster 2) ............................................. 40 Table 5.11 - Transition Probability Matrix (Modified Credits - Cluster 3) ............................................. 40 Table 5.12 - Transition Probability Matrix (Modified Credits - Cluster 4) ............................................. 40 Table 5.13 - Absorption Probabilities (Modified Credits) ...................................................................... 42 Table 5.14 - Transition Probability Matrix (Unmodified Credits - Cluster 1) ......................................... 43 Table 5.15 - Transition Probability Matrix (Unmodified Credits - Cluster 2) ......................................... 43 Table 5.16 - Transition Probability Matrix (Unmodified Credits - Cluster 3) ......................................... 44 Table 5.17 - Transition Probability Matrix (Unmodified Credits - Cluster 4) ......................................... 44 Table 5.18 - Absorption Probabilities (Unmodified Credits) ................................................................. 46 Table 5.19 - Homogeneity Tests ............................................................................................................ 49 Table 9.1 - Mean Absorption Times (Modified Credits) ........................................................................ 58 Table 9.2 - Mean Absorption Times (Unmodified Credits) ................................................................... 58 Table 10.1 - Acquisition Data Elements (source: Fannie Mae) ............................................................. 59 Table 10.2 - Performance Data Elements (source: Fannie Mae) .......................................................... 61 viii LIST OF ABBREVIATIONS AND ACRONYMS ANN Artificial Neural Network BMU Best Matching Unit CART Classification and Regression Trees DT Decision Tree DTI Debt to Income HAMP Home Affordable Modification Program HARP Home Affordable Refinancing Program HOMC Higher-Order Markov Chain KNN K-Nearest Neighbor LTV Loan-to-Value MARS Multivariate Adaptive Regression Splines MCM Markov Chain Model MMC Multivariate Markov Chain REO Real Estate Owned SOM Self-Organizing Map SVM Support Vector Machine TARP Troubled Asset Relief Program TPM Transition Probability Matrix 1 1. INTRODUCTION BACKGROUND AND PROBLEM IDENTIFICATION Since the period of the global financial crisis that began in 2007, we have been observing an upward concern about credit risk management, as a deficit loan management was one of the central pillars of this crisis. The global financial crisis has brought attention to several areas where there was a need for the improvement of many features, especially in banking management regulation and credit risk management. Historically, loan modifications were not a very common solution, something that changed with the financial crisis, since during this period there was a considerable increase in the inability of borrowers to repay their loans – in the period that preceded the financial crisis, in the United States, the percentage of non-performing loans was around 1.6%, while at the peak of this financial crisis (around 2010), this percentage increased to about 7.5% (CEIC, 2011). Therefore, loan modifications became a viable solution for banks not to lose the full amount of mortgages, thus promoting repayments by distressed borrowers. Since it is not a recent reality, the studies on loan modifications’ effects are few, making this a significant problem. Furthermore, there continues to exist a large proportion of investigations solely related to the probability of default, essentially a binary analysis, using traditional credit scoring models to attribute classifications on the credit risk level of clients and using linear regression models. However, many issues, as so or even more critical, are fundamental when we discuss credit risk management. These concerns are, namely: ▪ To understand why a customer moves from one state to another; ▪ To assess the probability of a customer going from a state, for example, of delinquency to a normal state, overcoming the difficulty of fulfilling their obligations on credit; ▪ To recognize the best credit conditions for both the bank and the customer, so that the bank guarantees the receipt of all agreed payments and also so that the conditions are not too rigid for the customer; ▪ To notice, if there are modifications at a given moment of the credit, which are the most effective, so that the bank can adapt to such in future contracts and the assessment of the probability of redefault. The traditional approaches are limited methodologies regarding the determination of transition probabilities. This drawback happens because most methodologies employed do not consider several states and the possible transitions between them. Then, there is a greater concern in determining the risk of a customer entering into default when contracting a loan, depending solely on the customer's profile, traced through its history, that is always required at the time of the contract. Consequently, by discoursing the existence of such states and their possible transitions, there is no concern focused on determining the risk of redefault or even which states influence the transition to that state. The continuity of a loan contract after modifications, triggered by a default event, is a reality. Thus, it is necessary to develop a study focused on the probability of redefault, since the customer's risk profile changes. 8 3. METHODOLOGY In order to achieve the objective of this dissertation, we propose the application of an innovative hybrid methodology in the evaluation of the performance on loans, i.e., a new multidisciplinary combination of two distinct methodologies in this subject. These two methodologies consist of a clustering technique named Self-Organizing Maps (SOMs) and the application of the Markov Chains methodology. The application of the first methodology – SOM – will be the basis for the second and principal methodology – Markov Chains. Fannie Mae’s Single-Family Loan Performance Data is the data source employed in this study. This data comprises both borrower and loan information at inception, as well as performance data on loans. R software will be used to accomplish the main objective of this work. SELF-ORGANIZING MAPS SOMs were introduced by Teuvo Kohonen (1982) and are a class of artificial neural networks that use unsupervised learning 2 neural networks for feature detection in large datasets, identifying individuals with similar characteristics, organizing and gathering them by groups or clusters. This approach contrasts with other artificial neural networks, since they apply competitive learning 3 instead of errorcorrection learning 4 . A SOM comprises neurons in a grid, which iteratively adapt to the intrinsic shape of our data. The result allows us to visualize data points and identify clusters, being used to produce a low-dimension space of training samples. Therefore, its main objective is to reduce the dimensionality of data, performing a discretized representation of the continuous input space, where there are the initial dataset and the input vectors – lines of the matrix of observation –, named map. The reduction of dimensionality then occurs in the nodes or space where the vectors will be projected. 3.1.1. Theoretical Framework The SOM algorithm follows five steps. Initially, we have an input space, 𝑋∈ℛ𝑛. At the start of the learning, each node’s weight, {𝑤1,𝑤2,…,𝑤𝑀} is initialized, where 𝑤𝑖 is the weight vector associated with each neuron, and M is the total number of neurons. Next, one data point is chosen randomly from the dataset, and then every neuron is examined to calculate which one’s weights are more similar – and, therefore, closest – to the input vector. The winning node is known as the Best Matching Unit (BMU) 5 . The BMU is moved closer to the randomly chosen data point– the distance moved by the BMU is determined by a learning rate, which decreases after each iteration. The BMU’s neighbors are also 2 Unsupervised learning means that we only have input data and no output variables, contrasting with supervised learning, where input data and output variables are given. 3 Competitive learning is a form of unsupervised learning artificial neural networks where, given the input, nodes compete with each other to maximize the output. 4 Error-correcting learning is a type of supervised learning where we compare the system output with the desired output value and use that error (the difference between the desired and obtained values) to direct the training. 5 BMU is a technique which calculates the distance from each weight to the sample vector, by running through all weight vectors. The weight with the shortest distance is the winner. The most commonly way used to determine that the distance is the Euclidean distance. 9 moved closer to that data point, through a neighborhood function, with farther away neighbors moving less. Finally, these steps are repeated for N iterations. Succinctly, at each time 𝑡, present an input 𝑥𝑡, and select the winner, such as 𝜈(𝑡)=𝐵𝑀𝑈=arg𝑚𝑖𝑛𝑘𝜖Ω‖𝑥𝑡−𝑤𝑘𝑡‖ (3.1) where ‖𝑥𝑡−𝑤𝑘𝑡‖ is the Euclidean distance. Weights are adjusted after obtaining the winning neuron until the map converges to increase the similarity with the input vector. The rule to update the weight vector is given by ∆𝑤𝑘(𝑡)=𝛼(𝑡)𝜂(𝜈,𝑘,𝑡)[𝑥𝑡−𝑤𝜈𝑡] (3.2) where coefficient 𝛼𝑡 𝑖𝑠 the previously mentioned learning rate and 𝜂(𝜈,𝑘,𝑡) if a neighbor function. The use of the SOM methodology becomes very interesting and useful because it allows us to map the input data, that is, it permits us to allocate customers to a particular group, with each group from the beginning, with each group formed containing customers with similar characteristics. This aspect proves to be quite advantageous not only for this study, since it facilitates the interpretation and evaluation of our data, but it is also a tool with great added value for banks since it allows them to replicate the same procedure in their business with new and ongoing customers. In such a way, it allows them to understand the profile of each customer in advance and thus make an initial forecast of the future behavior of those same customers, comparing them with others in the same group. Since we have an extensive dataset, we can see that this methodology becomes quite useful in our case. Additionally to what was previously mentioned, the SOM methodology reveals to be a useful approach because it is a numerical and non-parametric method as well as a methodology that does not need a priori assumptions about the distribution of data and a method that allows the detection of unexpected characteristics in the data because of its use of unsupervised learning. The application of the SOM methodology makes it is possible not only to reduce the dimensionality, but also to organize the data. That is why its interpretation is simpler. This first methodology will allow the identification of comparable clients, let us say, with the same loan maturity, with the same interest rate or which performed the same statuses. Considering that the result of the application of this methodology is the organization of data in clusters that contain groups of clients with similar characteristics, we will then be able to compare groups of clients, instead of comparing individual clients. Additionally, it also makes it easier to apply Markov chains, since it allows the implementation of a Markov chain on each cluster. MARKOV CHAINS 3.2.1. Theoretical Framework 3.2.1.1. First Order Markov Chains The Markov chain is named after the well-known Russian mathematician Andrey A. Markov (1856- 1922), distinguished for his work in number theory, analysis, and probability theory. He lengthened the weak law of large numbers and the central limit theorem to a specific series of dependent random 10 variables. Accordingly, he created a special class, denominated Markov processes: random processes in which, given the present, the future is independent of the past. Therefore, a Markov chain is a Markov process defined into a countable state space. This factor means that the probability that the process will be in a given state at a given time 𝑡 may be deducted from the knowledge of its state at time 𝑡<𝑡𝑡−1 and does not depend on the history of the system before 𝑡. Consider the stochastic process {𝑋𝑡,𝑡=0,1,2,…} (3.3) That takes discrete-time values at any time point 𝑡: 𝑋𝑡=𝑗 ,𝑗=0,1,2,… (3.4) in which 𝑗 represents the state of the chain. Without any loss of generality, to ease the notation we assume 𝑀 to be finite, as follows: 𝑀={1,2,…,𝑚} (3.5) For the discrete-time context, we can conclude the present state 𝑋𝑡 is independent of past states, such that: 𝑃(𝑋𝑡=𝑗 | 𝐹𝑡−1)=𝑃(𝑋𝑡=𝑗 | 𝑋𝑡−1=𝑖) (3.6) where 𝐹𝑡−1 is the 𝜎−𝑎𝑙𝑔𝑒𝑏𝑟𝑎 generated by the available information until 𝑡−1. Considering that we can calculate the probability of a state transiting to the next state – transition states –, we can then call this a transition probability. Hence, it is possible to construct a transition probability matrix (TPM): [𝑃(𝑋𝑡=1|𝑋𝑡−1=1) ⋯ 𝑃(𝑋𝑡=𝑚|𝑋𝑡−1=1) ⋮ ⋱ ⋮ 𝑃(𝑋𝑡=1|𝑋𝑡−1=𝑚) ⋯ 𝑃(𝑋𝑡=𝑚|𝑋𝑡−1=𝑚)] (3.7) This operation is denominated the one-step transition probability matrix of the process. Additionally, we can also calculate the probability that the chain will visit state 𝑗 after n-steps given the fact that it was in state 𝑖 at time 𝑡−1. Thus, we have the n-step transition matrix, 𝑃𝑛, in which 𝑃 is the one-step transition probability matrix and 𝑃𝑛 is equal to 𝑃×𝑃 𝑛 times. One of our objectives is to describe how the process travels from one state to another in time. Then we have: 𝑃(𝑋𝑡=𝑗 | 𝑋𝑡−1=𝑖) (3.8) We are mostly concerned in how Markov chains evolve in time. From that point of view, there are two types of behaviors that are important to highlight: (i) transient behavior, which describes how chain moves from one state to another in finite time steps; and (ii) limiting behavior, which defines the behavior of 𝑋𝑛 as 𝑛→∞. Thus, it is fundamental to define some concepts: 11 ▪ For every state 𝑖 in a Markov Chain, let 𝑓𝑖 be the probability that beginning in state 𝑖, the process will ever re-enter state 𝑖. ▪ State 𝑖 is said to be recurrent if 𝑓𝑖=1 and transient if 𝑓𝑖<1, i.e., if the probability is different from 1. ▪ A recurrent state is said to be positive if its mean recurrence time 6 is finite and is aided to be null if its mean recurrence time is infinite. Consequently, an irreducible 7 Markov chain is positive recurrent if all its states are positive recurrent. Positive recurrent irreducible Markov chains are often called ergodic. A Markov Chain with a finite state space 𝑀 is said to have a long-run distribution, i.e., a limit distribution if lim 𝑛→∞𝑃(𝑋𝑡+𝑛=𝑎| 𝐹𝑡−1)=𝜋𝑎 (3.9) As previously mentioned, a Markov Chain is said to be ergodic if it is positive recurrent and aperiodic. Under these conditions, we have the following equation: 𝜋𝑃=𝜋, 𝑤𝑖𝑡ℎ ∑𝜋𝑖=1 𝑎𝑛𝑑 𝜋𝑖≥0 𝑚 𝑖=1 (3.10) where P is the PTM associated with the Markov Chain. Therefore, for any 𝑛≥1, we have: 𝜋𝑖=𝑃(𝑋𝑡=𝑖) (3.11) 3.2.1.2. Absorbing Markov Chains A Markov chain is absorbing if it has at least one absorbing state, and if from every state it is possible to go to an absorbing state. A state 𝑖 of a Markov chain is called absorbing if it is impossible to leave it (Grinstead, C. M & Snell, J. L. 1999), such as: 𝑃(𝑋𝑡=𝑖 | 𝑋𝑡−1=𝑖)=𝑃𝑖𝑖=1 (3.12) When a Markov chain process attains an absorbing state, we must denominate it absorbed. By opposition, a state which is not absorbing is called transient, a definition that was previously provided. Consider an arbitrary absorbing Markov chain. Now reorder the states so that the transient states come first. With 𝑡 transient states and 𝑟 absorbing states, the transition matrix 𝑃 can be written in the following canonical form: 𝑃=(𝑄 𝑅 𝟎 𝐼) (3.13) 6 Mean recurrence time is the average time it requires to visit a state 𝑖, starting from 𝑖. 7 A Markov chain is said to be irreducible if all states belong to the same class. State 𝑖 and state 𝑗 are said to communicate if state 𝑖 and state 𝑗 are accessible (starting from state 𝑖, it is possible to enter state 𝑗 in future number of transitions) (Ching, W. & Ng, M., 2016). 12 where 𝐼 is an 𝑟-by-𝑟 identity matrix, 𝟎 is an 𝑟-by-t zero matrix, 𝑅 is a nonzero 𝑡-by-r matrix, and 𝑄 is a 𝑡-by-𝑡 matrix. The first 𝑡 states are transient and the last 𝑟 states are absorbing. For an absorbing Markov chain, the matrix 𝐼−𝑄 has an inverse 𝑁 matrix, called the fundamental matrix. The entry 𝑛𝑖𝑗 of 𝑁 gives the expected number of times that the process is in the transient state 𝑗 if it is started in the transient state 𝑖. The decomposition of the transition matrix into the fundamental matrix allows for certain calculations such as the mean time of absorption, i.e., the mean number of steps until absorption from each state. Accordingly, the fundamental matrix 𝑁 can be written as follows: 𝑁= (𝐼𝑡−𝑄)−1 (3.14) where 𝐼𝑡 is a 𝑡-by-𝑡 identity matrix. Additionally, it is possible to define the time of absorption as follows. Let 𝑡𝑖 be the expected number of steps before the chain is absorbed, given that the chain starts in state 𝑖. Now let 𝑡 be the column vector whose 𝑖th entry is 𝑡𝑖. Then, 𝑡=𝑁𝑐 (3.15) where 𝑐 is a columns vector whose entries are 1. Furthermore, it is possible to define the probability of absorption 8 by a specific absorbing state when the chain starts in any given transient state. Let 𝑏𝑖𝑗 be the probability that an absorbing chain will be absorbed in the absorbing state 𝑗 if it starts in the transient state 𝑖. Now let 𝐵 be the matrix with entries 𝑏𝑖𝑗. Then 𝐵 is a a 𝑡-by-𝑡 matrix and 𝐵=𝑁𝑅 (3.16) Where 𝑁 is the fundamental matrix and 𝑅 is as in the canonical form. Now that a brief theoretical framework of absorbing Markov chains was provided, it is possible to verify that, with the application of the proposed hybrid methodology, the estimation of the probability of absorption as well as the estimation of the mean absorption time, we will be able to perform an important comparison between the different types of credit (modified versus unmodified), as well as a comparison between the clusters calculated within of each type of credit, regarding two specific states, that we will address later. The main objective of this work is to evaluate, based on the results obtained from the proposed hybrid methodology, if the loan modifications are, in fact, effective. For that, we will estimate the probability of client defaults considering unmodified loans and the probability of default considering modified loans whereby the terms of the contract are altered. To that end, we will stack individuals and eliminate spurious transitions, that is, transitions between individuals and, therefore, between credits. 8 Given a transient state 𝑖 we can define the absorption probability to the recurrent state 𝑗 as the probability that the first recurrent state that the Markov chain visits (and therefore gets absorbed by its recurrent class) is 𝑗,𝑓𝑖∗𝑗 (Spedicato, G.A., Kang, T.S., Yalamanchi, S.B., Yadav, D. & Cord´on, I., 2014) . 13 Thus, we will be able to estimate the transition probabilities based on the performance of each individual. By applying a Markov chain on each cluster obtained from the application of the SOM methodology, we will estimate a TPM for each cluster built for unmodified modified credits, considering the respective loan modifications. The objective is to compare the estimated TPMs and evaluate the differences between modified and unmodified credits. Therefore, we are able to evaluate if the modifications are, in fact, effective and what modifications are most efficient. The use of these two methodologies together has proven to be quite useful in other studies outside the financial scope. A hybrid approach combining a SOM and a Hidden Markov Model (HMM) was previously used to meet the increasing requirements by the properties of DNA, RNA and protein chain molecules (Ferles, C. & Stafylopatis, A. 2013), as well as an application concerning o stroke incidence (Morimoto, H. 2016). Additionally, it was adopted as a hybrid methodology to forecast the influence of climatic variables (Sperandio, M, Bernardon, D. P. & Garcia, V. J. 2010), to test speech recognition (Somervuo, P. 2000) and also to analyze career paths, as a study to evaluate the insertion of graduates and to identify the main career paths categorizations (Massoni, S., Olteanu, M & Rousset, P 2010). Although the hybrid use of these methodologies has been implemented in other areas, its use in financial and banking areas represents an interdisciplinary innovation. Thus, not only is it presented as a methodology that simplifies the interpretation and processing of data, but also as an innovative approach. 14 4. DATA DATA SET The primary dataset used in this study is Fannie Mae’s Single-Family Loan Performance Data, that provides data on US mortgages purchased from original lenders. The Single-Family Fixed-Rate Mortgage (primary) dataset contains a subset of Fannie Mae’s 30-year and less, fully amortizing, full documentation, single-family, conventional fixed-rate mortgages (Fannie Mae, 2019). We will analyze a total of 149 404 loans acquired by Fannie Mae in 2006, divided into 40 079 modified credits and 109 325 unmodified credits, following their performance until 2015. This timespan is an interesting period to evaluate, since there was an economically and financially critical period that, as previously mentioned, began in 2007. We are then able to track loans that were purchased in the precrisis period and evaluate their development through the crisis period and the post-crisis period. Hence, it is interesting to evaluate these 10 years, since it is transversal to several scenarios that occurred during this time. The financial crisis occurred all over the world, and it is noteworthy to evaluate, especially in the United States. During this period, some remarkable events occurred, such as the collapse of Lehman Brothers and also significant changes in monetary policies. This cataclysm led to historically low-interest rates and the approval of two large-scale debt relief programs – the Home Affordable Refinancing Program (HARP) and the Home Affordable Modification Program (HAMP) – along with the foundation of the Troubled Asset Relief Program (TARP). The population data is divided into quarters, and for each quarter, we have a division in “Acquisition” and “Performance” datasets. We can assess the full history of the contracts in each quarter which means that it does not represent a three-month observation of the mortgages. The “Acquisition” dataset has the information on the origination of the credit and the “Performance” dataset has the full credit information related to its evolution, having a Loan Identifier (ID) that links the “Acquisition” dataset to the “Performance” dataset. In this way, we ensure that the subsequent performance of a loan can be monitored from the outset, therefore allowing the modelling of the various loan outcomes. The “Acquisition” data includes static data on both borrower and loan information at the time of origination. This information comprises the Acquisition Data elements, such as the Interest Rate, the Loan Amount, the Number of Borrowers, the Borrower Credit Score, and the Loan Term. The “Performance” data includes the proceeding of loans from the time of the acquisition up until its current status. This dataset is segregated in months and displays the loan performance characteristics, since it considers a dynamic performance over time. The information that follows the behavior of the clients is contained in the Performance Data Elements, such as the Current Loan Delinquency Status, the Zero Balance Code, the Current Interest Rate and the Modification Flag. Further details on these data elements are available in Table 10.1 and Table 10.2 presented in the annexes. Some variables were modified in order to allows us to apply the previously described SOM methodology and also to be more adequate for our analysis. Later, in section 4.2., we will outline the variables considered in this study as well as the ones that were modified. A description of those modifications and the reasoning behind it will also be provided. 15 Before we go further in this study, i.e., before we develop the SOM and Markov chain methodologies, it is fundamental to analyze the global data set. This analysis will allow us to understand its composition before segmenting it into modified and unmodified credits as well as to assess the disparity of each credit class – modified or unmodified – in relation to the entire data set. Accordingly, in Table 4.1 we present the descriptive statistics, as well as a complementary analysis of these results. By analyzing the descriptive statistics, we can observe that about 10% of the individuals were first time home buyers, with the majority of the contracts owned by one borrower (about 53%), even though a considerable percentage of the contracts were owned by two borrowers (about 46%). Additionally, most of the contracts were originated by correspondent lending, which is the process through which a financial institution underwrites mortgage loans using its own capital. Nevertheless, a considerable segment of the contracts was purchased through retail lending, i.e., it is based on lending to individual or retail customers, most often by banks, and institutions focused solely on the credit business. Furthermore, the interest rate of the contracts under analysis range from 3,000% to 10,950% with a mean of 6,470% and a mode of 6,500%. Regarding the loan amount, we have a range from $7 000 to $802 000 with a mean value of $155 449 and a mode of $100 000. Most of the contracts have a duration of 360 months, which corresponds to 30 years. This scenario is typical since we are considering mortgage loans, which are usually very long-term contracts. Regarding the risk characteristics of the individuals, we have the LTV ratio, the DTI ratio, and the Borrower Credit Score. The LTV ratio corresponds to the percentage of the property value that the loan covers, which means that if we have an LTV ratio of 70% it indicates that the loan covers 70% of the property appraisal value. Therefore, the higher the amount borrowed, the greater the risk the bank takes, since it means that the bank lends a larger amount of money. In fact, in some situations, derived from the high risk taken by the bank, it may require the borrower to purchase mortgage insurance to offset that risk. In the data set under study, we have an LTV ratio between 1% and 97% with a mean value of 7% and a mode of 80%. Although most banks only allow a loan that corresponds to a maximum of 80% of the property appraisal value, in our case study, we have values of 97% because Fannie Mae had a program for low-income borrowers that allow an LTV of this value. However, it requires mortgage insurance until the ratio falls to 80%. Regarding the DTI ratio, that is the total of monthly debt payments divided by the gross monthly income, we can infer, by its meaning, that the lower this ratio, the better, representing a lower risk individual. Here we have a range of 1% to 64%. Additionally, the mode presents a value of 40%, which means that the majority of individuals included in this cluster applies almost 40% of their monthly income to pay their debts. Lastly, the credit score of individuals lies between 378 and 850. Considering that this variable can assume values between 300 and 850, we can conclude that we are in the presence of very different clients in respect of the primary classification of credit risk. Furthermore, we have a mode value of 675. Considering that in this variable scores above 650 indicate a good credit history, we can infer that the majority of the individuals under study have a credit score that can be considered favorable. 16 Table 4.1 - Descriptive Statistics Total Data Set Variable Minimum Maximum Mean Mode Median Original Interest Rate (%) 3,000 10,950 6,470 6,500 6,500 Original Loan Amount 7 000 802 000 155 449 100 000 135 000 Original Loan Term (months) 96 360 326 360 360 Original Loan to Value (LTV) (%) 1 97 70 80 75 Original Debt to Income (DTI) Ratio (%) 1,00 64,00 38,87 40,00 39,00 Borrower Credit Score at Origination 378 850 700 675 698 Class Percentage Channel / Origination Type Broker 17,342 Correspondent 44,004 Retail 38,654 Number of Borrowers 1 52,898 2 46,498 3 0,443 4 0,153 5 0,004 6 0,001 First Time Home Buyer Indicator No 90,158 Yes 9,691 DATA PREPARATION The first step to consider was a screening of the credits to be considered. As mentioned above, the loans originated in 2006, and, in order to observe a reasonable period, a ten-year analysis interval was considered. Along these lines, we have information about the performance of credits until 2015. This factor means that all credits that had no information available until 2015 were withdrawn. Similarly, all information exceeding the period considered, that is, all information after 2015 was not taken into account for this study. Additionally, we also had some credits with information gaps, namely information breaches greater than one year which, in order to ensure the veracity of this study and also to respect the 10-year period considered for this study, were also removed from the analysis. After screening the credits to be analyzed, we proceeded to the development of the first methodology – SOM. This methodology has the particularity of only supporting numerical variables. According to this, considering that we have numerical and categorical variables, we needed to carry out some adjustments. As a result, the variables that underwent some amendments were the following: Origination Channel, First Time Home Buyer Indicator, Modification Flag, Origination Date, Modification Date, Maturity Date and Current Delinquency status. The Origination Channel first presented the values B (Broker), C (Correspondent), and R (Retail). By transforming them into a numeric variable, we now have the following values: 1, which corresponds to “Broker,” 2, which corresponds to “Correspondent” and 3, which corresponds to “Retail.” The First 17 Time Home Buyer Indicator and the Modification Flag were binary variables, i.e., the possible values were No (N) if the individual was not a first time home buyer or if the credit was not modified and Yes (Y), if the individual was a first time home buyer or if the credit was modified. For the Modification Flag variable, we now have the value 1, which corresponds to “No,” and the value 2, which corresponds to “Yes.” The First Time Home Buyer Indicator has the particularity of some lack of information. Due to that fact, we might have empty values, represented by the letter U (Unknown). Therefore, by transforming this variable, and because this transformation is performed alphabetically, in this specific case, we have the following values: 1, that corresponds to “No,” 2, that corresponds to “Unknown” and 3, that corresponds to “Yes.” Regarding the date variables, there was a need for a different treatment between some of them. For the Modification Date variable, we had a date with the “month/day/year” format, which was transformed into the number of months that occurred between the date of origin of the loan and the time of its modification. For the Origination Date and Maturity Date variables, which also had the same type of format, we preserved the year of origination and the year of maturity. To conclude the description of all the implemented changes, we have the Delinquency Status variable. Initially, this variable was represented in the number of days the client was delinquent. Since we will apply a Markov Chain methodology, it becomes necessary to have these variables in states that comprise an interval of the days of delinquency. For this, and also because the SOM only allows numeric variables, we chose to modify this variable to states 1, 2, 3, and 4. Additionally, it was noted that, in some cases, this variable assumes a value “X” on the last date of observation. When this happens, the variable Zero Balance Code only presents the values “01” or “06”, that corresponds to performing situations, i.e., situations where individuals have a normal or current performance. In order to validate this, it was noted that in all these cases, in the penultimate moment of observation, all individuals had less than 30 days past due, which, once more, means that they were all in performing positions. Therefore, for these cases, we added a state, represented by the number 5, that corresponds to situations where an individual prepaid the loan being in a normal performance position. It was also noted that in the cases where we did not have information on the Delinquency Status variable (i.e., an N.A. value), the Zero Balance Code variable presents the remaining codes, that is, the codes “02”, “03”, “09” or “15”. These different codes correspond to situations where the individual was in a non-performing position and, for reasons of non-payment of the credit, the bank is forced to reduce the credit to zero. Accordingly, for these cases, we added a state, represented by the number 6. Thus, we have six different states, described in Table 4.2. 24 Now evaluating the second cluster, whose information regarding the descriptive statistics is contained in Table 5.2, it is possible to observe that in this group of individuals, similarly to cluster one, only about 8% were first time home buyers, with the majority of contracts owned by one borrower. However, we also have a great percentage of the contracts owned by two borrowers – almost 47%. Additionally, most contracts were originated by correspondent lending – about 46% – and a considerable part was purchased through retail lending – nearly 34%. With respect to the conditions of the contracts, the interest rate has a range from 4,50% to 8,50%, which is a greater interval than the one in the first cluster, with a mean of 6,497% and a mode of 6,5%. Regarding the loan amounts, we have a range from $16 000 to $675 000, with a mean value of $211 446 and a mode of $417 000. Most of the contracts have a duration of 30 years (360 months). As previously mentioned, this is a typical situation, and as we will be able to observe, this situation will be verified in every cluster, in both modified and unmodified credits. More related to the risk characteristics of the individuals, the LTV ratio presents a range from 8% to 97%, which is a greater interval compared to the first cluster. Although the mode value is the same, by having a minimum value lower than the one previously verified, we can infer that we are facing some individuals that represent a slightly lower risk, considering the definition provided for this variable earlier. Regarding the DTI ratio of the second cluster, we have an interval between 1,00% and 64%. Similar to the situation with the LTV ratio, this also means that we are in the presence of lower-risk individuals, considering that we have a minimum value lower than the one verified in the first cluster, even though the mode value is quite the same. Finally, the credit score of individuals is between 437 and 825. We can note that the minimum value is lower than the one verified in the first cluster. However, if we look at the mode, we can observe a higher value, which, considering that scores above 650 indicate a good credit history, we are facing individuals that represent a lower risk, validating what was previously mentioned regarding the last two variables. 25 Table 5.2 - Descriptive Statistics (Modified Credits – Cluster 2) Variable Minimum Maximum Mean Mode Median Original Interest Rate 4,500% 8,500% 6,497% 6,500% 6,500% Original Loan Amount 16 000 675 000 211 446 417 000 199 000 Original Loan Term (months) 120 360 347 360 360 Original Loan to Value (LTV) 8% 97% 73% 80% 76% Original Debt to Income (DTI) Ratio 1,00% 64,00% 42,78% 43,00% 43,00% Borrower Credit Score at Origination 437 825 677 675 673 Class Percentage Channel / Origination Type Broker 19,850 Correspondent 46,349 Retail 33,801 Number of Borrowers 1 52,631 2 46,927 3 0,365 4 0,071 First Time Home Buyer Indicator No 91,768 Yes 8,186 Observations: 30 978 Now assessing the third cluster, whose descriptive statistics are summarized in Table 5.3, we can verify that about 7,5% of the individuals were first time home buyers, and about 52% of the contracts are owned by one borrower. However, just like in the two previous situations, we also have a great percentage of contracts owned by two borrowers – about 47%. Additionally, most of these contracts were originated by correspondent lending. Regarding the contract conditions, the interest rates range from 5,00% to 8,375%, which is a smaller interval than the ones previously verified, even though the mean and mode values are very similar. In the loan amounts we have a range from $17 000 to $645 000, with a mean value of $213 525 and a mode of $417 000. As stated before, the majority of contracts also have a maturity of 30 years. Regarding the inherent risk with individuals, the LTV ratio presents a range from 16% to 97%. Although the mode value is the same, by having a minimum value greater than the one previously verified, we can infer that we are facing some individuals that represent a slightly higher risk when compared to the second cluster; however they do not representing a risk as high as the one verified with the individuals included in the first cluster. The DTI ratio of the third cluster spans between 8,00% and 64%. Similar to the situation with the LTV ratio, this also means that we are in the presence of some individuals with higher risk, considering that we have a minimum value higher than the one verified in the first cluster, even though the mode value is the same. Finally, the borrowers’ credit score in this cluster stands between 462 and 817. Compared to the other two clusters, we can note that this interval is the smallest. By having the lowest minimum value so far, 26 considering the definition of this variable, provided earlier, we can infer that we are in the presence of some individuals that represent a higher risk – the worse the credit score, the worse the risk level. However, if we look at the mode, we can also conclude that we have a value higher than 650, which means that most of these individuals have a good credit history, enabling the conclusion that, in general, the third cluster comprises individuals with a lower risk, contrasting with the situation in the first cluster. Table 5.3 - Descriptive Statistics (Modified Credits – Cluster 3) Variable Minimum Maximum Mean Mode Median Original Interest Rate (%) 5,000 8,375 6,497 6,375 6,500 Original Loan Amount 17 000 645 000 213 525 417 000 200 000 Original Loan Term (months) 96 360 346 360 360 Original Loan to Value (LTV) (%) 16 97 73 80 75 Original Debt to Income (DTI) Ratio (%) 8,00 64,00 42,90 43,00 43,00 Borrower Credit Score at Origination 462 817 676 672 672 Class Percentage Channel / Origination Type Broker 19,301 Correspondent 48,286 Retail 32,413 Number of Borrowers 1 52,213 2 47,388 3 0,300 4 0,100 First Time Home Buyer Indicator No 92,346 Yes 7,654 Observations: 3 005 Now evaluating the fourth and last cluster, whose descriptive statistics are summarized in Table 5.4, we can verify that about 7,7% were first time home buyers, with almost 52% of the contracts owned by one borrower. However, just like in the previous situations, a great percentage of contracts are owned by two borrowers, standing very close to the percentage of contracts owned by one borrower – practically 48%. In fact, almost all the contracts are owned by one or two borrowers, with the contracts owned by three or four borrowers representing not even one percent of all contracts. Nevertheless, a considerable segment of the contracts was purchased through correspondent and retail lending, representing, together, about 80% of the contracts. Concerning the contract conditions, the interest rates vary between 4,990% to 8,125%, the smallest interval of all clusters, with a mean of 6,503% and a mode of 6,5%. Regarding the loan amount, we have a range from $25 000 to $548 000 with a mean value of $211 693 and a mode of $417 000. As previously stated, we again find the majority of contracts with a maturity of 30 years. 27 More related to the risk characteristics of the individuals, the LTV ratio presents a range from 14% to 97%. Although the mode value is the same, the minimum value is the second highest one, which means that we are in the presence of some individuals that also represent some risk. The DTI ratio of the fourth cluster comprises between 2,00% and 64%. Additionally, the mode presents a value of 45%, which means that the majority of individuals included in this cluster apply 45% of their monthly income to pay their debts. Furthermore, by having the highest mode value verified so far, we can state that this group of individuals represents a slightly higher risk for this variable. However, the values verified in this variable are not very far from those observed in the remaining clusters, so these individuals do not represent a notably higher risk, which is corroborated by the fact that the average value is the lowest of all clusters. Finally, the credit score of individuals is comprised between 432 and 817. We can note that the minimum value is the lowest of all clusters. However, if we look at the mode, we can observe that this cluster presents the highest value, which means that this cluster comprises more individuals that represent less risk as far as the quality of credit history. Table 5.4 - Descriptive statistics (Modified Credits – Cluster 4) Variable Minimum Maximum Mean Mode Median Original Interest Rate 4,990% 8,125% 6,503% 6,500% 6,500% Original Loan Amount 25 000 548 000 211 693 417 000 198 000 Original Loan Term (months) 120 360 348 360 360 Original Loan to Value (LTV) 14% 97% 73% 80% 75% Original Debt to Income (DTI) Ratio 2,00% 64,00% 42,31% 45,00% 42,00% Borrower Credit Score at Origination 432 817 676 676 672 Class Percentage Channel / Origination Type Broker 19,709 Correspondent 46,364 Retail 33,927 Number of Borrowers 1 51,745 2 47,927 3 0,218 4 0,109 First Time Home Buyer Indicator No 92,218 Yes 7,745 Observations: 2 750 After an individual analysis of the results obtained relative to the descriptive statistics of each cluster, it is equally important to make an overall evaluation. By comparing the clusters with each other, in contrast to an individual assessment, it becomes possible to draw the different risk profiles that each group of individuals represent for the bank. 28 By comparing the four clusters, it can be concluded from the outset that regarding the number of borrowers, the origination type, whether or not individuals are first time home buyers, and the loan term, the four clusters present approximately the same results. Thus, we can determine that the clusters differ mainly in the borrowers’ characteristics, that is, the LTV, the DTI ratio and the Borrower Credit Score. Regarding the LTV variable, considering that both the mean and mode are equal throughout each cluster, looking at the minimum values of each group of individuals, we can see that the second cluster has the lowest minimum value. Therefore, we can conclude that this cluster presents a lower risk to the bank regarding the percentage of the property appraisal value granted. Apropos the DTI ratio, although the mean and mode values differ between each cluster, we can see that the third cluster has the greater mean value, meaning that it contains individuals that pose a higher risk to the bank as they allocate, on average, more of their monthly income with debt compared to the remaining clusters. Finally, regarding the Borrower Credit Score, by comparing the four clusters, we can observe that both the mean and mode values are approximately the same. However, we can discern that the first cluster has the lowest mode, being the only one to present a figure below 650. Nevertheless, when we look at the values presented by cluster three, we can identify that the minimum value of this variable is the lowest of all. This aspect means that this cluster comprises some individuals with a relatively poor credit history considering that with a value of 462, it is well below 650. Thus, we can conclude that in relation to the borrower credit score, clusters one and three present the greatest risk to the bank, since they have a worse credit history than the other clusters. Concluding this overall assessment, in consideration of what was stated above, we can verify that the second cluster represents the lowest risk, and the third cluster exemplifies the highest risk. 5.1.2. Unmodified Credits Progression of the Learning Progress. We now move to the development of the SOM methodology for unmodified credits. Once again, we start the analysis with the graphic that represents the variations existing along the number of iterations. As previously delineated, the purpose of this graphic is to present increasing stability throughout the occurrence of iterations. Only in this way we can guarantee that the number of iterations is sufficient in order to have a good quality model. As in the case of modified credits, we considered 300 iterations. In Figure 5.6 we can observe the Training Progress of the SOM model developed in respect of unmodified credits. 29 Figure 5.6 - Training Progress of Unmodified Credits Through the analysis of Figure 5.6, it is possible to confirm that the number of iterations is adequate since, after a sharp decrease, we reach the desired stability shortly after 250 iterations, where there is no longer a continuous decrease of the distance between nearest cells in the map. As such, we can proceed with the model in the way it was defined. We can point out a slight difference between the model developed for modified credits and the model developed for unmodified credits. In the case of unmodified contracts, more iterations were needed, compared to the case of modified contracts. Node Counts Plot. As previously determined, the analysis of the Node Counts plot is interesting since it allows us to assess the necessity to change the size of our map, based on the number of instances present in each neuron. We should increase the map size if there are too many observations per node and reduce it if there are empty nodes. In Figure 5.7 we can see the Node Counts graphic related to unmodified credits. Figure 5.7 - Node Counts of Unmodified Credits 30 Firstly, it is important to mention that, as we can observe in Figure 5.7, the maps of unmodified credits are larger than those of modified credits. This detail is because we have more unmodified credits than modified credits. Thus, we have more observations in this case than in the previous case. If we considered the same size of modified credits in this case, we would be in a situation where we would have too many observations per node and considering the objective of this plot, it would always be necessary to increase its size. After observing Figure 5.7, we can verify that we have no empty neurons. According to what was previously described, we can conclude that compared to the modified credits, there is a greater number of observations in each neuron, since in this case, we have a scale that goes up to nearly 350 observations per neuron. This outcome is what we expected since, although the map size is larger than the case of modified credits, the fact is we have a greater number of observations in the case of unmodified credits. Nevertheless, we must not forget that this graphic should present a certain homogeneity or uniformity. By observing the plot, we can conclude that it fulfills that objective. Neighbor Distance Plot. As expressed earlier, in this type of plot, the rationale we must follow is the intensity of color along with the values presented by the scale, concluding that the darker the neuron is, the closer the neuron is to the nearest neuron, indicating similar groups of nodes. The opposite also occurs. The Euclidean distance between neurons is presented in Figure 5.8. Figure 5.8 - U-Matrix of Unmodified Credits Similar to the modified credits, we have nodes with approximately the same color. This detail means that we have neurons close to each other and, therefore, similar groups of nodes. Additionally, we have a reasonably similar scale compared to the one observed in the modified credits. As previously mentioned, this means that we have neurons that are close to each other. The nodes that tend more to the red color are closer to each other, while the ones that tend more to the yellow color are farther from each other. The main difference, in this case, is that we have more neurons that are closer to each other compared to the U-Matrix of modified credits. Clustering. To conclude the SOM methodology, we have the construction of clusters related to unmodified credits. The process is the same as previously performed, so it is necessary to estimate the 31 optimal number of clusters to consider, carried out by the examination of the "within sum of squares" plot, presented in Figure 5.9. Figure 5.9 - Optimal Number of Clusters of Unmodified Credits Following the rationale that helps us to interpret this graphic, as previously stated, we can observe that we have the “elbow point” on 4 clusters. Hence, it is at this point that we were able to identify an attenuation of the curve in the graphic above. Therefore, we must consider four distinct clusters in the case of unmodified credits. These clusters can be observed in Figure 5.10. Figure 5.10 - Clusters of Unmodified Credits In this plot we can observe the previously defined clusters. The red cluster contains 74 neurons, the blue cluster holds 118 neurons, the green cluster comprises 17 neurons, and the orange cluster comprises 16 neurons. Now that the first methodology is completed, both for unmodified and modified credits, we are able to apply Markov chains to each cluster. However, just like in the case of modified credits, it is important 32 to analyze each cluster in order to characterize them and then interconnect those characteristics with the results obtained from the application of the Markov chain methodology. Since we have four clusters, we will also have four different tables, each one containing the descriptive statistics of each group of individuals. Starting by evaluating the first cluster, whose descriptive statistics are summarized in Table 5.5, we can verify that, only about 10% were first time home buyers, with the majority of contracts owned by one borrower – about 53%. However, just like in the previous situations, we also have a great percentage of contracts owned by two borrowers – about 42%. In fact, almost all the contracts are owned by one or two borrowers, with contracts owned by three, four, five or six borrowers representing less than one percent of all contracts. Looking at the origination type, we can observe that the majority of these individuals acquired their credits through correspondent lending. However, we also have almost the same percentage of individuals that acquired their credits through retail lending, with only nearly a 3% difference. Regarding the conditions of the contracts, the origination interest rate ranged from 3,0% to 10,950%, averaging at 6,460%. The monetary property value has a mean value of $134 768, with a mode of $100 000, ranging from $8 000 to $800 000. More related to the risk characteristics of individuals, the LTV ratio presents an interval between 1% and 97%. It is possible to verify that we have the lowest minimum value so far compared to the results from modified credits, which means that, in this cluster, we are facing individuals that represent a lower risk to the bank, regarding the percentage of the property appraisal value granted. The DTI ratio of the fourth cluster is comprised between 1,00% and 64%, with a mean of 37,47%, which means the individuals included in this cluster apply 37,47% of their monthly income, on average, to pay their debts. Finally, the credit score of individuals stands between 378 and 850. The first thing to notice is that we have a considerable interval. Additionally, we also have a low minimum value, and as we will be able to perceive, it is the minimum value among the clusters. However, if we look at the mode, we can observe a credit score higher than 650, which following the rationale on the interpretation of this variable, we can state that the majority of these individuals have a good credit history. 33 Table 5.5 - Descriptive statistics (Unmodified Credits – Cluster 1) Variable Minimum Maximum Mean Mode Median Original Interest Rate 3,000% 10,950% 6,460% 6,500% 6,500% Original Loan Amount 8 000 800 000 134 768 100 000 116 000 Original Loan Term (months) 108 360 318 360 360 Original Loan to Value (LTV) 1% 97% 68% 80% 74% Original Debt to Income (DTI) Ratio 1,00% 64,00% 37,47% 40,00% 38,00% Borrower Credit Score at Origination 378 850 709 700 708 Class Percentage Channel / Origination Type Broker 16,378 Correspondent 43,229 Retail 40,394 Number of Borrowers 1 53,167 2 46,206 3 0,439 4 0,178 5 0,006 6 0,002 First Time Home Buyer Indicator No 89,565 Yes 10,235 Observations: 64 619 Now evaluating the second cluster, whose descriptive statistics are summarized in Table 5.6, we can verify that only around 10% were first time home buyers, with 53,5% of the contracts owned by one borrower. However, similar to what we observed in the previous situations, we also have a great percentage of contracts owned by two borrowers, performing, together, 99,3% of contracts. This facet means that the contracts owned by three or four borrowers represent less than one percent of all contracts. Looking at the origination type, we can see that there is close proximity between the percentage of credits acquired through correspondent lending and retail lending, since the percentages are almost 43% and approximately 41%, respectively. We can then conclude that, in this cluster, there is a major division between these two channel types, with the origination type broker only representing circa 16% of the contracts. Regarding the contract conditions, the origination interest rate ranged from 4,375% to 8,750%, with a mode value of 6,50%. The monetary property value has a mode value of $100 000, ranging from $7 000 to $525 000. More related to the risk characteristics of the individuals, the LTV ratio presents an interval between 6% and 97%. It is possible to verify that we have a higher minimum valuer compared to the results from the first cluster, which means that, in this cluster, we have some individuals that represent a 40 Table 5.10 - Transition Probability Matrix (Modified Credits - Cluster 2) States 1 2 3 4 5 6 1 0.998791 0.000605 0.000005 0.000000 0.000449 0.000150 2 0.044352 0.940015 0.009108 0.000000 0.000174 0.006351 3 0.052511 0.004599 0.934074 0.001150 0.000000 0.007666 4 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 5 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 Table 5.11 - Transition Probability Matrix (Modified Credits - Cluster 3) States 1 2 3 5 6 1 0.998785 0.000605 0.000003 0.000400 0.000159 2 0.044828 0.940439 0.008150 0.000131 0.006270 3 0.059761 0.000000 0.932271 0.000000 0.007968 5 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 1.000000 Table 5.12 - Transition Probability Matrix (Modified Credits - Cluster 4) States 1 2 3 5 6 1 0.998787 0.000646 0.000003 0.000420 0.000148 2 0.041422 0.938783 0.011364 0.000000 0.008431 3 0.041298 0.008850 0.946903 0.000000 0.002950 5 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 1.000000 Before we compare the probabilities obtained from modified and unmodified credits, so we can evaluate if the modifications are actually effective or not, it is important to relate what was deduced through the descriptive statistics with the results obtained from the application of the Markov chains. After evaluating the descriptive statistics one by one, it was concluded that the cluster with the lowest risk for the bank was the second cluster, and the one with the highest risk was the third cluster. Furthermore, we must notice that in clusters three and four, we do not have state 4. This result is due to the fact that, in the period of analysis, these two clusters do not contain this state. This circumstance means that after 2015 this state, as well as transitions to other states, may exist. Nonetheless, the situation does not occur in the period under analysis. Looking at the estimated results, we can understand that the probabilities related to state recoveries (i.e., retracting one or more states) and prepayments (state 5) are not always higher in the second cluster. Similarly, it is not possible to state that the probabilities related to transitions to following states and to forced credit terminations (state 6) are always lower. It is important to note that the risk that each group of clients represents is assessed according to its original characteristics. This element means that the level of risk initially determined may change after the loan conditions are modified. 41 Despite all this, we can see that the probability of a mortgage being prepaid – transition to state 5 – is practically always greater in the second cluster, excepting the transition from state 1 to state 5, that is higher in the first cluster, corroborating what was mentioned above regarding the risk that this cluster represents to the bank. By contrast, the probability of a credit being prepaid in cluster three is always the lowest when compared to the remaining cases (excepting in the transition from state 2 to state 5 in the first cluster, since there are no transitions between these two states). Additionally, we can verify that regarding the probability of a credit being forced to termination – transition to state 6 – the third cluster almost always presents the greatest values. It is possible to see that the probability of transition from state 1 to state 6 is the lowest in the second cluster and it is the highest in the third cluster. Furthermore, the probability of transitioning from state 2 to state 6 differs from what has been observed so far, since the cluster with the lowest value is the first cluster and the one with the highest value is the fourth cluster. In addition, the probability of transitioning from state 3 to state 6 is not the lowest in the second cluster but it is the highest in the third cluster. Finally, we do not have probabilities regarding the transition from state 4 to state 6 since there are no transitions between these two states in any of the clusters. Concerning the state recoveries, it is important to mention that the probabilities not only reflect the risk that the individuals represent to the bank, but they also incorporate a modification in the risk level when the credits are modified. Hence, it is understandable that the estimated probabilities do not exactly reflect the risk level previously assessed, that is, cluster two does not present the greatest recovery probabilities, and cluster three does not present the lowest recovery probabilities. In addition to evaluating the obtained results regarding the TPM, it is also fundamental to evaluate the mean absorption times and absorption probabilities, since it allows us to perform a complementary evaluation of the behavior of the individuals inserted in each cluster. Thus, as stated above, we will present these results and their respective evaluation. Before evaluating the results obtained, it is important to highlight two exceptional situations regarding the modified credits. Clusters 1 and 2 exhibit state 4 as a recurrent state. This status has a similar justification to the one provided to explain why clusters 3 and 4 do not contain state 4. In clusters 1 and 2, there is no transition from state 4 to any other state because of the period of analysis, which extends to 2015. This scenario means that after 2015 this transition may exist, but in the period under analysis this does not occur. Thus, it is stated that state 4 is not absorbing, although in these two clusters, it is considered that way. Regarding clusters 3 and 4, we have a situation in which state 4 does not occur at all (i.e., there are no credits with 90 days or more past due). For this reason, we consider these situations to be exceptional. In Table 5.13, we can observe the absorption probabilities of each cluster, i.e., the probability of any transient state – 1, 2, and 3 – to be absorbed by any absorbing state – 4 (in the case of the first and second clusters), 5 and 6. The results denoting the mean absorption times, i.e., expected number of steps to move from any of the transient states to any of the recurrent states, are shown in the annexes with their analysis later in this chapter. 42 Table 5.13 - Absorption Probabilities (Modified Credits) Cluster 1 States 4 5 6 1 0.0080327 0.6849833 0.3069840 2 0.0158921 0.6221768 0.3619311 3 0.0500124 0.6200505 0.3299371 Cluster 2 States 4 5 6 1 0.0025075 0.6638867 0.3336058 2 0.0048569 0.5802096 0.4149335 3 0.0197779 0.5692732 0.4109489 Cluster 3 States 5 6 1 0.6276723 0.3723277 2 0.5534562 0.4465438 3 0.5538285 0.4461715 Cluster 4 States 5 6 1 0.6302488 0.3697512 2 0.5339698 0.4660302 3 0.5791885 0.4208115 As explained above, the first and second clusters consider state 4 as an absorbing state whereas in the third and fourth clusters this state does not exist. For this reason, we have probabilities of absorption from states 1, 2, and 3 for states 4, 5, and 6 in the first clusters and only absorption probabilities from states 1, 2, and 3 for states 5 and 6 in the last clusters. For this reason, for the purpose of a comparative assessment and because state 4 is not, in fact, an absorbing state, we will not consider the probabilities of absorption for this state in relation to the first two clusters. As the number of days past due in the credit increases, that is, as we move from state 1 to state 3, we notice a decrease in the probabilities of absorption in state 5 and an increase in the probability of absorption in state 6. This outcome is what we expected, since it is understandable that as the payment arrears of credits increase, the aptitude to prepay a credit decreases, and the possibility of the bank being forced to end the credit in order not to suffer great losses increases. Starting from state 1, there is a probability of absorption in state 5 of about 0.68 and 0.66 in first and second clusters, respectively, and about 0.63 in the third and fourth clusters. Regarding the absorption in state 6, we can observe that these probabilities exhibit values of about 0.31 and 0.33 for the first and second clusters and around 0.37 for the third and fourth clusters. Respecting state 2, here, the second row tells us that the absorption probability in state 5 is about 0.62 in the first cluster, 0.58 in the second cluster, 0.55 in the third cluster, and finally, about 0.53 in the fourth cluster. Regarding the absorption in state 6, we can see that there is a probability of 0.36 of absorption in the first cluster, about 0.41 of absorption in the second cluster, about 0.45 of absorption in the third cluster, and 0.47 of absorption in the fourth cluster. Finally, in respect of state 3, we can observe that, in the first cluster, the probability that the chain will be absorbed in state 5 has a value of 0.62, a value of about 0.60 in the second cluster, a value of roughly 43 0.55 in the third cluster and a value of circa 0.58 in the fourth cluster. As we can observe, these are, in general, the lowest verified so far. Regarding the absorption in state 6, we can state that starting in state 3, there is a probability of about 0.33 of absorption in the first cluster, almost 0.41 of absorption in the second cluster, nearly 0.45 of absorption in the third cluster and, to conclude, probability about 0.42 of absorption in the fourth cluster. In conclusion, these results were what we expected, considering the risk assessment previously performed from the descriptive statistics, as well as the evaluation carried out on the results obtained in the TPM. Comparing these last results, we can see that the cluster that presents the lowest absorption probability in state 5, starting in any of the states (1, 2, or 3), is, in general, cluster 3, which was previously identified as the one that represents the greater risk. Additionally, the third cluster is also the one with the highest probability of absorption in state 6, starting in any of the states – with the exception of absorption in state 6 starting in state 2, which is higher in the fourth cluster. On the other hand, although the second cluster – previously identified as the one that represents the lowest risk for the bank – does not present the highest probability of absorption in state 5 and the lowest probability of absorption in state 6. It shows values close to the first cluster, which, in this case, has the highest probability of absorption in state 5 and the lowest probability of absorption in state 6, having been previously considered, after the second cluster, a cluster with a relatively low risk. Thus, these latest results and their respective evaluations are in line with those performed before. 5.2.2. Unmodified Credits With respect to the modified credits, we will also have four TPMs, considering the results obtained from the SOM methodology. Thus, we present the probabilities obtained in each cluster. Table 5.14 - Transition Probability Matrix (Unmodified Credits - Cluster 1) States 1 2 3 4 5 6 1 0.998104 0.000279 0.000000 0.000000 0.001527 0.000090 2 0.001792 0.965812 0.020985 0.000000 0.000295 0.011116 3 0.000447 0.000596 0.973261 0.005363 0.000298 0.020036 4 0.000000 0.000000 0.000000 0.977839 0.000000 0.022161 5 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 Table 5.15 - Transition Probability Matrix (Unmodified Credits - Cluster 2) States 1 2 3 4 5 6 1 0.998077 0.000297 0.000000 0.000000 0.001541 0.000086 2 0.002828 0.965630 0.020883 0.000000 0.000000 0.010659 3 0.000000 0.000000 0.970381 0.006347 0.000000 0.023272 4 0.000000 0.000000 0.000000 0.947368 0.000000 0.052632 5 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 44 Table 5.16 - Transition Probability Matrix (Unmodified Credits - Cluster 3) States 1 2 3 4 5 6 1 0.998117 0.000266 0.000002 0.000000 0.001517 0.000099 2 0.001693 0.966193 0.021027 0.000000 0.000328 0.010759 3 0.000724 0.000724 0.972303 0.005974 0.000181 0.020094 4 0.000000 0.000000 0.018072 0.951807 0.000000 0.030120 5 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 Table 5.17 - Transition Probability Matrix (Unmodified Credits - Cluster 4) States 1 2 3 4 5 6 1 0.998075 0.000293 0.000000 0.000000 0.001538 0.000093 2 0.001514 0.965374 0.020246 0.000000 0.000378 0.012488 3 0.000000 0.000000 0.978337 0.004098 0.000000 0.017564 4 0.000000 0.000000 0.000000 0.967742 0.000000 0.032258 5 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 6 0.000000 0.000000 0.000000 0.000000 0.000000 1.000000 After evaluating the descriptive statistics one by one, it was concluded, based on the descriptive statistics, that the cluster with the lowest risk for the bank was the second cluster, and the one with the highest risk for the bank was the first cluster. Nevertheless, looking at the calculated probabilities, we can understand that the probability of a credit being prepaid is not always greater in the second cluster, as well as the probability of state recoveries. In fact, we can observe that the probability of a credit being prepaid is not always greater in a particular cluster, just like the probability of a credit being forced to termination or the probability of performing a state recovery. Regarding the prepayment of credits, we are in a situation where the probability of transition from state 1 to state 5 is higher in the second cluster, however, when we talk about the probability of transition from state 2 to state 5, we verify a higher value in the fourth cluster. In addition, the probability of transition from state 3 to state 5 is higher in the first cluster. With respect to state 4, there are no transitions from this state to state 5 in any of the clusters. We can also verify that concerning the probability of a credit being forced to terminate, the second cluster presents the lowest probabilities regarding the transitions from states 1 and 2, subsequently representing a low risk for the bank as far as these two transitions. However, regarding the transitions from states 3 and 4, the second cluster presents the highest probabilities. In this case, we have cluster four with the lowest probability of transition from state 3 to state 6, and cluster one with the lowest probability of transition from state 4 to state 6. With respect to the state recoveries, firstly, we can verify that recovering from state 2 to state 1 is most probable in the second cluster, which corroborates what was previously stated regarding the risk 45 level of this cluster. Additionally, transitioning from state 3 to state 2 is most probable in the third cluster and least probable in the second and fourth clusters, as well as transitioning from state 3 to state 1 and from state 4 to state 3. Finally, regarding the transition to the next state – a transition from state 1 to state 2, for example – we can verify that the clusters that represent the lowest risk to the bank are the third and fourth clusters, considering that these two clusters present the lowest probabilities. The probability of transitioning from state 1 to state 2 is lower in the third cluster, while the transitions from state 2 to state 3 and from state 3 to state 4 are less likely in the fourth cluster. To conclude this evaluation, we can see that the probabilities calculated under the Markov chain methodology do not perfectly reflect the prediction of the risk level based on the statistics of each cluster. However, we can see that the first cluster remains to represent the highest risk to the bank. In addition, the low-risk level is slightly divided by the remaining three clusters, focusing mainly on clusters two and three. Although in the prediction of the risk level of each cluster based on the descriptive statistics the second cluster was considered to represent the lowest risk to the bank, this situation is quite understandable, since it is possible to verify that these two clusters have very similar origin characteristics, with just a few minor differences. Similarly to what was performed in the modified credits, we will also evaluate the mean absorption times and the absorption probabilities, thus carrying out a complementary evaluation to the results obtained regarding the TPM. In Table 5.18 we can observe the absorption probabilities of each cluster, i.e., the probability of any transient state – 1, 2, 3 or 4 – to be absorbed by any absorbing state – 5 and 6. As with modified credits, the results of the mean absorption times are presented in the annexes, and their analysis is found later in this chapter. 46 Table 5.18 - Absorption Probabilities (Unmodified Credits) Cluster 1 States 5 6 1 0.81505239 0.1849476 2 0.06747632 0.9325237 3 0.02626776 0.9737322 4 0.00000000 1.0000000 Cluster 2 States 5 6 1 0.81130872 0.1886913 2 0.06675325 0.9332468 3 0.00000000 1.0000000 4 0.00000000 1.0000000 Cluster 3 States 5 6 1 0.81554568 0.1844543 2 0.07063712 0.9293629 3 0.03231809 0.9676819 4 0.01211928 0.9878807 Cluster 4 States 5 6 1 0.80605362 0.1939464 2 0.04616628 0.9538337 3 0.00000000 1.0000000 4 0.00000000 1.0000000 Evaluating these results, we can verify from the outset that, just like in the case of modified credits, the absorption probabilities in state 5 decrease as the number of days past due increase. Similarly, the absorption probabilities in state 6 increase as the number of days past due increase, which is comprehensible, since there is a relationship between the number of days past due in credits and the probability that they will be absorbed, in either of the two absorbing states. Starting from state 1, we can verify that there is a probability of absorption in state 5 of about 0.81 in all clusters. Regarding the absorption in state 6, we can affirm that values are also very close to each other in all clusters, with a probability about 0.18 of absorption in the first and third clusters and a probability of absorption around 0.19 in the second and fourth cluster. Respecting state 2, we can observe a significant reduction in the obtained results when comparing the absorption probabilities starting in state 1. In this case, we have probabilities about 0.07 of absorption in the first, second and third clusters and probability 0.05 of absorption in the fourth cluster. Regarding the absorption in state 6, we observe a probability of absorption of about 0.93 in the first, second and third clusters and a probability of absorption of about 0.95 in the fourth cluster. In what respects the state 3, we have a different situation. In the second and fourth clusters, we do not have absorption probabilities in state 5, which is justified by the fact that we do not have probabilities of transition from state 3 to state 5 in the TPM of these two clusters. However, in the first and third clusters, we can verify a probability of absorption of about 0.03. Regarding the absorption in 47 state 6, we can observe values of 1 in the second and fourth clusters – since we do not have absorption probabilities in state 5 – and probabilities of absorption of about 0.97 in the first and third clusters. Finally, starting from state 4, we have a situation where we do not have absorption probabilities in state 5 in the first, second and fourth clusters. Nevertheless, in the third cluster, we can observe a probability of absorption of about 0.03. Regarding the absorption in state 6, in the first, second, and fourth clusters, we have probabilities of absorption of 1 – similar to the situation in the probabilities of absorption starting in state 3 – and a value of circa 0.98 in the third cluster. To conclude these last results, similarly to what was observed in the evaluation of TPM results, the absorption probabilities do not exactly reflect the level of risk previously predicted. However, it is possible to observe that the absorption probabilities do not vary significantly from cluster to cluster. Therefore, we can say that the results are aligned with the risk evaluation initially performed, which is corroborated by the interpretation of the results in the estimated TPM. After an analysis of the results obtained in each credit category (modified and unmodified), considering the main objective of this dissertation, it is necessary to compare the results obtained between modified and unmodified credits. Only then can we deduce some conclusions, thus respecting the purpose of this dissertation. The first thing to note is that there are no transitions from states 5 and 6 as these states are absorbing. This repercussion was expected considering that these two states correspond to situations where the credit is reduced to zero, i.e., it terminates. By comparing the results, the first event to note is the difference between the probability of remaining or transitioning to state 1, which corresponds to the normal performance state. It is possible to observe that the results obtained do not significantly differ between modified and unmodified credits, although there are slightly higher values in credits that were modified. Examining the events related to state 5, which, as mentioned above, corresponds to a situation where an individual anticipated the payment of credit (prepayment), we can conclude that the probability of moving to this state from any other state, is always greater in unmodified credits. This culmination is what we expected, as the modifications are mostly reflected in the maturity of the contract. When a loan is modified, its maturity always tends to increase relative to the initial conditions, coupled with the fact that the fees associated with the loan – predominantly the interest rate – in their total, even though by installment, which is monthly, decrease in order to facilitate the payment of the loan. Regarding state 6, we can conclude that the probability of transitioning to this state, i.e., the probability that the bank is forced to terminate the contract due to consecutive payment failures, is lower in almost all clusters in mortgages that suffered modifications than in loans which were never modified, reaching a probability of zero in some cases. Analyzing the remaining states, that is, the states that correspond to the proceeding of contracts, firstly we can notice that the probability of retracting one or more states, interpreted as the recovery from late payment of contracts, is comparatively higher in modified credits than in credits whose conditions have not changed since their inception. Lastly, we can perceive that the probability of moving from state 2 (delinquency) to state 3 (pre-default) and moving from state 3 to state 4 (default) is relatively lower in modified credits, even if regarding state 1 (current/normal performance), the probability of transitioning to state 2 is lower in unmodified credits. 48 Overall, we can see that the probabilities related to the transition from states that correspond to a normal performance or a short delay in the payment of contracts to states that show a longer delay in the payment of credits are lower in loans that were modified than on unmodified mortgages. Similarly, the probability of a forced termination of a loan is always lower in modified credits than in contracts whose conditions have never changed. Regarding the mean absorption times, in the appendix, we can first verify that the modified credits take significantly more steps to being reduced to zero, i.e., to reach an absorbing state, compared to the unmodified credits. Additionally, we can observe that we only have mean absorption times for state 4 in unmodified credits due to the reasons previously stated. In the modified credits, it takes about 1500 steps for the credit to transition from state 1 (current or normal performance) to being reduced to zero. This status, either occurring by being prepaid or by a situation of a third party, short or note sales, except for the second cluster, where it takes almost 1600 steps, contrasting with the unmodified credits, that present a number of steps between about 530 and 545. Regarding the transition from the second state to states 5 and 6, we can observe that, in modified credits it takes approximately 1300 steps in clusters 2 and 4, and almost 1400 steps in clusters 1 and 3 while in unmodified credits it takes a number of steps between approximately 80 and 95. Finally, regarding the transition from state 3 to states 5 and 6 in modified credits, there are more different situations from cluster to cluster, since, in the first cluster, there are around 1390 steps, while in the second cluster this result does not reach 1300, being about 1290 steps. In the third and fourth clusters, the results exhibit a value of slightly more than 1400 steps. On the other hand, in unmodified credits, we can verify that, in the first cluster, it takes about 58 steps to reach an absorbing state, and in the second cluster, it takes about 38 steps. Additionally, we can observe an average of about 62 to go from the third state to states 5 and 6 in the third cluster, and an average of 52 steps on the fourth cluster. Finally, regarding the transition from state 4 to states 5 and 6, we can notice that in the first cluster and third clusters, it takes approximately 45 steps, while in the second cluster this result is lower, presenting a value of an average of 19 steps to reach an absorbing state. In what concerns to the fourth cluster, we have an intermediate value of 31 steps. Comparing these results, we can see that regarding state 1, modified credits have three times the steps of those verified in unmodified credits. In state 2, we can observe about 15 times more steps in modified credits and about 30 times more steps in state 3 in relation to unmodified credits. This exceptionally significant difference between modified and unmodified credits is not necessarily justified by the fact that in modified loans, it truly takes longer to reach an absorbing state than in unmodified credits. However, it may mean that there are many more transitions for these states in absolute terms in unmodified credits. It is understandable to think that, when we evaluate the number of steps in a universe in which the majority of individuals have not transitioned to any absorbing state, the result will be a much higher number of steps than in a universe where a large part of individuals has transitioned to an absorbing state. That is a result of a weighting of individuals who, in fact, have transitioned and those who have not, which are significantly more. Concerning the absorption probabilities, the first thing we can notice is that both modified and unmodified credits have the same behavior as the days past due increase – both types of credits exhibit a decrease in the absorption probabilities in state 5 and an increase in the absorption probabilities in state 6. Nevertheless, there are some differences in these results that are quite noticeable. When we 49 talk about absorption probabilities in state 5, we can verify that starting in state 1, the unmodified credits display much higher values than the modified credits. Nevertheless, it is possible to observe that the situation is reversed starting in states 2 and 3: modified credits reveal that the probability that the chain will be absorbed in state 5 is substantially higher than in unmodified credits. Regarding the probability of the chain being absorbed in state 6, we can observe a parallel situation to the one verified in relation to the probability of absorption in state 5. In this case, we can observe that, starting in state 1, the probability of absorption in state 6 is always higher in modified credits than in unmodified credits. On the other hand, when we start in one of the other states, the probability that the chain will be absorbed in state 6 is always higher for unmodified credits. Before we can affirm that the changes were effective, and because the results in the modified credits did not turn out to be significantly better, it becomes necessary to have statistical evidence on this matter. In this way, homogeneity tests were performed, in order to conclude if the TPM of modified credits and the TPM of unmodified credits are not homogeneous, evidencing, in that case, success in the implementation of the modifications. These results can be observed in Table 5.19. Table 5.19 - Homogeneity Tests ClustersModified,Unmodified ChiSq Statistic d.o.f. p-value Clusters1,1 0.1923401 35 1 Clusters1,2 0.2423116 35 1 Clusters1,3 0.2269922 35 1 Clusters1,4 0.2142722 35 1 Clusters2,1 0.1687174 35 1 Clusters2,2 0.2176723 35 1 Clusters2,3 0.2041316 35 1 Clusters2,4 0.1890173 35 1 Clusters3,1 1.446257 35 1 Clusters3,2 1.448682 35 1 Clusters3,3 1.445312 35 1 Clusters3,4 1.448133 35 1 Clusters4,1 1.429183 35 1 Clusters4,2 1.436412 35 1 Clusters4,3 1.427905 35 1 Clusters4,4 1.433984 35 1 These results reveal that we have the same conclusion for the homogeneity test between any cluster. Considering that we have a hypothesis test in which the null hypothesis represents homogeneity and the alternative hypothesis represents no homogeneity among clusters, such as 𝐻0:𝑇ℎ𝑒𝑟𝑒 𝑖𝑠 ℎ𝑜𝑚𝑜𝑔𝑒𝑛𝑒𝑖𝑡𝑦 𝑣𝑒𝑟𝑠𝑢𝑠 𝐻1:𝑇ℎ𝑒𝑟𝑒 𝑖𝑠 𝑛𝑜 ℎ𝑜𝑚𝑜𝑔𝑒𝑛𝑒𝑖𝑡𝑦 (5.17) and also considering that we reject the null hypothesis (𝐻0) for a p-value lower than an alpha value (α), we can conclude that, always having a p-value equal to 1, we do not reject the null hypothesis. 56 Ferles, C. & Stafylopatis, A. (2013). Self-Organizing Hidden Markov Model Map (SOHMMM). Neural networks: the official journal of the International Neural Network Society. 48C. 133-147. 10.1016/j.neunet.2013.07.011. Gómez, S., Arenas, A., Borge-Holthoefer, J., Meloni, S., Moreno, Y. (2010). Discrete-time Markov chain approach to contact-based disease spreading in complex networks. EPL (Europhysics Letters), 89 (3). Gottschau, A. (1992). Exchangeability in multivariate Markov chain models. Biometrics, 751–763. Hougaard, P. Lifetime Data Anal (1999) 5: 239. https://doi.org/10.1023/A:1009672031531. Leow, M. and Crook, J. (2014). Intensity models and transition probabilities for credit card loan delinquencies. European Journal of Operational Research, 236 (2), 685-694. doi:10.1016/j.ejor.2013.12.026. Li, Y., Zhu, M., Klein, R., Kong, N. (2014). Using a partially observable Markov chain model to assess colonoscopy screening strategies–a cohort study. European Journal of Operational Research, 238 (1), 313–326. Malik, M., & Thomas, L. C. (2012). Transition matrix models of consumer credit ratings. International Journal of Forecasting, 28 (1), 261-272. doi:10.1016/j.ijforecast.2011.01.007. Maskawa, J.-i. (2003). Multivariate Markov chain modeling for stock markets. Physica A: Statistical Mechanics and its Applications, 324 (1-2), 317–322. Massoni, S., Olteanu, M & Rousset, P. “Career-path analysis using drifting Markov models (DMM) and self-organizing maps”. MASHS, 2010, Lille, France. ffhal-00443530f Mehran, F. (1989). Longitudinal analysis of employment and unemployment based on matched rotation samples. Labour, 3 (1), 3–20. Morimoto, H. (2016). Hidden Markov Models and Self-Organizing Maps Applied to Stroke Incidence. Open Journal of Applied Sciences. doi:06.158-168. 10.4236/ojapps.2016.63017. Nicolau, J., Riedlinger, F. I. (2015). Estimation and inference in multivariate markov chains. Statistical Papers, 56 (4), 1163–1173. Page, L., Brin, S., Motwani, R, Winogard, T. (1998). The PageRank Citation Ranking: Bringing Order to the Web. Quercia, R. G., Lei D. & Janneke R. (2009). Loan Modifications and Redefault Risk: An Examination of Short-Term Impact. Cityscape: A Journal of Policy Development and Research, 11 (3), 171-194. Raftery, A., E. (1985). A Model for High-Order Markov Chains. Journal of the Royal Statistical Society, 47 (3), 528-539. Raftery, A., Tavaré, S. (1994). Estimation and modelling repeated patterns in high order markov chains with the mixture transition distribution model. Applied Statistics, 179–199. Régis, D. E., & Artes, R. (2016). Using multi-state Markov models to identify credit card risk. Production, 26 (2), 330-344. doi:10.1590/0103-6513.160814. 57 Sahin, A. D., Sen, Z. (2001). First-order Markov chain approach to wind speed modelling. Journal of Wind Engineering and Industrial Aerodynamics, 89 (3-4), 263–269. Shamshad, A., Bawadi, M., Hussin, W. W., Majid, T., Sanusi, S. (2005). First and second order Markov chain models for synthetic generation of wind speed time series. Energy 30 (5), 693–708. Siu, T.-K., Ching, W.-K., Fung, S. E., Ng, M. K. (2005). On a multivariate Markov chain model for credit risk measurement. Quantitative Finance, 5 (6), 543–556. Somervuo, P. (2000). Competing hidden Markov models on the self-organizing map. In Proceedings of the International Joint Conference on Neural Networks, volume 3, pages 169–174, Piscataway, NJ. Helsinki University of Technology. Spedicato, G.A., Kang T.S., Yalamanchi, S.B., Yadav, D. & Cordón, I., (2014). The markovchain package: A package for easily handling discrete Markov chains in R. Retrieved 19 June 2019 from https://cran.rproject.org/web/packages/markovchain/vignettes/an_introduction_to_markovchain_package. pdf. Spedicato, G.A., Kang T.S., Yalamanchi S.B., Yadav D. (2019) The markovchain package: A package for easily handling Discrete Markov Chains in R. Retrieved 19 June 2019 from https://cran.rproject.org/web/packages/markovchain/markovchain.pdf. Sperandio, M, Bernardon, D. P. & Garcia, V. J., "Building forecasting Markov models with Self- Organizing Maps," 45th International Universities Power Engineering Conference UPEC2010, Cardiff, Wales, 2010, pp. 1-5. Sperandio, M, Bernardon, D. P. & Garcia, V. J., "Building forecasting Markov models with Self- Organizing Maps," 45th International Universities Power Engineering Conference UPEC2010, Cardiff, Wales, 2010, pp. 1-5. Tracy, J., & Wright, J. (2016). Payment changes and default risk: The impact of refinancing on expected credit losses. Journal of Urban Economics, 93, 60–70. Tsiliyannis, C. A. (2018). Markov chain modeling and forecasting of product returns in remanufacturing based on stock mean-age. European Journal of Operational Research. Turchin, P. B. (1986). Modelling the effect of host patch size on mexican bean beetle emigration. Ecology 67 (1), 124–132. Yadav, D., Kang, T.S. & Spedicato, G.A. (2017). Higher, possibly multivariate, Order Markov Chains in markovchain package. Retrieved 19 June 2019 from https://cran.rproject.org/web/packages/markovchain/vignettes/higher_order_markov_chains.pdf. Yin, Hujun. (2008). The Self-Organizing Maps: Background, Theories, Extensions and Applications, 725- 726. doi:10.1007/978-3-540-78293-3_17 Yu, Lean & Wang, S. & Lai, Kin Keung & Zhou, L. (2008). Bio-inspired credit risk analysis: Computational intelligence with support vector machines. doi:10.1007/978-3-540-77803- 58 9. APPENDIX Table 9.1 - Mean Absorption Times (Modified Credits) Cluster 1 States 1 2 3 1515.702 1398.271 1386.923 Cluster 2 States 1 2 3 1490.038 1314.810 1293.732 Cluster 3 States 1 2 3 1578.866 1397.751 1407.882 Cluster 4 States 1 2 3 1521.531 1309.561 1420.507 Table 9.2 - Mean Absorption Times (Unmodified Credits) Cluster 1 States 1 2 3 4 541.069 92.946 57.563 45.125 Cluster 2 States 1 2 3 4 534.745 96.080 37.833 19.000 Cluster 3 States 1 2 3 4 544.725 95.650 62.366 44.137 Cluster 4 States 1 2 3 4 532.011 82.557 52.027 31.000 59 10. ANNEXES Table 10.1 - Acquisition Data Elements (source: Fannie Mae) Element/Variable Type Description Allowable Values/Calculations Borrower Credit Score at Origination Numeric A numerical value used by the financial services industry to evaluate the quality of borrower credit. When this term is used by Fannie Mae, it is referring to the "classic" FICO score developed by Fair Isaac Corporation. ▪ 300 – 850 ▪ Blank (if Credit Score is < 300 or > 850 or unknown) Co-Borrower Credit Score at Origination Numeric A numerical value used by the financial services industry to evaluate the quality of co-borrower credit. When this term is used by Fannie Mae, it is referring to the "classic" FICO score developed by Fair Isaac Corporation. ▪ 300 – 850 ▪ Blank (if Credit Score is < 300 or > 850, unknown, or is not applicable) First Time Home Buyer Indicator Categorical An indicator that denotes if the borrower or co-borrower qualifies as a first-time homebuyer ▪ Y = Yes ▪ N = No ▪ U = Unknown Loan Identifier A unique identifier for the mortgage loan. Variable of acquisition and performance files. Number of Borrowers Numeric The number of individuals obligated to repay the mortgage loan. ▪ 1 – 10 Original Debt to Income Ratio Numeric A ratio calculated at origination derived by dividing the borrower’s total monthly obligations (including housing expense) by stable monthly income. This calculation is used to determine the mortgage amount for which a borrower qualifies. ▪ 1% – 64% ▪ Blank (if DTI is = 0, or ≥ 65, unknown, or if the mortgage loan is a HARP refinance Origination Channel Categoric Channel refers to the three options: Retail (R), Correspondent (C), and Broker (B) ▪ R ▪ B ▪ C Origination Interest Rate Numeric The original interest rate on a mortgage loan as identified in the original mortgage loan documents. ▪ Blank = Unknown Original Loan Term Numeric The number of months in which regularly scheduled borrower payments are due under the terms of the related mortgage documents. ▪ 60 – 419 60 Original Loan-to- Value (LTV) Numeric A ratio calculated at the time of origination for a mortgage loan. The Original LTV reflects the loan-to- value ratio of the loan amount secured by a mortgaged property on the origination date of the underlying mortgage loan. ▪ 0% - 97% ▪ Blank (if LTV is > 97% or unknown) Original Combined Loan-to-Value (CLTV) Numeric A ratio calculated at the time of origination for a mortgage loan. The CLTV reflects the loan-to-value ratio inclusive of all loans secured by a mortgaged property on the origination date of the underlying mortgage loan. ▪ 0% - 200% ▪ Blank (if CLTV is > 200% or unknown) Original Unpaid Principal Balance (UPB) Numeric The original amount of mortgage loan as indicated by the mortgage documents. Origination Date Date The date of the note. ▪ YYYY 61 Table 10.2 - Performance Data Elements (source: Fannie Mae) Element/Variable Type Description Allowable Values Current Actual UPB Numeric The current actual outstanding unpaid principal balance of a mortgage loan as it contributes to the current outstanding balance of the Reference Pool. Current Interest Rate Numeric The rate of interest in effect for the periodic installment due. Current Loan Delinquency Status Categorical The number of months the obligor is delinquent as determined by the governing mortgage documents. ▪ 1 = Current, or less than 20 days past due ▪ 2 = 30 – 59 days ▪ 3 = 60 – 89 days ▪ 4 = 90 – 119 days ▪ X = Unknown Maturity Date Date The month and year in which a mortgage loan is scheduled to be paid in full as defined in the mortgage loan documents. ▪ YYYY Modification Flag Categorical An indicator that denotes if the mortgage loan has been modified. ▪ Y = Yes ▪ N = No Modification Date Date The number of months occurred since the mortgage loan’s origination date and the moment of its modification. Available solely for modified loans. Principal Forgiveness Amount Numeric A reduction of the UPB owed on a mortgage by a borrower that is formally agreed to by the lender and the borrower, usually in conjunction with a loan modification. Zero Balance Code Categorical A code indicating the reason the mortgage loan’s balance was reduced to zero. ▪ 01 = Prepaid or Matured ▪ 02 = Third Party Sale ▪ 03 = Short Sale ▪ 06 = Repurchased ▪ 09 = Deed-in-Lieu, REO ▪ 15 = Note Sale Page | i