Improving the prediction of asset returns with machine learning by using a custom loss function

Jean Dessain
DOI: https://doi.org/10.2139/ssrn.3973086
2021-01-01
SSRN Electronic Journal
Abstract:The loss function in supervised deep learning is a key element for training AI algorithms. For models aiming at predicting asset returns, not all prediction errors are equal in terms of impact on the efficiency of the algorithm. Indeed, some errors result in poor investment decisions while other errors have no financial consequences. This is critical for the choice of the performance metric to assess the ability of machine learning algorithms to predict returns. This should also impact the choice for the most efficient loss function. Mean Squared Error (MSE) is the most popular loss function for regression algorithms, but it is not the most efficient one for algorithms predicting asset returns. In this article: (a) we develop several custom loss functions considering the asymmetry in the objective of the algorithm. (b) We compare these custom loss functions to improve the algorithms predicting asset returns. (c) We identify a very efficient custom loss function that significantly improves the prediction of asset returns, and which we confirm to be robust.
What problem does this paper attempt to address?