IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i3p442-d1579232.html
   My bibliography  Save this article

Sustainability, Accuracy, Fairness, and Explainability (SAFE) Machine Learning in Quantitative Trading

Author

Listed:
  • Phan Tien Dung

    (Department of Economics and Management, University of Pavia, 27100 Pavia, Italy)

  • Paolo Giudici

    (Department of Economics and Management, University of Pavia, 27100 Pavia, Italy)

Abstract

The paper investigates the application of advanced machine learning (ML) methodologies, with a particular emphasis on state-of-the-art deep learning models, to predict financial market dynamics and maximize profitability through algorithmic trading strategies. The study compares the predictive capabilities and behavioral characteristics of traditional machine learning approaches, such as logistic regression and support vector machines, with those of highly sophisticated deep learning architectures, including Recurrent Neural Networks (RNNs), Long Short-Term Memory (LSTM) networks, and Gated Recurrent Units (GRUs). The findings underscore the fundamental distinctions between these methodologies, with deeply trained models exhibiting markedly different predictive behaviors and performance, particularly in capturing complex temporal patterns within financial data. A cornerstone of the paper is the introduction and rigorous analysis of a framework to evaluate models, by means of the SAFE framework (Sustainability, Accuracy, Fairness, and Explainability). The framework is designed to address the opacity of black-box ML models by systematically evaluating their behavior across a set of critical dimensions. It also demonstrates how models’ predictive outputs align with the observed data, thereby reinforcing their reliability and robustness. The paper leverages historical stock price data from International Business Machines Corporation (IBM). The dataset is partitioned into a training phase during which the models are calibrated, and a validation phase, used to evaluate the predictive performance of the generated trading signals. The study addresses two primary machine learning tasks: regression and classification. Classical models are utilized for classification tasks, with their outputs directly interpreted as trading signals, while advanced deep learning models are employed for regression, with predictions of future stock prices further processed into actionable trading strategies. To evaluate the effectiveness of each strategy, rigorous backtesting is conducted, incorporating visual representations such as equity curves to assess profitability and key risk metrics like maximum drawdown for risk management. Supplementary performance indicators, including hit rates and the incidence of false positions, are analyzed alongside the equity curves to provide a holistic assessment of each model’s performance. This comprehensive evaluation not only highlights the superiority of cutting-edge deep learning models in predicting financial market trends but also demonstrates the pivotal role of the SAFE framework in ensuring that machine learning models remain trustworthy, interpretable, and aligned with ethical considerations.

Suggested Citation

  • Phan Tien Dung & Paolo Giudici, 2025. "Sustainability, Accuracy, Fairness, and Explainability (SAFE) Machine Learning in Quantitative Trading," Mathematics, MDPI, vol. 13(3), pages 1-35, January.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:3:p:442-:d:1579232
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/3/442/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/3/442/
    Download Restriction: no
    ---><---

    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:gam:jmathe:v:13:y:2025:i:3:p:442-:d:1579232. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.