BILSTM Model for Machine Learning Stock Prediction and Portfolio Construction in the Context of Covid-19 Pandemic

Kaiting Li
DOI: https://doi.org/10.61173/q8zeqe61
2024-08-14
Abstract:This study used Bidirectional Long Short Term Memory (BiLSTM) neural network model to learn the stock prices of six representative companies from different industries, and evaluated their performance during the period significantly affected by the COVID-19 pandemic from 2019 to 2021. These companies represent industries such as finance, industrial manufacturing, energy, technology, biopharmaceuticals, and consumer goods. A set of characteristic indicators, such as moving averages, momentum indicators, and trading volume based indices, were designed based on historical stock data to provide input data for the BiLSTM model and enhance its ability to capture temporal dynamics of data. The predictive ability of the model is evaluated through performance indicators such as mean square error. This study also applies Monte Carlo simulation to construct investment portfolios based on model predictions, exploring the optimal asset allocation to maximize Sharpe’s ratio or minimize volatility at different stages of the COVID-19 crisis. The research results indicate that the BiLSTM model effectively predicts stock price trends, especially when market conditions are stable, by utilizing its ability to simultaneously process past and future input data. Despite facing challenges in predicting accuracy during extreme market fluctuations, such as those experienced in the stage of the outbreak of the pandemic, the overall performance of the model is good. The investment portfolio constructed using these predictions performs better than the S&P 500 index, demonstrating superiority in both return and risk levels, highlighting the effectiveness of combining machine learning technology with financial investment portfolio management strategies.
What problem does this paper attempt to address?