Skip to main content
QUICK REVIEW

[Paper Review] Long Short-Term Memory Neural Network for Financial Time Series

Carmina Fjellström|arXiv (Cornell University)|Jan 20, 2022
Stock Market Forecasting MethodsDecision Sciences6 citations
TL;DR

This paper proposes an ensemble of parallel Long Short-Term Memory (LSTM) networks for binary classification of stock price movements using daily returns from the Stockholm OMX30 index. By aggregating predictions based on a consensus threshold, the model achieves higher average daily returns, superior cumulative performance, and lower volatility than both a full-index portfolio and a random portfolio, resulting in improved risk-adjusted returns.

ABSTRACT

Performance forecasting is an age-old problem in economics and finance. Recently, developments in machine learning and neural networks have given rise to non-linear time series models that provide modern and promising alternatives to traditional methods of analysis. In this paper, we present an ensemble of independent and parallel long short-term memory (LSTM) neural networks for the prediction of stock price movement. LSTMs have been shown to be especially suited for time series data due to their ability to incorporate past information, while neural network ensembles have been found to reduce variability in results and improve generalization. A binary classification problem based on the median of returns is used, and the ensemble's forecast depends on a threshold value, which is the minimum number of LSTMs required to agree upon the result. The model is applied to the constituents of the smaller, less efficient Stockholm OMX30 instead of other major market indices such as the DJIA and S&P500 commonly found in literature. With a straightforward trading strategy, comparisons with a randomly chosen portfolio and a portfolio containing all the stocks in the index show that the portfolio resulting from the LSTM ensemble provides better average daily returns and higher cumulative returns over time. Moreover, the LSTM portfolio also exhibits less volatility, leading to higher risk-return ratios.

Motivation & Objective

  • To develop a machine learning approach for forecasting stock price movements in less efficient, smaller markets like the OMX30.
  • To evaluate the performance of an ensemble of independent LSTMs in comparison to traditional portfolios and random selection.
  • To assess whether LSTM-based models can deliver superior risk-adjusted returns in non-macro market indices.
  • To explore the impact of model ensembling and threshold-based consensus on prediction stability and generalization.

Proposed method

  • An ensemble of independent and parallel LSTMs is trained on individual stock return sequences from the OMX30 constituents.
  • The model frames the task as a binary classification: predicting whether a stock’s next-day return exceeds the median return across all stocks.
  • The final ensemble prediction is determined by a threshold: a minimum number of LSTMs must agree on the same class (up or down).
  • A simple trading strategy allocates capital based on the ensemble’s consensus forecast, with long positions taken when more than half the LSTMs predict an upward move.
  • Performance is evaluated using standard risk-adjusted metrics including annualized volatility, Sharpe ratio, and Sortino ratio, with the risk-free rate derived from Swedish 1-month T-bills.
  • Comparisons are made against a benchmark portfolio holding all OMX30 stocks and a randomly selected portfolio over the full sample period.

Experimental results

Research questions

  • RQ1Can an ensemble of LSTMs outperform a full-market portfolio in terms of risk-adjusted returns on a smaller, less efficient index like OMX30?
  • RQ2Does consensus-based voting among parallel LSTMs improve prediction stability and reduce variance compared to single-model approaches?
  • RQ3How does the LSTM ensemble perform relative to a random portfolio in terms of cumulative returns and volatility?
  • RQ4To what extent does the model’s performance depend on the threshold for consensus in the ensemble prediction?

Key findings

  • The LSTM-based portfolio achieved higher average daily returns than both the all-stocks portfolio and the random portfolio over the full period.
  • The LSTM portfolio delivered higher cumulative returns and exhibited lower annualized volatility across all years in the sample, including 2007–2008 and 2018, which were periods of high market stress.
  • In 11 out of 13 years, the LSTM portfolio had a higher Sharpe ratio than the all-stocks portfolio, with the exception of 2013 and 2014, where the all-stocks portfolio slightly outperformed.
  • The LSTM portfolio consistently achieved a higher Sortino ratio than the all-stocks portfolio in 10 out of 13 years, indicating better downside risk control.
  • The model’s performance was robust during volatile periods: in 2008, the LSTM portfolio had a lower volatility (35.10%) than the all-stocks portfolio (41.84%) and a less negative Sharpe ratio (-0.70 vs. -1.11).
  • The results suggest that the ensemble approach reduces model variance and enhances generalization, particularly in less efficient markets like the OMX30.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.