• A
  • A
  • A
  • ABC
  • ABC
  • ABC
  • А
  • А
  • А
  • А
  • А
Regular version of the site

Training of LSTM Configurations for Alpha Generation through Trend Prediction in SPY

Student: Vlasiuk Dmitrii

Supervisor: Elena Dimova

Faculty: International College of Economics and Finance

Educational Programme: International Programme in Economics and Finance (Bachelor)

Final Grade: 9

Year of Graduation: 2024

In this study, we aimed to improve the prediction of SPY trends using Long Short-Term Memory (LSTM) networks through advanced hyperparameter optimization techniques. Initially, manual tuning of key parameters such as window size, batch size, learning rate, and the number of neurons was performed to establish a baseline performance. The model was trained on financial data with various technical indicators after extensive preprocessing, including winsorization, wavelet transform for noise reduction, and normalization. To enhance the model's accuracy, Bayesian optimization and DEAP neuroevolution were employed. Bayesian optimization, leveraging probabilistic modeling, proved particularly effective in navigating the high-dimensional hyperparameter space, significantly improving the precision and recall of the model. DEAP neuroevolution, inspired by natural selection, provided another layer of optimization, though it was found to be less effective than Bayesian optimization in this context. The Bayesian optimized model was further analyzed for consistency. It was observed that training with a higher standard deviation constant and testing with a lower one significantly improved the precision of trend predictions. This strategy revealed hidden trends, enhancing the model's predictive power. The results showed precision improvements from 67% to 83% for negative trends and 62% to 85% for positive trends, despite a slight reduction in recall. The variability in monthly profits was estimated to range between 2.1% to 6.3%, which is reasonable given the model's high precision and the dynamic nature of financial markets. This study underscores the importance of regular retraining and adaptive strategies to maintain model performance over time.

Full text (added June 10, 2024)

Student Theses at HSE must be completed in accordance with the University Rules and regulations specified by each educational programme.

Summaries of all theses must be published and made freely available on the HSE website.

The full text of a thesis can be published in open access on the HSE website only if the authoring student (copyright holder) agrees, or, if the thesis was written by a team of students, if all the co-authors (copyright holders) agree. After a thesis is published on the HSE website, it obtains the status of an online publication.

Student theses are objects of copyright and their use is subject to limitations in accordance with the Russian Federation’s law on intellectual property.

In the event that a thesis is quoted or otherwise used, reference to the author’s name and the source of quotation is required.

Search all student theses