knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
IRB models can produce two outputs. In the case of Foundation IRB that output is a probability of default (PD). For Advanced IRB that is a probability of default and a loss given default (LGD). Using the PD and the LGD we can compute the capital requirement for a borrower. We can then compute the risk weighted assets of that borrower.
Steps to computing tier 1 capital:
These are actually quite simple steps, but amazingly this process can take up to a year to complete.
So now we have a dataset of borrowers, their exposure at each point in time and a PD. Given we are doing a foundation IRB model, we will use the same LGD for every borrower, prescribed by Basel as X.
lending_club %>% mutate(K = capital_requirement(PD, LGD = ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.