Back to search

Brock University

Enhancing Stock Price Predictions: The Impact of Sentiment Analysis on Forecasting Accuracy Across Models and Time Horizons

Abstract

dc:description.abstract

This study tests the performance of various models of forecasting stock prices at short-term (oneyear) and long-term (five-year) horizons, with sentiment analysis to determine its contribution to predictability. Tested models are SARIMAX, Random Forest, SVM, LSTM, GRU, and Regression, on various industry sectors and volatility classes. Our findings indicate that models perform better in one-year forecasts than five-year forecasts, with Regression and Random Forest performing with the least Root Mean Square Percentage Error (RMSPE) across the board. Sentiment analysis was of greatest benefit to certain models, particularly SARIMAX, whose topperforming setups tended to be those in which it was utilized. Sentiment analysis benefited most for stocks and industries that had high volatility and high-speed movement in the market, such as the energy and technology sectors. In addition, the study examined optimal lag values for prediction and established a trend towards decreased lags in fast-changing industries and increased lags in stable industries. The study emphasizes tailoring prediction models to the specific nature of stocks, industry movements, and volatility, with the caveat that a complex strategy is necessary to enhance the accuracy and validity of stock price predictions. This research contributes to the body of knowledge on how different determinants, including sentiment and industry forces, lead to stock price predictability and is of interest to investors and financial analysts.

Degree

thesis:*
Name thesis:degree_name
M.Sc. Mathematics and Statistics
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Faculty of Mathematics and Science
Department dc:contributor.department
Department of Mathematics
Grantor
Brock University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ahmad, Sheraz

Subjects

dc:subject × 2

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10464/19203

Chain of custody

source
Harvested from
Brock University
Base URL
brocku.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Ahmad, Sheraz. Enhancing Stock Price Predictions: The Impact of Sentiment Analysis on Forecasting Accuracy Across Models and Time Horizons. Masters thesis, Brock University, 2025. https://hdl.handle.net/10464/19203