Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2021 Jun 9;11:12230. doi: 10.1038/s41598-021-91266-4

Loss of structural balance in stock markets

Eva Ferreira 1, Susan Orbe 1, Jone Ascorbebeitia 2, Brais Álvarez Pereira 3, Ernesto Estrada 4,5,6,
PMCID: PMC8190088  PMID: 34108544

Abstract

We use rank correlations as distance functions to establish the interconnectivity between stock returns, building weighted signed networks for the stocks of seven European countries, the US and Japan. We establish the theoretical relationship between the level of balance in a network and stock predictability, studying its evolution from 2005 to the third quarter of 2020. We find a clear balance–unbalance transition for six of the nine countries, following the August 2011 Black Monday in the US, when the Economic Policy Uncertainty index for this country reached its highest monthly level before the COVID-19 crisis. This sudden loss of balance is mainly caused by a reorganization of the market networks triggered by a group of low capitalization stocks belonging to the non-financial sector. After the transition, the stocks of companies in these groups become all negatively correlated between them and with most of the rest of the stocks in the market. The implied change in the network topology is directly related to a decrease in stock predictability, a finding with novel important implications for asset allocation and portfolio hedging strategies.

Subject terms: Complex networks, Applied mathematics

Introduction

The complex nature of the stock market is condensed in the phrase: “Economists are as perplexed as anyone by the behavior of the stock market”1. Understanding this complex behavior—characterized by a combination of saw-tooth movements and low-frequency upward and downward switches2—is a major goal in finance. However, the importance of stock markets goes beyond finance to impact macroeconomic modeling and policy discussion3. In fact, it has been recognized that the stock market is a good predictor of the business cycle and of the components of gross national product of a given country3. Special emphasis has been placed on understanding the role of risk and uncertainty in stock markets from different perspectives416, with a focus on security pricing and corporate investment decisions. At the end of the day, as said by Fischer and Merton3: “in the absence of uncertainty, much of what is interesting in finance disappears”.

As the majority of complex systems, stock markets have an exoskeleton formed by entities and complex interactions, which give rise to the observed patterns of the market behavior1720 (see Ref.21 for a review of the recent research in financial networks and their practical applicability). For the same set of entities, there are different forms to define the connectivity between them. A typical way of connecting financial institutions is by means of borrowing/lending relations2124. However, in the case of stock markets, where stocks represent the nodes of the network, the inter-stock connectivity is intended to capture the mutual trends of stocks over given periods of time. Mantegna25 proposed to quantify the degree of similarity between the synchronous time evolution of a pair of stock prices by the correlation coefficient ρij between the two stocks i and j. Then, this correlation coefficient is transformed into a distance using: dij=21-ρij. Mantegna’s approach has been widely extended in econophysics26 where it is ubiquitous nowadays as a way to define the connectivity between stocks. This approach has been used for instance for the construction of networks to analyze national or international stock markets2732. A characteristic feature of this approach is that although ρij-1,1, the distance dij used as a weight of the links between stocks is nonnegative. This allows the use of classical network techniques for their analysis (see Ref.33 for a review). To avoid certain loss of information inherent to the previous approach34, Tse et al.35 decide that an edge exists between a pair of stocks only if ρij>z for a given threshold z, which however retains the nonnegativity of the edge weights.

The importance of allowing explicit distinction between positive and negative interdependencies of stocks, which is lost in the previous approaches, was recently remarked by Stavroglou et al.36. They built separated networks based on positive and negative interdependencies. This separation may still hide some important structural characteristics of the systems under analysis. Fortunately, there is an area of graph theory that allows studying networks with the simultaneous presence of positive and negative links. These graphs, known as signed graphs, are known since the end of the 1950’s37 (see Ref.38 for a review), but only recently have emerged as an important tool in network theory3943. A focus on signed networks has been the theory of social balance37,44. It basically states that social triads where the three edges are positive (all-friends) or where two are negative and one is positive—the enemy of my enemy should be my friend—are more abundant in social systems than those having all-negative, or two positive and one negative ones. The first kind of networks are known as balanced, and the second ones as unbalanced (see Refs.3943 for applications).

Here we introduce the use of signed networks to represent stock markets of nine developed countries and to study the degree of balance. First note that in finance, the time varying behavior of networks is an important characteristic, since the time varying comovements become a risk factor45. Hence, we analyze the time variation of the degree of balance on stock networks between January 2005 and September 2020, thus addressing a gap pointed out in a recent study21. To build the graphs we use the rank correlations between stocks, which provide a measure of similarity better suited for financial distributions. We find a balance-unbalance transition (BUT) in six of the countries studied. The BUTs occurred around September/October 2011 for the US, Greece, Portugal, Ireland, and Spain, and later in France, which took place just after the Black Monday in August 2011. Neither Germany, nor Italy, nor Japan showed clear signs of this BUT. We discover that the observed BUTs are mainly triggered by a reorganization of the topology of the stock market networks. They consist of the movement of a few low capitalization stocks from the periphery to the center of the networks by forming cliques of fully-negative interdependencies among them and with most of the rest of the stocks in the market. These transitions impact directly on the naive predictability of stock prices from pairwise rank correlations. This is a novel finding with a direct impact on optimal asset allocation and hedging, which opens promising avenues for future research.

Theoretical approaches

Correlations and predictability of interrelated stock prices

To study the similarity between stock price changes we consider the time series of the log returns of stocks, Yit=logPit/Pit-1, where Pit is the daily adjusted closing price of the stock i at time t for t=1S. Let us consider the log return of three stocks forming the vectors Y1, Y2 and Y3, such that Yi=Yi1,,YiST. The similarity between the orderings of the log returns YA and YB of two stocks A and B can be captured by the Kendall’s tau

τ=2PYA-YAYB-YB>0-1, 1

where Y is an independent copy of the vector Y, =A,B, and P(X) is the probability of the event X. If two rankings are concordant, τ>0, if two rankings are independent, τ=0, and if the two rankings are discordant, τ<0.

When considering the correlations between three stocks forming a triad there are four cases that can emerge: (i) the three pairs of stocks are correlated: τY1,Y2>0, τY1,Y3>0 and τY2,Y3>0; (ii) one pair of stocks is correlated and two pairs are anticorrelated: τY1,Y2>0, τY1,Y3<0 and τY2,Y3<0; (iii) two pairs of stocks are correlated and one pair is anticorrelated: τY1,Y2>0, τY1,Y3>0 and τY2,Y3<0; (iv) the three pairs of stocks are anticorrelated: τY1,Y2<0, τY1,Y3<0 and τY2,Y3<0.

Let us focus on estimating the trend of one of the stocks from another in the correlation triad considering a time varying regression model (see Appendix B in the Supplementary Information (SI)). Let us write Y^i(t)Yji(t) for the nonparametric smoothed estimate of Yi from Yj: Y^i(t)=m^i(Yj(t)), where mi(·) is a non-specified unknown function. Then, for any stock, e.g., Y1, we can make two predictions from another stock, e.g., Y2. One of them is simply Y^1(t)Y2(t), and the other is using first Y2 to estimate Y3, and then estimate Y1 from the last, i.e., Y^1(t)Y^3Y2(t), that is Y^1(t)=m^1(Y^3(t)), where Y^3(t)=m^3(Y2(t)). In the cases (i) and (ii) the trends of Y1 estimated by Y^1(t)(Y2(t)) and by Y^1(t)(m^3(Y2(t))) are the same. In the case (iii) Y^1(t)(Y2(t)) estimates an increase of Y1 with the increase of Y2, while Y^1(t)(m^3(Y2(t))) estimates a decrease of Y1 with the increase of Y2. Therefore, observing the trend evolution of Y2 does not clearly estimate the trend of Y1 independently of the quality of the pairwise rank correlations. In other words, the trend of Y1 is unpredictable from Y2. A similar situation occurs for the case (iv).

In closing, the “predictability” of the trend of a stock Yi from that of Yj increases when the signs of the two estimations coincide. Otherwise, such predictability drops as a consequence of the different trends predicted by Y^itYjt and Y^i(t)(m^k(Yj(t))). If we represent the three stocks at the vertices of a triangle and the signs of the estimates as the corresponding edges, we have that the four cases analyzed before can be represented as in Fig. 1. Because the magnitude of τij(t) quantifies the quality of the estimation for each t, we suggest to replace the edges of the triangles in Fig. 1 by the corresponding values of Kendall’s tau instead of their estimates signs (for more details see Appendix B in the SI). In this case, a measure of the predictability of the stocks in a given triad is given by K~(t)=τij(t)τik(t)τjk(t), with K~(t)+1 corresponding to larger predictability and with K~(t)-1 to poorer predictability at time t. Obviously, we should extend this measure beyond triangles, which is what we do in the next Section.

Figure 1.

Figure 1

Graphical representation of the interdependencies between stocks Y1, Y2 and Y3 in a triad. Stocks are represented as the vertices of a triangle and edges represent the correlation between them as accounted for by Kendall’s tau. Positive are represented as solid (blue) lines between the corresponding stocks, and negative are represented as dashed (red) lines.

A triangle like those illustrated in Fig. 1 is known as a signed triangle. A signed triangle for which the product of its edge signs is positive is known as a balanced triangle (cases (i) and (ii) in Fig. 1). Otherwise, it is said to be unbalanced (cases (iii) and (iv) in Fig. 1). These concepts are naturally extended to networks of any size by means of the concept of signed graphs (see next Section). A signed graph where all the triangles (more generally all its cycles) are balanced is said to be balanced. Therefore, we move our scenario of stock predictability to that of the analysis of balance in signed stock networks.

Balance in weighted signed stock networks

Let the stocks in a given market be represented as a set of nodes V in a graph G=V,E,W, where EV×V is a set of edges which represent the correlations between pairs of stocks, and W:E[-1,+1] is a mapping that assigns a value between -1 and +1 to each edge. We call these graphs weighted signed stock networks (WSSNs). The edges of the WSSN are defined on the basis of time varying Kendall’s tau between the log returns of the stocks.

For any cycle in a WSSN we will say that it is positive if the product of all Kendall’s taus forming the edges of the cycle is positive. A WSSN is balanced if all its cycles are positive. However, the question is not to reduce the problem to a yes or not classification but to quantify how close or far a WSSN is from balance. To do so, we consider a hypothetical scenario in which a given WSSN G=V,E,W has evolved from a balanced network G=V,E,W. That is, we are interested in quantifying the departure of a given WSSN from a balanced version of itself. We define the equilibrium constant K for the equilibrium GG as K=exp-βF, where β denotes the inverse temperature of the network and F is the change of the Gibbs free energy of the system (for more details about the components of the equilibrium constant see Ref.41). The equilibrium constant is bounded as 0<K1, with the lower bound indicating a large departure of the WSSN from its balanced analogous and reaching K=1 when it is balanced. We prove in Appendix C of the SI that this K is related to K~, which was defined in the previous section to account for the product of the signs of all edges in the cycles of the WSSN.

To calculate balance in a signed network, Facchetti et al.40 used an intensive computational technique that assigns a +1 or a -1 to all the nodes so as to minimize the energy functional

hσ:=-v,wEJvwσvσw, 2

where σk+1,-1, k=1,,n with n equal to the number of nodes and Jvw accounts for the sign of the edge in the signed graph. Therefore, hσ:=-v,wAvwσvσw, where Avw are the entries of the adjacency matrix of a signed graph. The energy functional hσ is a quadratic form of the Hamiltonian: hσ=1TH^G1, where 1 is an all-ones vector. Here we use a different approach, which avoids the minimization of that energy functional, and which is based on the free energies FG and FG appearing in F=FG-FG. In this case we notice that the energy functional (2) is minimized if Jvwσvσw>0 and maximized if Jvwσvσw<0. Therefore, we identify this term with the Kendall’s tau: Jvwσvσw:=τvw, which means that H^G=-AG, such that correlated pairs of stocks contribute to the minimization of the energy functional and anticorrelated ones contribute in the opposite direction. Then, we have F=-β-1lnZG/ZG, where ZG=trexp-βH^G.

For the current work, we consider the Economic Policy Uncertainty (EPU) index46 as a proxy for the inverse temperature β. EPU is compiled for every country on a monthly basis and represents a level of “agitation” of the market at a given date. We then define a relative inverse temperature as βrel=EPU/maxEPU, where maxEPU is the maximum EPU reported for that country in the period of analysis. In this case, the risk is high when the “temperature” of the system at a given time is approaching the maximum temperature reached by that country in the whole period, βrel1. On the other hand, the risk is minimum when the temperature at a given time is much smaller than the maxim temperature of the period, βrel0.

This finally gives our measure of structural balance for a WSSN41,47:

K=ZGZG=trexp-βrelH^Gtrexp-βrelH^G=trexpβrelAGtrexpβrelAG. 3

In the Supplementary Information (Appendix C) we prove that K=1 if and only if the WSSN is balanced. The departure of K from unity characterizes the degree of unbalance that the WSSN has.

Weighted signed stock networks

In order to define the weight of the edges in the WSSNs we use Kendall’s tau rank correlation coefficients. Since we are interested in the time evolution of the stock networks, the edges are determined in terms of time varying rank correlations. The dependence between the stock log returns (YA,YB)T is estimated with the following nonparametric time varying Kendall’s tau estimator proposed by Ascorbebeitia et al.45:

τ^A,Bt=41-s=1Swh(t-s)2s,r=1Swh(t-s)wh(t-r)IYA(s)<YA(r),YB(s)<YB(r)-1 4

for t=1,,S, where wh(t-s)=(Sh)-1kt-s/Sh is a sequence of kernel weights that smooths over the time space, h>0 is the bandwidth that regulates the degree of smoothness, and I· is the indicator function. In all our calculations we consider the Epanechnikov kernel kx=341-x2Ix<1. This kernel assigns a higher weight to those values of the indicator function that are close in time and lower weights to observations of the indicator farther away from t. The smoothing parameter h is selected minimizing the mean squared error of the Kendall’s tau estimator in (4) (for more details see Appendix A in the SI and Ref.45).

Let us now fix t and calculate τ^ijt for every pair of stocks (ij) in a given market and define the rank correlations matrix Mt whose entries are the values of τ^ijt. Let εR+ be a given threshold. We create the matrix At whose entries are Aijt=τ^i,jtI{τ^i,jtε}. The threshold determines the value below which the correlation is considered to be negligible. Increasing ε decreases the number of connections in the corresponding network. We have considered ε=0.3 a reasonable value. Moroever, the main findings are robust to alternative specifications, such as ε=0.2 and ε=0.4. The matrix At is then the adjacency matrix of a WSSN at time t. Here we construct weighted adjacency matrices based on daily returns from January 2005 until September 2020. Therefore, we have a set of WSSNs obtained with matrices A=At=1,,At=S.

Results

We study the stock markets of France, Germany, Greece, Italy, Ireland, Japan, Portugal, Spain, and the US during the period between January 2005 and September 2020 (see “Methods” section for details about data). The first interesting observation is the large balance observed for all markets between January 2005 and August 2007, when all of them display K0.98. However, in five countries there are sudden drops of balance around September/October 2011. This transition from highly balanced to poorly balanced markets occurs in Ireland in September 2011 and in the US, Portugal, Greece, and Spain in October 2011. The transitions are observed by naked eye in the plots of the temporal evolution of balance (see top panels of Fig. 2a–e). For a quantitative analysis of these BUTs as well as the identification of the dates at which they occurred, we use the detrended cumulative sums (DCS) of the balance (see Fig. 2). In these five markets, the general trend is a decay of the balance from 2005 to 2020. Therefore, the DCS increases for those periods in which the balance does not follow the general trend, i.e., when it does not decay with time. A negative slope of the DCS in some periods indicates that the balance drops more abruptly during this period than the general decreasing trend. Then, we can observe that DCS has a positive slope in all five markets with BUT between January 2005 and September/October 2011. At this point, the DCS changes its slope indicating an abrupt decay of balance. We select the point in which this change of slope occurs as the date marking the BUT. We should notice that there are some differences in the behavior of the DCS in each specific market. The US, Portugal and Greece display an initial increasing period followed by a continuous decay one. Ireland displays a short period in which DCS has slope slightly positive but close to zero between September 2011 and January 2016 when it definitively starts to decay. The market in Spain interrupted the decay of its balance on April 2017 when it starts to recover balance at a rate similar to the one of the period between January 2005 to October 2011. The value of the balance drops dramatically again after the crisis produced by COVID-19 as can be seen in Fig. 2e. Finally, we have included the stock market of France in Fig. 2f because it displays a behavior similar to that of Spain, although the BUT occurs significantly later with respect to the other countries in this group, i.e., on September 2012.

Figure 2.

Figure 2

Balance degree evolution. (a) The US. (b) Portugal. (c) Ireland. (d) Greece. (e) Spain. (f) France. (Top panels) Illustration of the evolution of the balance for the period between January 2005 and September 2020 in the WSSN (blue line) and of its detrended cumulative sum (red line). (Bottom panels) Illustration of three snapshots of representative networks at different times (before, at, and after the BUT). The WSSNs are illustrated using the degree of the nodes as a proxy for the location of the nodes. The most central nodes are at the centre and the low degree nodes are located at the periphery of the graph. The colors of the edges correspond to the Kendall’s tau estimates, with links going from dark red for the most negative to blue for the positive ones. In the Supplementary Information we provide Matlab images of all the networks displayed in the figure where node labels are incorporated. The reader can zoom in these networks for details.

The markets of Germany, Italy, and Japan display very constant values of their balance across the whole period of analysis. Although there are some oscillations at certain specific dates, their DCS display an almost zero slope confirming the constancy of the balance of these markets (see Fig. 3).

Figure 3.

Figure 3

Balance degree evolution. (a) Germany. (b) Italy. (c) Japan. (Top panels) Illustration of the evolution of the balance for the period between January 2005 and September 2020 in the WSSN (blue line) and of its detrended cumulative sum (red line). (Bottom panels) Illustration of three snapshots of representative networks at different times (before, at, and after the BUT). The WSSNs are illustrated using the degree of the nodes as a proxy for the location of the nodes. The most central nodes are at the center and the low degree nodes are located at the periphery of the graph. The colors of the edges correspond to the Kendall’s tau estimates, with links going from dark red for the most negative to blue for the positive ones. In the Supplementary Information we provide Matlab images of all the networks displayed in the figure where node labels are incorporated. The reader can zoom in these networks for details.

Discussion

Among the factors that may influence the BUT in six out of nine countries studied, we should mention the global level of risk at which a given market is exposed to at a given time. We account for this factor through the parameter 0<βrel1, which is based on the relative EPU index. Following our theoretical model, when the level of global risk is very low, βrel0, we have that K1 and the corresponding WSSN tends to be balanced independently of its topology and edge weights. The analysis of the relative EPU values for all countries indicates that the level of risk accounted for by this indicator was relatively low from January 2005 to August 2007. This is exactly the same period for which a high balance was observed in all markets with K0.97. However, the relative EPU indices alone are not able to explain the BUTs observed in most markets around September/October 2011. For instance, the relative EPU index peaked at different values for different markets: Portugal (June 2016), the US (May 2020), Spain (October 2017), France (April 2017), Greece (November 2011) and Ireland (May 2020). It has been found that the US EPU can achieve better forecasting performance for foreign stock markets than the own national EPUs. This is particularly true during very high uncertainty episodes48 (see Appendix F in the SI for more details and references). Following this empirical observation, we can speculate that a plausible cause that triggered the BUT in five European countries were the events of August 2011, when the US EPU index rocketed to its highest value between 2005 and the COVID-19 crisis.

The topological analysis of BUT should necessarily start by considering the role of negative interdependencies. It is obvious that they are necessary for unbalance, i.e., a totally positive network cannot be unbalanced. However, it has been widely demonstrated in the mathematical literature that this is not a sufficient condition for unbalance, i.e., there are networks with many negative edges which are balanced42,47. As an illustrative example let us consider the WSSN of the US of September 3, 2010, which has 950 negative edges and a balance of K0.245 indicating its lack of balance. However, the US WSSN of February 18, 2011 also has 950 negative edges, but it is balanced with K0.946. Similarly, the WSSN of Portugal on July 6, 2012 (K0.700) and on May 3, 2019 (K0.407), both have 720 negative edges. The ratio of negative to total edges is neither a sufficient condition for balance. For instance, in Spain on August 12, 2005 the market was perfectly balanced (K=1), while on September 2007 it was unbalanced (K0.142), although both WSSNs have the same proportion of negative to total edges, i.e., 1.4%.

A detailed exploration of the WSSNs with low balance occurring after BUT (see Fig. 2) revealed the existence of small fully-negative cliques (FNC) formed by a group of s stocks (see Appendix E in the SI for a greater evaluation of networks snapshots). A FNC is highly unbalanced. That is, the balance of an FNC of s stocks is K=exp-βrels-1+s-1eβrel/(expβrels-1+s-1 e-βrel), which for a fixed value of βrel clearly tends to zero as s. Therefore, the unbalanced nature of the post-transition structure of stock markets is mainly due to the presence of these cliques of mutually anti-correlated stocks. Additionally, each of the stocks in the FNC increases significantly its number of negative connections with the rest of stocks after BUT (see Fig. 4), being also negatively connected to almost every other stock in the WSSN. This subgraph resembles a kind of graph known as complete split graph (CSG)49.

Figure 4.

Figure 4

Positive and negative cumulative centrality degrees. (a) The US. (b) Portugal. (c) Ireland. (d) Greece. (e) Spain. (f) France. Temporal evolution of the cumulative number of connections (degrees) of every stock in the FNC of the six countries where BUT occurred. The cumulative number of positive connections with other stocks are shown over the horizontal line, and the cumulative number of negative connections are shown below that line.

To explore the determinants of the lack of balance in these networks we simulate the structure of the networks displaying BUT by means of a quasi-CSG-WSSN (see “Methods” section for details) and compare it with a simulated random WSSN. The quasi-CSG-WSSNs have the same number of nodes and edges as the WSSNs but the size of the central clique is variable. We determine the “optimal” value of the sizes in the simulated networks, sopt, by minimizing the root mean square error (RMSE) between the spectrum of the real WSSN and that of the quasi-CSG-WSSN. In SI Appendix G, Table S1, we report that the RSME of the random model is about twice bigger than that of the quasi-CSG for the six countries where BUT occurs. This clearly indicates that the topological organization, more than the number of positive/negative connections, is what determines the lack of balance in these networks.

The size of the FNC correlates very well with the intensity of the drop in the mean values of K before and after the BUT (r0.857). Two other important characteristics of these FNC are that: (i) they are mainly formed by non-financial entities (see SI Appendix G, Table S1), and (ii) they are composed by small and micro-caps with the exception of SAR in Greece which is a mid-cap. We have shown (see Appendix H in the SI) that if we split the WSSN by financial (F) and non-financial (NF) sectors, then the BUT is observed mainly for the networks containing NF-NF interactions.

All in all, these BUTs change the predictability of the stocks in the way we have explained in “Correlations and predictability of interrelated stock prices” section from more predictable markets to more unpredictable ones.

Conclusions

Considering stock-stock correlations in stock markets as signed graphs allowed us to introduce the concept of balance into stock market networks for the first time. We related the level of balance in these networks with stock predictability and identified a previously unknown transition between balanced markets to unbalanced ones in six out of nine countries studied. These balance-unbalance transitions occur in the US, Greece, Portugal, Spain, and Ireland around September 2011, following the Black Monday, and later on in France. No transition is observed in the stock markets of Germany, Italy, and Japan for the same period of time. The balance-unbalance transition is driven by a reorganization of the stock-stock correlations of a group of low capitalization stocks, mostly of non-financial entities which collapse into a fully-negative clique of anticorrelated pairs of stocks. Further studies are needed to understand the reasons and implications of this reorganization of non-financial entities in a given number of markets and the associated loss of network balance and stock predictability.

Methods

Data

We construct stock networks for some European countries, the US, and Japan. The seven selected European countries include Greece, Italy, Ireland, Portugal, and Spain (GIIPS), due to their financial vulnerability since the last global financial crisis. For comparison purpose, we have selected two other countries from the European Union: Germany and France. Finally, the US and Japan are included as non-European important drivers of the world economy. To construct the networks we use equities’ daily closing price data from 01-03-2005 to 09-15-2020, obtained from the Morningstar database. Details about the cleaning process of the data are given in the SI, Appendix D. This data set is available from the authors on reasonable request.

As the inverse temperature, β of the networks we use monthly EPU index data46 for each country from January 2005 to September 2020. Portugal is an exception since there is no specific EPU index available for it. Therefore, the European EPU index is considered instead. EPU index data is publicly available in the Economic Policy Uncertainty website50.

Quasi-CSG-WSSN

Let n, m- and m+ be the number of nodes, of negative and positive edges in a real WSSN, respectively. We create a CSG with a clique of s<n nodes and s2n-s-1<m- edges. We complete the quasi-CSG-WSSN by adding randomly and independently m--s2n-s-1/2 negative and m+ positive edges among the nodes not in the clique. Additionally, we create the random-WSSN by adding randomly and independently m- and m+ edges among n nodes a la Erdős-Rényi51. A Matlab code for building such graphs (Algorithm 1) and an example of quasi-CSG-WSSN are given in Appendix G of the SI.

We then test the following two hypotheses:

  1. Unbalanced WSSNs depend only on n, m- and m+ and not on any specific structure.

  2. Unbalanced WSSNs depend on the existence of a specific quasi-CSG structure.

In the first case, the real-world WSSN would be more “similar” to its random version than to the quasi-CSG-WSSN and in the second case, it would be more similar to the quasi-CSG-WSSN. For the “similarity” between the different networks we focus here on the spectrum of their adjacency matrices. The reason for that is that the eigenvalues of this matrix determine the balance of the network as we have seen from its definition before. For determining the value of s we explore all possible values and find the root mean square error (RMSE) between the spectrum of the real WSSN and that of the quasi-CSG-WSSN. The smallest RMSE, sopt, determines the “best” value of s.

Supplementary information

Acknowledgements

E.F., S.O., and J.A. were supported by the Spanish Ministry of the Economy and Competitiveness under Grant ECO2014-51914-P; the UPV/EHU under Grants BETS-UFI11/46, MACLAB-IT93-13 and PES20/44; and the Basque Government under BiRTE-IT1336-19. J.A. also acknowledges financial support under PIF16/87 from UPV/EHU. E.E. thanks partial financial support from Ministerio de Ciencia, Innovacion y Universidades, Spain, Grant PID2019-107603GB-I00.

Author contributions

E.F. and E.E. designed and E.E. directed the investigation. E.F., S.O., and J.A. constructed the data sets, and defined and constructed the adjacency matrices. B.A. and E.E. defined, constructed, and analyzed the networks. E.E. wrote the paper with inputs from all the authors. All the authors contributed to preparing the SI.

Funding

Brais Álvarez Pereira’s work on this study was funded by Fundação para a Ciência e a Tecnologia (UIDB/00124/2020, UIDP/00124/2020 and Social Sciences Datalab – PINFRA/22209/2016), POR Lisboa and POR Norte (Social Sciences DataLab, PINFRA/22209/2016).

Competing interests

The authors declare no competing interests.

Footnotes

The original online version of this Article was revised: The Funding section in the original version of this Article was omitted. The Funding section now reads: “Brais Álvarez Pereira’s work on this study was funded by Fundação para a Ciência e a Tecnologia (UIDB/00124/2020, UIDP/00124/2020 and Social Sciences Datalab – PINFRA/22209/2016), POR Lisboa and POR Norte (Social Sciences DataLab, PINFRA/22209/2016).”

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Change history

3/16/2022

A Correction to this paper has been published: 10.1038/s41598-022-08518-0

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-021-91266-4.

References

  • 1.Hall RE. Struggling to understand the stock market. Am. Econ. Rev. 2001;91:1–11. doi: 10.1257/aer.91.2.1. [DOI] [Google Scholar]
  • 2.Preis T, Schneider JJ, Stanley HE. Switching processes in financial markets. Proc. Natl. Acad. Sci. 2011;108:7674–7678. doi: 10.1073/pnas.1019484108. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Fischer, S. & Merton, R. C. Macroeconomics and finance: The role of the stock market. In Carnegie-Rochester conference series on public policy, vol. 21, 57–108 (Elsevier, 1984).
  • 4.Asgharian, H., Christiansen, C. & Hou, A. J. Economic policy uncertainty and long-run stock market volatility and correlation. Available at SSRN. 10.2139/ssrn.3146924 (2019).
  • 5.De Bondt WF, Thaler R. Does the stock market overreact? J. Financ. 1985;40:793–805. doi: 10.1111/j.1540-6261.1985.tb05004.x. [DOI] [Google Scholar]
  • 6.Fama EF, French KR. Common risk factors in the returns on stocks and bonds. J. Financ. Econ. 1993;33:3–56. doi: 10.1016/0304-405X(93)90023-5. [DOI] [Google Scholar]
  • 7.Loretan, M. & English, W. B. Evaluating correlation breakdowns during periods of market volatility. Available at SSRN. 10.2139/ssrn.231857 (2000).
  • 8.Solnik B, Boucrelle C, Le Fur Y. International market correlation and volatility. Financ. Anal. J. 1996;52:17–34. doi: 10.2469/faj.v52.n5.2021. [DOI] [Google Scholar]
  • 9.Spelta A, Flori A, Pecora N, Buldyrev S, Pammolli F. A behavioral approach to instability pathways in financial markets. Nat. Commun. 2020;11:1–9. doi: 10.1038/s41467-020-15356-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Su Z, Fang T, Yin L. Understanding stock market volatility: What is the role of us uncertainty? N. Am. J. Econ. Finance. 2019;48:582–590. doi: 10.1016/j.najef.2018.07.014. [DOI] [Google Scholar]
  • 11.Wen X, Wei Y, Huang D. Measuring contagion between energy market and stock market during financial crisis: A copula approach. Energy Econ. 2012;34:1435–1446. doi: 10.1016/j.eneco.2012.06.021. [DOI] [Google Scholar]
  • 12.Gjerstad SD, Porter D, Smith VL, Winn A. Retrading, production, and asset market performance. Proc. Natl. Acad. Sci. 2015;112:14557–14562. doi: 10.1073/pnas.1517038112. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Smith A, Lohrenz T, King J, Montague PR, Camerer CF. Irrational exuberance and neural crash warning signals during endogenous experimental market bubbles. Proc. Natl. Acad. Sci. 2014;111:10503–10508. doi: 10.1073/pnas.1318416111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Engle RF, Ruan T. Measuring the probability of a financial crisis. Proc. Natl. Acad. Sci. 2019;116:18341–18346. doi: 10.1073/pnas.1903879116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Jackson, M. O. & Pernoud, A. Systemic risk in financial networks: A survey. Available at SSRN. 10.2139/ssrn.3651864 (2020).
  • 16.Buldyrev SV, Flori A, Pammolli F. Market instability and the size-variance relationship. Sci. Rep. 2021;11:1–8. doi: 10.1038/s41598-021-84680-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Haldane, A. G. Rethinking the financial network. In Fragile Stabilität–Stabile Fragilität, 243–278 (Springer, 2013).
  • 18.Bougheas S, Kirman A. Complex financial networks and systemic risk: A review. Compl. Geogr. Econ. 2015;19:115–139. [Google Scholar]
  • 19.Grilli, R., Iori, G., Stamboglis, N. & Tedeschi, G. A networked economy: A survey on the effect of interaction in credit markets. In Introduction to Agent-Based Economics, 229–252 (Elsevier, 2017).
  • 20.Iori, G. & Mantegna, R. N. Empirical analyses of networks in finance. In Handbook of Computational Economics, vol. 4, 637–685 (Elsevier, 2018).
  • 21.Bardoscia, M. et al. The Physics of Financial Networks. arXiv:2103.05623 (2021).
  • 22.Battiston S, Gatti DD, Gallegati M, Greenwald B, Stiglitz JE. Default cascades: When does risk diversification increase stability? J. Financ. Stab. 2012;8:138–149. doi: 10.1016/j.jfs.2012.01.002. [DOI] [Google Scholar]
  • 23.Battiston S, Puliga M, Kaushik R, Tasca P, Caldarelli G. Debtrank: Too central to fail? Financial networks, the fed and systemic risk. Sci. Rep. 2012;2:1–6. doi: 10.1038/srep00541. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Battiston S, et al. Complexity theory and financial regulation. Science. 2016;351:818–819. doi: 10.1126/science.aad0299. [DOI] [PubMed] [Google Scholar]
  • 25.Mantegna RN. Hierarchical structure in financial markets. Eur. Phys. J. B-Conden. Matter Compl. Syst. 1999;11:193–197. doi: 10.1007/s100510050929. [DOI] [Google Scholar]
  • 26.Kutner R, et al. Econophysics and sociophysics: Their milestones & challenges. Phys. A. 2019;516:240–253. doi: 10.1016/j.physa.2018.10.019. [DOI] [Google Scholar]
  • 27.Birch J, Pantelous AA, Soramäki K. Analysis of correlation based networks representing DAX 30 stock price returns. Comput. Econ. 2016;47:501–525. doi: 10.1007/s10614-015-9481-z. [DOI] [Google Scholar]
  • 28.Brida JG, Matesanz D, Seijas MN. Network analysis of returns and volume trading in stock markets: The Euro Stoxx case. Phys. A. 2016;444:751–764. doi: 10.1016/j.physa.2015.10.078. [DOI] [Google Scholar]
  • 29.Kauê Dal’Maso Peron T, da Fontoura Costa L, Rodrigues FA. The structure and resilience of financial market networks. Chaos Interdiscip. J. Nonlinear Sci. 2012;22:013117. doi: 10.1063/1.3683467. [DOI] [PubMed] [Google Scholar]
  • 30.Wang G-J, Xie C, Stanley HE. Correlation structure and evolution of world stock markets: Evidence from pearson and partial correlation-based networks. Comput. Econ. 2018;51:607–635. doi: 10.1007/s10614-016-9627-7. [DOI] [Google Scholar]
  • 31.Zhao L, et al. Stock market as temporal network. Phys. A. 2018;506:1104–1112. doi: 10.1016/j.physa.2018.05.039. [DOI] [Google Scholar]
  • 32.Guo X, Zhang H, Tian T. Development of stock correlation networks using mutual information and financial big data. PLoS ONE. 2018;13:e0195941. doi: 10.1371/journal.pone.0195941. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Tumminello M, Lillo F, Mantegna RN. Correlation, hierarchies, and networks in financial markets. J. Econ. Behav. Organ. 2010;75:40–58. doi: 10.1016/j.jebo.2010.01.004. [DOI] [Google Scholar]
  • 34.Heiberger RH. Stock network stability in times of crisis. Phys. A. 2014;393:376–381. doi: 10.1016/j.physa.2013.08.053. [DOI] [Google Scholar]
  • 35.Chi KT, Liu J, Lau FC. A network perspective of the stock market. J. Empir. Financ. 2010;17:659–667. doi: 10.1016/j.jempfin.2010.04.008. [DOI] [Google Scholar]
  • 36.Stavroglou SK, Pantelous AA, Stanley HE, Zuev KM. Hidden interactions in financial markets. Proc. Natl. Acad. Sci. 2019;116:10646–10651. doi: 10.1073/pnas.1819449116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Harary F, et al. On the notion of balance of a signed graph. Mich. Math. J. 1953;2:143–146. doi: 10.1307/mmj/1028989917. [DOI] [Google Scholar]
  • 38.Zaslavsky T. A mathematical bibliography of signed and gain graphs and allied areas. Electron. J. Combin. 2012;8:DS8. [Google Scholar]
  • 39.Leskovec, J., Huttenlocher, D. & Kleinberg, J. Signed networks in social media. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems1361–1370 (2010).
  • 40.Facchetti G, Iacono G, Altafini C. Computing global structural balance in large-scale signed social networks. Proc. Natl. Acad. Sci. 2011;108:20953–20958. doi: 10.1073/pnas.1109521108. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Estrada E, Benzi M. Walk-based measure of balance in signed networks: Detecting lack of balance in social networks. Phys. Rev. E. 2014;90:042802. doi: 10.1103/PhysRevE.90.042802. [DOI] [PubMed] [Google Scholar]
  • 42.Kirkley A, Cantwell GT, Newman M. Balance in signed networks. Phys. Rev. E. 2019;99:012320. doi: 10.1103/PhysRevE.99.012320. [DOI] [PubMed] [Google Scholar]
  • 43.Shi G, Altafini C, Baras JS. Dynamics over signed networks. SIAM Rev. 2019;61:229–257. doi: 10.1137/17M1134172. [DOI] [Google Scholar]
  • 44.Heider F. Attitudes and cognitive organization. J. Psychol. 1946;21:107–112. doi: 10.1080/00223980.1946.9917275. [DOI] [PubMed] [Google Scholar]
  • 45.Ascorbebeitia Bilbatua J, Ferreira García E, Orbe Mandaluniz S. The effect of dependence on European market risk. A nonparametric time varying approach. J. Bus. Econ. Stat. 2021;1:2. doi: 10.1080/07350015.2021.1883439. [DOI] [Google Scholar]
  • 46.Baker SR, Bloom N, Davis SJ. Measuring economic policy uncertainty. Q. J. Econ. 2016;131:1593–1636. doi: 10.1093/qje/qjw024. [DOI] [Google Scholar]
  • 47.Estrada E. Rethinking structural balance in signed social networks. Discret. Appl. Math. 2019;268:70–90. doi: 10.1016/j.dam.2019.04.019. [DOI] [Google Scholar]
  • 48.Bijsterbosch M, Guérin P. Characterizing very high uncertainty episodes. Econ. Lett. 2013;121:239–243. doi: 10.1016/j.econlet.2013.08.005. [DOI] [Google Scholar]
  • 49.Estrada E, Benzi M. Core-satellite graphs: Clustering, assortativity and spectral properties. Linear Algebra Appl. 2017;517:30–52. doi: 10.1016/j.laa.2016.12.007. [DOI] [Google Scholar]
  • 50.Economic policy uncertainty index. https://www.policyuncertainty.com/index.html.
  • 51.Erdős P, Rényi A. On the evolution of random graphs. Publ. Math. Inst. Hung. Acad. Sci. 1960;5:17–60. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES