Please use this identifier to cite or link to this item:
https://www.um.edu.mt/library/oar/handle/123456789/151498| Title: | Optimising machine learning models to increase financial performance |
| Authors: | Ciancio, Ivan (2026) |
| Keywords: | Investment analysis Stock price forecasting Machine learning Forecasting Investments -- Mathematical models Decision making Portfolio management Regression analysis |
| Issue Date: | 2026 |
| Citation: | Ciancio, I. (2026). Optimising machine learning models to increase financial performance (Master's dissertation). |
| Abstract: | This research explores the optimisation of machine learning models for stock trading, with a particular focus on why models that achieve superior prediction accuracy often fail to generate profitable trading outcomes. Although models such as Long Short-Term Memory (LSTM) networks, Transformers, and Prophet are commonly evaluated using metrics including Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE), lower prediction error does not necessarily translate into improved financial performance. This disconnect raises fundamental questions regarding how machine learning models for financial applications should be evaluated and optimised. Building upon an existing study, this work extends the analysis to 22 equities across multiple market sectors over the period 2013–2023. The models are first evaluated using traditional accuracy metrics before being deployed in realistic trading simulations incorporating transaction costs. Progressively refined trading strategies are then developed, including regime-aware filtering using the Hurst exponent in Experiments 1B and 1C, as well as a generalised contrarian execution framework incorporating volatility-adaptive position sizing, volatility-dependent slippage modelling, and stop-loss risk management for the Bidirectional GRU (BiGRU) experiment. The results confirm that, consistent with the original study, the Transformer achieves the lowest prediction error among the evaluated machine learning models. However, when deployed within a realistic trading environment, all three baseline models generate substantial losses. Surprisingly, a naïve predictor achieves lower error than the majority of the machine learning models. This finding highlights a fundamental limitation in recent financial time-series forecasting literature, where improvements in error reduction are often assumed to imply improved trading performance. In contrast, directional accuracy is found to correlate positively with trading returns. The proposed trading frameworks reverse these losses, with the best-performing configuration achieving a mean test return of approximately +20% and a positive mean Sharpe ratio across the 22-stock universe, an improvement of 57.77 percentage points over the baseline when both are evaluated on the same COVID-excluded window. Supported by statistical significance testing, these findings indicate that execution-layer design is strongly associated with the translation of machine learning forecasts into profitable trading strategies. Because the final configuration also changed the prediction architecture, feature set, and training regime, the improvement cannot be attributed to the execution layer alone; the most controlled evidence for the execution layer is the date-aligned comparison between the Experiment 1A LSTM and the Experiment 1B LSTM, in which the architecture and training objective are unchanged and the execution rules are redesigned, although the evaluation window, normalisation and Transformer implementation also differ; Experiment 1C, which replaces the LSTM with a GRU, provides supporting evidence. |
| Description: | M.Sc.(Melit.) |
| URI: | https://www.um.edu.mt/library/oar/handle/123456789/151498 |
| Appears in Collections: | Dissertations - FacICT - 2026 Dissertations - FacICTAI - 2026 |
Files in This Item:
| File | Description | Size | Format | |
|---|---|---|---|---|
| 2619ICTICS520005089438_1.PDF | 7.4 MB | Adobe PDF | View/Open |
Items in OAR@UM are protected by copyright, with all rights reserved, unless otherwise indicated.
