IDEAS home Printed from https://ideas.repec.org/p/ecb/ecbwps/20263277.html

Learning probability of default and stress testing

Author

Listed:
  • Nocciola, Luca
  • Scaglioni, Samuele

Abstract

We analyze the Probability of Default (PD) of non-financial corporations in Europe using Random Forests (RF) and assess implications for stress testing the banking sector. To this end, we exploit data on firms’ financial statements (Orbis) and banks’ credit registry (Anacredit). We show that RF displays stronger risk sensitivity than logistic regression in stress testing, shedding new light on the non-linear effect of scenario severity on PD. Moreover, we show how RF-based PD can be used in a network of banks and firms to stress test the banking sector through loan exposures as a key transmission channel of adverse scenarios. A granular inspection of banks’ riskiness indices derived from this network sheds light also on RF’s superior ability in capturing non-linearity thanks to its capability in identifying “tail banks”. Our work is relevant for central banks and banking supervisors alike. JEL Classification: C53, C55, C58, G17, G21

Suggested Citation

  • Nocciola, Luca & Scaglioni, Samuele, 2026. "Learning probability of default and stress testing," Working Paper Series 3277, European Central Bank.
  • Handle: RePEc:ecb:ecbwps:20263277
    Note: 2600378
    as

    Download full text from publisher

    File URL: https://www.ecb.europa.eu//pub/pdf/scpwps/ecb.wp3277~46bd788158.en.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Skavysh, Vladimir & Priazhkina, Sofia & Guala, Diego & Bromley, Thomas R., 2023. "Quantum monte carlo for economics: Stress testing and macroeconomic deep learning," Journal of Economic Dynamics and Control, Elsevier, vol. 153(C).
    2. Butaru, Florentin & Chen, Qingqing & Clark, Brian & Das, Sanmay & Lo, Andrew W. & Siddique, Akhtar, 2016. "Risk and risk management in the credit card industry," Journal of Banking & Finance, Elsevier, vol. 72(C), pages 218-239.
    3. Jiaming Liu & Xuemei Zhang & Haitao Xiong, 2024. "Credit risk prediction based on causal machine learning: Bayesian network learning, default inference, and interpretation," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(5), pages 1625-1660, August.
    4. Buse, Rebekka & Görgen, Konstantin & Schienle, Melanie, 2025. "Predicting value at risk for cryptocurrencies with generalized random forests," International Journal of Forecasting, Elsevier, vol. 41(3), pages 1199-1222.
    5. Yiannis Dendramis & Elias Tzavalis & Aikaterini Cheimarioti, 2025. "Measuring the Default Risk of Small Business Loans: Improved Credit Risk Prediction Using Deep Learning," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(7), pages 2277-2297, November.
    6. Nazemi, Abdolreza & Rezazadeh, Hani & Fabozzi, Frank J. & Höchstötter, Markus, 2022. "Deep learning for modeling the collection rate for third-party buyers," International Journal of Forecasting, Elsevier, vol. 38(1), pages 240-252.
    7. Andrea Conti & Giacomo Morelli, 2025. "Bayesian probability of default models with Langevin dynamics," Quantitative Finance, Taylor & Francis Journals, vol. 25(8), pages 1333-1341, August.
    8. Aldasoro, Inaki & Hördahl, Peter & Schrimpf, Andreas & Zhu, Sonya, 2025. "Predicting Financial Market Stress with Machine Learning," CEPR Discussion Papers 20439, Centre for Economic Policy Research.
    9. Luca Barbaglia & Sebastiano Manzan & Elisa Tosetti, 2023. "Forecasting Loan Default in Europe with Machine Learning," Journal of Financial Econometrics, Oxford University Press, vol. 21(2), pages 569-596.
    10. Pierre-Olivier Gourinchas & Şebnem Kalemli-Özcan & Veronika Penciakova & Nick Sander, 2025. "SME Failures Under Large Liquidity Shocks: an Application to the Covid-19 Crisis," Journal of the European Economic Association, European Economic Association, vol. 23(2), pages 431-480.
    11. Pierre-Olivier Gourinchas & Ṣebnem Kalemli-Özcan & Veronika Penciakova & Nick Sander, 2020. "COVID-19 and SME Failures," FRB Atlanta Working Paper 2020-21, Federal Reserve Bank of Atlanta.
    12. Nazemi, Abdolreza & Fabozzi, Frank J., 2024. "Interpretable machine learning for creditor recovery rates," Journal of Banking & Finance, Elsevier, vol. 164(C).
    13. Mr. Jorge A Chan-Lau, 2017. "Lasso Regressions and Forecasting Models in Applied Stress Testing," IMF Working Papers 2017/108, International Monetary Fund.
    14. Battiston, Stefano & Delli Gatti, Domenico & Gallegati, Mauro & Greenwald, Bruce & Stiglitz, Joseph E., 2012. "Liaisons dangereuses: Increasing connectivity, risk sharing, and systemic risk," Journal of Economic Dynamics and Control, Elsevier, vol. 36(8), pages 1121-1141.
    15. Khandani, Amir E. & Kim, Adlar J. & Lo, Andrew W., 2010. "Consumer credit-risk models via machine-learning algorithms," Journal of Banking & Finance, Elsevier, vol. 34(11), pages 2767-2787, November.
    16. Eric Severin & David Veganzones & Souhir Chlibi, 2023. "Influence of earnings management on forecasting corporate failure," Post-Print hal-04335071, HAL.
    17. Emambakhsh, Tina & Fuchs, Maximilian & Kördel, Simon & Kouratzoglou, Charalampos & Lelli, Chiara & Pizzeghello, Riccardo & Salleo, Carmelo & Spaggiari, Martina, 2023. "The Road to Paris: stress testing the transition towards a net-zero economy," Occasional Paper Series 328, European Central Bank.
    18. Niklas Bussmann & Paolo Giudici & Dimitri Marinelli & Jochen Papenbrock, 2021. "Explainable Machine Learning in Credit Risk Management," Computational Economics, Springer;Society for Computational Economics, vol. 57(1), pages 203-216, January.
    19. Luca Nocciola, 2022. "Finite Sample Forecast Properties and Window Length Under Breaks in Cointegrated Systems," Advances in Econometrics, in: Essays in Honor of M. Hashem Pesaran: Prediction and Macro Modeling, volume 43, pages 167-196, Emerald Group Publishing Limited.
    20. Weidong Guo & Zach Zhizhong Zhou, 2022. "A comparative study of combining tree‐based feature selection methods and classifiers in personal loan default prediction," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(6), pages 1248-1313, September.
    21. Kaposty, Florian & Kriebel, Johannes & Löderbusch, Matthias, 2020. "Predicting loss given default in leasing: A closer look at models and variable selection," International Journal of Forecasting, Elsevier, vol. 36(2), pages 248-266.
    22. Franch, Fabio & Nocciola, Luca & Vouldis, Angelos, 2024. "Temporal networks and financial contagion," Journal of Financial Stability, Elsevier, vol. 71(C).
    23. João Gabriel Moraes Souza & Daniel Tavares Castro & Yaohao Peng & Ivan Ricardo Gartner, 2024. "A Machine Learning-Based Analysis on the Causality of Financial Stress in Banking Institutions," Computational Economics, Springer;Society for Computational Economics, vol. 64(3), pages 1857-1890, September.
    24. Jones, Stewart & Johnstone, David & Wilson, Roy, 2015. "An empirical evaluation of the performance of binary classifiers in the prediction of credit ratings changes," Journal of Banking & Finance, Elsevier, vol. 56(C), pages 72-85.
    25. Elliot Beck & Michael Wolf, 2025. "Forecasting inflation with the hedged random forest," Working Papers 2025-07, Swiss National Bank.
    26. Pesce, Simone & Errico, Marco & Pollio, Luigi, 2025. "Nonlinearities and heterogeneity in firms response to aggregate fluctuations: what can we learn from machine learning?," Working Paper Series 3107, European Central Bank.
    27. Siyu Bie & Francis X. Diebold & Jingyu He & Junye Li, 2024. "Machine Learning and the Yield Curve: Tree-Based Macroeconomic Regime Switching," Papers 2408.12863, arXiv.org, revised May 2025.
    28. Philippe Goulet Coulombe & Maxime Leroux & Dalibor Stevanovic & Stéphane Surprenant, 2022. "How is machine learning useful for macroeconomic forecasting?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 920-964, August.
    29. Peng, Qiao & McKillop, Donal & Quinn, Barry & Liu, Kailong, 2025. "Modeling and predicting failure in US credit unions," International Journal of Forecasting, Elsevier, vol. 41(3), pages 1237-1259.
    30. Konietschke, Paul & Metzler, Julian & Ponte Marques, Aurea, 2026. "A quantile probability model for sectoral corporate defaults in Europe," Working Paper Series 3207, European Central Bank.
    31. Bellotti, Anthony & Brigo, Damiano & Gambetti, Paolo & Vrins, Frédéric, 2021. "Forecasting recovery rates on non-performing loans with machine learning," International Journal of Forecasting, Elsevier, vol. 37(1), pages 428-444.
    32. Landaberry, Victoria & Caccioli, Fabio & Rodriguez-Martinez, Anahi & Baron, Andrea & Martinez-Jaramillo, Serafin & Lluberas, Rodrigo, 2021. "The contribution of the intra-firm exposures network to systemic risk," Latin American Journal of Central Banking (previously Monetaria), Elsevier, vol. 2(2).
    33. Veganzones, David & Séverin, Eric & Chlibi, Souhir, 2023. "Influence of earnings management on forecasting corporate failure," International Journal of Forecasting, Elsevier, vol. 39(1), pages 123-143.
    34. Kellner, Ralf & Nagl, Maximilian & Rösch, Daniel, 2022. "Opening the black box – Quantile neural networks for loss given default prediction," Journal of Banking & Finance, Elsevier, vol. 134(C).
    35. Apaar Sadhwani & Kay Giesecke & Justin Sirignano, 2021. "Deep Learning for Mortgage Risk [The Subprime Virus]," Journal of Financial Econometrics, Oxford University Press, vol. 19(2), pages 313-368.
    36. Castrén, Olli & Dées, Stéphane & Zaher, Fadi, 2010. "Stress-testing euro area corporate default probabilities using a global macroeconomic model," Journal of Financial Stability, Elsevier, vol. 6(2), pages 64-78, June.
    37. Mohammad Shamsu Uddin & Guotai Chi & Mazin A. M. Al Janabi & Tabassum Habib & Kunpeng Yuan, 2022. "Modeling credit risk with a multi‐stage hybrid model: An alternative statistical approach," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(7), pages 1386-1415, November.
    38. Budnik, Katarzyna & Ponte Marques, Aurea & Giglio, Carla & Grassi, Alberto & Durrani, Agha & Figueres, Juan Manuel & Konietschke, Paul & Le Grand, Catherine & Metzler, Julian & Población García, Franc, 2024. "Advancements in stress-testing methodologies for financial stability applications," Occasional Paper Series 348, European Central Bank.
    39. Aykut Ekinci & Safa Sen, 2024. "Forecasting Bank Failure in the U.S.: A Cost-Sensitive Approach," Computational Economics, Springer;Society for Computational Economics, vol. 64(6), pages 3161-3179, December.
    40. Audrino, Francesco & Kostrov, Alexander & Ortega, Juan-Pablo, 2019. "Predicting U.S. Bank Failures with MIDAS Logit Models," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 54(6), pages 2575-2603, December.
    41. Alogoskoufis, Spyros & Dunz, Nepomuk & Emambakhsh, Tina & Hennig, Tristan & Kaijser, Michiel & Kouratzoglou, Charalampos & Muñoz, Manuel A. & Parisi, Laura & Salleo, Carmelo, 2021. "ECB’s economy-wide climate stress test," Occasional Paper Series 281, European Central Bank.
    42. Philippe Goulet Coulombe, 2024. "The macroeconomy as a random forest," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(3), pages 401-421, April.
    43. Sulkhan Chavleishvili & Simone Manganelli, 2024. "Forecasting and stress testing with quantile vector autoregression," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(1), pages 66-85, January.
    44. Beutel, Johannes & List, Sophia & von Schweinitz, Gregor, 2019. "Does machine learning help us predict banking crises?," Journal of Financial Stability, Elsevier, vol. 45(C).
    45. Bräuning, Michael & Malikkidou, Despo & Scricco, Giorgio & Scalone, Stefano, 2019. "A new approach to Early Warning Systems for small European banks," Working Paper Series 2348, European Central Bank.
    46. Chee Kian Leong, 2016. "Credit Risk Scoring with Bayesian Network Models," Computational Economics, Springer;Society for Computational Economics, vol. 47(3), pages 423-446, March.
    47. Marcus Buckmann & Galina Potjagailo, 2025. "Infusing economically motivated structure into machine learning methods," Bank of England Staff Working Paper series 1144, Bank of England.
    48. Shaukat Ali Shahee & Rujavi Patel, 2025. "An Explainable ADASYN‐Based Focal Loss Approach for Credit Assessment," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(4), pages 1513-1530, July.
    49. Gogas, Periklis & Papadimitriou, Theophilos & Agrapetidou, Anna, 2018. "Forecasting bank failures and stress testing: A machine learning approach," International Journal of Forecasting, Elsevier, vol. 34(3), pages 440-455.
    50. Figueres, Juan Manuel & Prieto, Barbara Montero & Scalone, Valerio & Hooft, James ’t & Ter Steege, Lucas & Vallotto, Clarissa, 2025. "A framework to assess the severity of adverse scenarios in EU-wide stress tests," Macroprudential Bulletin, European Central Bank, vol. 32.
    51. Petropoulos, Anastasios & Siakoulis, Vasilis & Stavroulakis, Evangelos & Vlachogiannakis, Nikolaos E., 2020. "Predicting bank insolvencies using machine learning techniques," International Journal of Forecasting, Elsevier, vol. 36(3), pages 1092-1113.
    52. Marcelo C. Medeiros & Gabriel F. R. Vasconcelos & Álvaro Veiga & Eduardo Zilberman, 2021. "Forecasting Inflation in a Data-Rich Environment: The Benefits of Machine Learning Methods," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 39(1), pages 98-119, January.
    53. Hyeongjun Kim & Hoon Cho & Doojin Ryu, 2022. "Corporate Bankruptcy Prediction Using Machine Learning Methodologies with a Focus on Sequential Data," Computational Economics, Springer;Society for Computational Economics, vol. 59(3), pages 1231-1249, March.
    54. Abbondanza, Aurora & Albertazzi, Ugo & Caccavaio, Marianna & Djekic, Davor & Gattinoni, Valentina & Georgescu, Oana-Maria & Ponte Marques, Aurea, 2025. "Integrating climate risk into the 2025 EU-wide stress test: the effects of climate risks for firms," Macroprudential Bulletin, European Central Bank, vol. 32.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. repec:ecb:ecbdps:202630 is not listed on IDEAS
    2. Kristóf, Tamás & Virág, Miklós, 2022. "EU-27 bank failure prediction with C5.0 decision trees and deep learning neural networks," Research in International Business and Finance, Elsevier, vol. 61(C).
    3. Hoang, Daniel & Wiegratz, Kevin, 2022. "Machine learning methods in finance: Recent applications and prospects," Working Paper Series in Economics 158, Karlsruhe Institute of Technology (KIT), Department of Economics and Management.
    4. Doumpos, Michalis & Zopounidis, Constantin & Gounopoulos, Dimitrios & Platanakis, Emmanouil & Zhang, Wenke, 2023. "Operational research and artificial intelligence methods in banking," European Journal of Operational Research, Elsevier, vol. 306(1), pages 1-16.
    5. He, Canchun & Huang, Dejin & Jia, Ruo & Wang, Xi, 2026. "Machine learning and insurer failure prediction," International Journal of Forecasting, Elsevier, vol. 42(4), pages 1163-1180.
    6. Citterio, Alberto, 2024. "Bank failure prediction models: Review and outlook," Socio-Economic Planning Sciences, Elsevier, vol. 92(C).
    7. Hoang Hiep Nguyen & Jean-Laurent Viviani & Sami Ben Jabeur, 2023. "Bankruptcy prediction using machine learning and Shapley additive explanations," Post-Print hal-04223161, HAL.
    8. Philippe Goulet Coulombe, 2026. "LGB+: A Macroeconomic Forecasting Road Test," Papers 2605.09740, arXiv.org.
    9. Zhao, Yu & Lin, Sen & Kong, Ao, 2026. "Reconciling interpretability and accuracy: Evidence from categorical factors," International Review of Economics & Finance, Elsevier, vol. 107(C).
    10. Klieber, Karin & Coulombe, Philippe Goulet, 2025. "Opening the black box of local projections," Working Paper Series 3105, European Central Bank.
    11. Andrés Alonso Robisco & José Manuel Carbó Martínez, 2022. "Measuring the model risk-adjusted performance of machine learning algorithms in credit default prediction," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-35, December.
    12. Salman Bahoo & Marco Cucculelli & Xhoana Goga & Jasmine Mondolo, 2024. "Artificial intelligence in Finance: a comprehensive review through bibliometric and content analysis," SN Business & Economics, Springer, vol. 4(2), pages 1-46, February.
    13. Kellner, Ralf & Nagl, Maximilian & Rösch, Daniel, 2022. "Opening the black box – Quantile neural networks for loss given default prediction," Journal of Banking & Finance, Elsevier, vol. 134(C).
    14. Victor DeMiguel & Javier Gil-Bazo & Francisco J. Nogales & André A. P. Santos, 2021. "Can machine learning help to select portfolios of mutual funds?," Economics Working Papers 1772, Department of Economics and Business, Universitat Pompeu Fabra.
    15. Ying Zhou & Xia Lin & Guotai Chi & Peng Jin & Mengtong Li, 2024. "EWT‐SMOTE to improve default prediction performance in imbalanced data: Analysis of Chinese data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(3), pages 615-643, April.
    16. Chen, Dangxing & Ye, Jiahui & Ye, Weicheng, 2023. "Interpretable selective learning in credit risk," Research in International Business and Finance, Elsevier, vol. 65(C).
    17. Carl Remlinger & Bri`ere Marie & Alasseur Cl'emence & Joseph Mikael, 2021. "Expert Aggregation for Financial Forecasting," Papers 2111.15365, arXiv.org, revised Jul 2023.
    18. Paraschiv, Florentina & Schmid, Markus & Wahlstrøm, Ranik Raaen, 2026. "Bankruptcy prediction of privately held SMEs using feature selection methods," Journal of Empirical Finance, Elsevier, vol. 86(C).
    19. Sunaina Kanojia & Anubhav Arora, 2025. "Machine learning for credit risk management through cross-economy evidence in default prediction," SN Business & Economics, Springer, vol. 5(12), pages 1-19, December.
    20. Lisa Crosato & Caterina Liberati & Marco Repetto, 2021. "Look Who's Talking: Interpretable Machine Learning for Assessing Italian SMEs Credit Default," Papers 2108.13914, arXiv.org, revised Sep 2021.
    21. Philippe Goulet Coulombe & Maximilian Goebel & Karin Klieber, 2024. "Dual Interpretation of Machine Learning Forecasts," Papers 2412.13076, arXiv.org.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C55 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Large Data Sets: Modeling and Analysis
    • C58 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Financial Econometrics
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation
    • G21 - Financial Economics - - Financial Institutions and Services - - - Banks; Other Depository Institutions; Micro Finance Institutions; Mortgages

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ecb:ecbwps:20263277. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Official Publications (email available below). General contact details of provider: https://edirc.repec.org/data/emieude.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.