{"title":"Mean Absolute Directional Loss as a New Loss Function for Machine Learning Problems in Algorithmic Investment Strategies","authors":"Jakub Michańków, Paweł Sakowski, Robert Ślepaczuk","doi":"arxiv-2309.10546","DOIUrl":null,"url":null,"abstract":"This paper investigates the issue of an adequate loss function in the\noptimization of machine learning models used in the forecasting of financial\ntime series for the purpose of algorithmic investment strategies (AIS)\nconstruction. We propose the Mean Absolute Directional Loss (MADL) function,\nsolving important problems of classical forecast error functions in extracting\ninformation from forecasts to create efficient buy/sell signals in algorithmic\ninvestment strategies. Finally, based on the data from two different asset\nclasses (cryptocurrencies: Bitcoin and commodities: Crude Oil), we show that\nthe new loss function enables us to select better hyperparameters for the LSTM\nmodel and obtain more efficient investment strategies, with regard to\nrisk-adjusted return metrics on the out-of-sample data.","PeriodicalId":501372,"journal":{"name":"arXiv - QuantFin - General Finance","volume":"203 ","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-09-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - QuantFin - General Finance","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2309.10546","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This paper investigates the issue of an adequate loss function in the
optimization of machine learning models used in the forecasting of financial
time series for the purpose of algorithmic investment strategies (AIS)
construction. We propose the Mean Absolute Directional Loss (MADL) function,
solving important problems of classical forecast error functions in extracting
information from forecasts to create efficient buy/sell signals in algorithmic
investment strategies. Finally, based on the data from two different asset
classes (cryptocurrencies: Bitcoin and commodities: Crude Oil), we show that
the new loss function enables us to select better hyperparameters for the LSTM
model and obtain more efficient investment strategies, with regard to
risk-adjusted return metrics on the out-of-sample data.