AUTHOR=Bussmann Niklas , Giudici Paolo , Tanda Alessandra , Yu Ellen Pei-Yi TITLE=Explainable machine learning to predict the cost of capital JOURNAL=Frontiers in Artificial Intelligence VOLUME=Volume 8 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2025.1578190 DOI=10.3389/frai.2025.1578190 ISSN=2624-8212 ABSTRACT=This study investigates the impact of financial and non-financial factors on a firm's ex-ante cost of capital, which is the reflection of investors' perception on a firm's riskiness. Departing from previous literature, we apply the XGBoost algorithm and two explainable Artificial Intelligence methods, namely the Shapley value approach and Lorenz Model Selection to a sample of more than 1,400 listed companies worldwide. Results confirm the relevance of key financial indicators such as firm size, ROE, firm portfolio risk, but also individuate firm's non-financial features and country's institutional quality as relevant predictors for the cost of capital. These results suggest the importance of non-financial indicators and country institutional quality on the firm's ex-ante cost of equity that expresses investors' risk perception. Our findings pave the way for future investigations on the impact of ESG and country factors in predicting the cost of capital.