Abstract
In this paper, we study the connection between companies in the Swedish capital market, specifically focusing on 28 companies within the OMX30 index. The network structure of the market is constructed using various methods to determine inter-company distances. We employ hierarchical clustering to identify relationships within rolling time windows, generating one-dimensional time series of distances between clustering trees. These time series reflect evolving market relationships. By applying statistical process control—specifically the Shewhart control chart—to these time series, we successfully detect abnormal structural changes in the financial market, such as those triggered by the COVID-19 pandemic.
Introduction
Financial markets are complex, interconnected systems where the behavior of one company can significantly influence others. Traditional financial metrics often focus on price volatility or index levels, which may overlook critical structural shifts in how companies are related. There is an ongoing debate in financial econometrics regarding the best way to define "connectedness." Simple correlation measures often fail to capture the directional nature of market shocks—for instance, how a crash in the energy sector might specifically drag down manufacturing.
Furthermore, tracking these high-dimensional relationships as they evolve daily is a significant mathematical challenge. This research seeks to simplify these complex interactions into a monitorable signal, providing regulators and investors with a robust tool to alert them to abnormal structural changes in the market.
Methodology
The proposed framework integrates network theory, machine learning, and statistical quality control into a multi-step analytical pipeline.
Measuring Connectedness and Network Construction
Two primary methods are used to measure dissimilarity between stocks:
- Pearson Correlation Coefficient Dissimilarity (PCCD): A symmetric measure of linear relationship.
- Generalized Variance Decomposition Dissimilarity (GVDD): An asymmetric measure based on Vector Autoregression (VAR) models, capturing how shocks in one stock contribute to the forecast error of another.
Stocks are treated as nodes in a graph, with these dissimilarity measures serving as edge weights. To simplify the resulting dense network, we apply "single linkage" hierarchical clustering to create a tree structure (dendrogram) for every 63-trading-day (approx. 3-month) rolling window.
Tree Distance and Anomaly Detection
To track structural evolution, we calculate the distance between trees from consecutive days using Clustering Information Distance. This metric, based on the mutual information of tree splits, is more robust than traditional measures like Robinson-Foulds distance. The resulting daily tree distances form a time series.
Finally, we apply a Shewhart control chart to this time series. Any distance exceeding five standard deviations from the mean is flagged as an "abnormal change," signaling a significant reorganization of market relationships.
Results and Discussion
The analysis of 28 major Swedish companies from 2017 to 2022 yielded several key insights:
- The "Investor" Anchor: The investment firm Investor AB was identified as the most frequent "center" of the network (the node with the shortest maximum distance to all others). This suggests that diversified investment firms act as primary transmitters of market information in the Swedish ecosystem.
- Sensitivity of Asymmetric Measures: The GVDD method proved significantly more sensitive than the symmetric PCCD. GVDD-based tree distances were larger in magnitude (peaking near 26 vs. 14 for PCCD) and more volatile, capturing nuances in directional influence that simple correlation ignores.
- Detecting the COVID-19 Shock: The method successfully flagged the structural breakdown and reorganization of the market during the onset of the pandemic. Notably, 7 of the 20 largest structural jumps in the 5-year study period occurred during the first wave of COVID-19 in 2020.
- Predictive Limitations: While highly effective at detecting structural changes as they occur, the current model is not yet a predictive tool for future market returns. Vector Autoregressive analysis showed that while tree distances correlate with their own past values, they do not easily predict the OMX30 index itself.
Conclusion
This study demonstrates that treating the stock market as a dynamic network of evolving relationships provides a powerful lens for monitoring stability. By simplifying complex dependencies into tree structures and monitoring their divergence over time, we can detect systemic shocks that traditional price-based metrics might miss. Future research will explore different rolling window sizes to understand market "memory" and apply more advanced control charts, such as CUSUM or EWMA, for even earlier detection of subtle structural shifts.
Summary updated