Onepagecode

Onepagecode

Predicting Stock Movements and Choosing Portfolios Using Company Relationship Graphs

Predicting stock price movements is a challenging and profitable task that many researchers and professionals are interested in.

Onepagecode's avatar
Onepagecode
Aug 19, 2024
∙ Paid

The stock market is becoming more complicated and unpredictable, which makes it even harder to forecast stock prices. The Efficient Market Hypothesis (EMH) suggests that all available information is already reflected in stock prices, meaning that using public information might not help in predicting how stocks will perform. However, research has shown that information does not always spread quickly in financial markets, especially among companies that are connected through things like supply chains or partnerships. When investors can gather and act on this delayed information, it can improve their decision-making and lead to better long-term profits.

Read the original research paper here: Use this link!

The Role of Graph Neural Networks

Graph Neural Networks (GNNs) have shown strong performance in various fields like traffic prediction and recommendation systems. GNNs are good at pulling together information from related entities, which is particularly useful in the stock market where companies are interconnected in many ways — such as through competition or collaborations. The various relationships among companies create opportunities to enhance predictions about stock movements using GNNs.

However, adapting GNNs for stock prediction brings two main challenges. Firstly, the company relationships are complex and do not have a straightforward representation. To make GNNs useful for predicting stock prices, it is necessary to create a new way to represent these company relationships using numerical weights that show how strongly companies are connected. Secondly, stock prices are influenced not just by the relationships of the nearby companies in the network, but also by their own past price movements; thus, the GNN must be designed to take into account both the spatial (relationship) and temporal (time-based) aspects of stock price changes.

Key Innovations in Stock Price Prediction

This research proposes a new approach to tackle these challenges. It introduces a Semantic Company Relationship Graph (SCRG) which captures the connections between companies based on their co-occurring mentions in financial news. This method uses information about these relationships to better predict stock movements.

Additionally, a new type of GNN called the Non-Independent and Identically Distributed Spatial-Temporal Graph Neural Network (NIST-GNN) is created to handle both the spatial and temporal factors together. This framework, named NGNN-SCRG, is specifically designed to predict stock price movements by analyzing the intricate relationships between companies and the timing of stock price changes.

Simulations of this new method have shown that it outperforms existing models in terms of profit and risk-adjusted returns. Notably, it has achieved a significant improvement in risk-adjusted returns compared to the best baseline models.

Furthermore, this research reveals how public information spreads in the U.S. financial market, providing evidence against the Efficient Market Hypothesis. It shows that public information tends to spread with at least a one-day lag, meaning there is an opportunity for investors to capitalize on this delay.

Practical Applications and Importance

This research is important because it allows investors to make better decisions based on a deeper understanding of how connected companies influence each other and how information is shared over time. By implementing these advanced predictive models, investors can enhance their trading strategies, potentially leading to greater profits.

Understanding and applying this approach can significantly alter the way individuals and firms analyze the market, moving beyond traditional metrics to consider the complex web of relationships between companies. This playing field allows investors the chance to gain an edge in predicting stock movements, thus improving their overall investment strategies.

Understanding Temporal Methods

Temporal methods focus on analyzing time-series data, which means they look at how stock prices change over time. Some of the popular tools used are simple statistical models like linear regression and more advanced machine learning techniques like recurrent neural networks (RNNs).

  • Statistical Methods: These include techniques like linear regression, where relationships between different financial factors are analyzed. While effective, they usually assume a straightforward relationship, which means they can struggle with more complicated patterns found in today’s financial data.

  • Machine Learning Techniques: These models, including RNNs, utilize sequences to understand how prices are connected over time. They can incorporate various features like news and financial indicators to improve predictions. However, these methods often miss out on the connections companies have with each other, which can also influence stock movements.

Exploring Spatial Methods

Spatial methods analyze the relationships between companies, recognizing that they are interconnected rather than isolated entities. This perspective stems from the development of graph neural networks (GNNs), which can model these connections effectively.

In constructing these company networks, several approaches have been used:

  1. Correlation Graphs: These build relationships based on how similarly stock prices move together. However, they can often be simplistic, using only positive or negative correlations.

  2. WikiData Relationships: By using publicly available data, researchers can establish connections based on various relationship types. Although insightful, this approach can lack precision and may become outdated if the data is not regularly updated.

  3. Vector Distances: Companies can also be represented as points in a mathematical space to determine their relationships. While innovative, these methods can struggle to incorporate real-time changes in company connections.

Introducing Spatial-Temporal Methods

Recognizing the limitations of both temporal and spatial methods, spatial-temporal approaches combine both aspects to create a more comprehensive prediction model. They utilize Spatial-Temporal Graph Neural Networks (ST-GNNs) to simultaneously process the relationships between companies and the time-based changes in stock prices.

While ST-GNNs have shown promise, particularly in other fields like traffic forecasting, they have not been widely applied in stock predictions. One challenge has been the assumption of a consistent timeline in data, which may not always be the case with stock movements.

Importance and Potential Applications

This research is vital because predicting stock movements accurately can lead to better investment decisions and financial strategies. Implementing these advanced methods can enhance trading simulations and portfolio selections.

By utilizing a new framework that integrates temporal and spatial factors, this approach can improve the accuracy of predictions. It could be used in a financial setting to help investors adjust their portfolios more effectively based on both historical data and real-time market events, thus contributing to more informed investment choices.

User's avatar

Continue reading this post for free, courtesy of Onepagecode.

Or purchase a paid subscription.
© 2025 Onepagecode · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture