This Matlab code allows to reproduce most of the tables and figures of the article "Loss functions for LGD Models Comparison". The matrices contain loss given default (LGD) and regulatory capital (RC) forecasts errors issued from the six competing LGD models examined in the paper for the 1,947 defaulted contracts of the test sample. The Matlab script allows users to reproduce the main figures and tables (LGD and capital charge loss functions values, symmetric and asymmetric loss functions values of the competing models, density of the forecasts errors, etc.).
Scaillet Olivier, Gagliardini Patrick, and Ossola Elisa