This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\jyear

2021

On the Ollivier-Ricci curvature as fragility indicator of the stock markets

\surJoaquin \fnmSanchez Garcia [email protected]    \surSebastian \fnmGherghe [email protected]
Abstract

Recently, an indicator for stock market fragility and crash size in terms of the Ollivier-Ricci curvature has been proposed in Sandhu-Georgiou-Tannenbaum . We study analytical and empirical properties of such indicator, test its elasticity with respect to different parameters and provide heuristics for the parameters involved. We show when and how the indicator accurately describes a financial crisis. We also propose an alternate method for calculating the indicator using a specific sub-graph with special curvature properties.

keywords:
Ollivier-Ricci, curvature, finance, stock market, fragility, Wasserstein, stock correlations, optimal transport on graphs

1 Introduction

Since the advent of quantitative finance, there has been an increasing need for fragility estimators which study hidden connections between entities. The 2008-2009 financial crisis is perhaps the best example of how catastrophic the consequences of a crash can be. While the mathematical and economical definition of a financial crisis varies from one reference to another, it is imperative to have good metrics and indicators to evaluate the fragility of the market in a given period. We require an estimator to:

  1. 1.

    Be able to capture the current state of the stock market and adapt quickly.

  2. 2.

    Take into consideration possible hidden interconnections.

  3. 3.

    Be simple but robust.

The recent works Sandhu-Georgiou-Tannenbaum and Samal et. al have proposed a very interesting object as an indicator of market fragility: the average Ollivier-Ricci curvature of a specific network. The network is constructed using the correlations of the closing stock prices, obtaining a Minimum Spanning Tree (MST) via a specific distance function and adding back “high-value links”. In this work we further study the analytical properties and empirical results of this indicator. In particular, we seek to verify whether or not this estimator satisfies the aforementioned properties (1-3).

The Ollivier-Ricci (ORicci\operatorname{O-Ricci}) curvature of the associated network of Sandhu-Georgiou-Tannenbaum (based on Boginski et. al. and Tse-Liu-Lau ) is called a “crash hallmark”. In this document we argue that the proposed object is not an economic risk indicator but rather a good ex-post metric which can show the size and periods of a financial crisis. More specifically, we will show that the ORicci\operatorname{O-Ricci} curvature of the constructed network does not indicate tendencies towards a crisis but rather accurately identifies the size and length of the crisis.

The difference between being a crash hallmark or an economic risk indicator is fundamental in nature. The former allows us to understand the past and further improves our understanding of historical data, while the latter sends a fragility signal to the market agents prior to a potential crash. Only the indicator can be in a predictive manner, but this should not undermine the interest on the hallmark as a mathematical tool which helps us to characterize and understand crashes.
Analysis of the stock market using correlation networks was proposed in Tse-Liu-Lau . Since then, there has been a lot of interest in obtaining knowledge of the stock market from this network. In Sandhu-Georgiou-Tannenbaum we see the first appearance of curvature as an indicator for fragility. Intuitively, the deep connections between Ricci curvature bounds and entropy, recently discovered by the Lott-Villani-Sturm program (see Villani , McCann ), justify using curvature as a measure of fragility, see Sandhu-Georgiou-Tannenbaum .
Samal et. al presents a comprehensive list of possible indicators of fragility using different definitions of curvature. We focus on analyzing analytical and numerical properties of the indicator proposed in Sandhu-Georgiou-Tannenbaum .

2 Precise description of the algorithm

In this section we present the algorithm for the hallmark proposed and used in Sandhu-Georgiou-Tannenbaum and Samal et. al . We denote the hallmark for a given network by ORicciNet\operatorname{O-Ricci}^{Net}, which will depend on the size of the time period chosen TT and the edge threshold ξ\xi (see below).

Intuitively, one uses a function of correlations of data in the period of size TT to obtain a schematic sub-graph of the market. After a MST is chosen to be the representation of the market, edges with high correlation are added to the graph. Then, one computes the average ORicci\operatorname{O-Ricci} curvature of the sub-graph using the hop distance as the cost function (and not the weighted distance).

2.1 The main algorithm

To obtain the fragility indicator (ORicci)Net(\operatorname{O-Ricci})^{Net}.

Input: T,ξ,startDate,endDateT,\xi,\texttt{startDate},\texttt{endDate}
for k{1,,endDatestartDateT}k\in\{1,\dots,\texttt{endDate}-\texttt{startDate}-T\} do
     Compute correlations matrix ρi,j\rho_{i,j} between stocks in period [startDate,startDate+T][\texttt{startDate},\texttt{startDate}+T].
     Compute cost function Di,j=2(1ρi,j)D_{i,j}=\sqrt{2(1-\rho_{i,j})}.
     Obtain via Prim’s algorithm G:=G:= MinimumSpanningTree for the graph of all stocks with all edges, using as weights Di,jD_{i,j}.
     Add edge xyxy to GG if ρx,yξ\rho_{x,y}\geq\xi.
     For every edge abab compute the Ollivier-Ricci Curvature via
κ(a,b)=1W1(μa,μb)d(a,b),\kappa(a,b)=1-\frac{W_{1}(\mu_{a},\mu_{b})}{d(a,b)}, (1)
where, for a neighbor vv of node aa (i.e. vNav\in N_{a}),
μa(v)=Ca,vwNaCa,w\mu_{a}(v)=\frac{C_{a,v}}{\displaystyle\sum_{w\in N_{a}}C_{a,w}} (2)
and d(a,b)d(a,b) is the (unweighted) hop distance, counting the minimum number of steps in the shortest path of the extended graph.
     Compute the average ORicciG\operatorname{O-Ricci}^{G} by averaging over all edges in GG.
end for
Return the average curvature ORicciNet\operatorname{O-Ricci}^{Net}

Intuitively, for an edge xyxy we observe k(x,y)<0k(x,y)<0 if the weights and edges for neighbors of xx are such that it seems like xx is pulled away from yy. That is, xx and yy may be connected by an edge but the weights of neighbors of xx away from neighbors of yy are relatively high.
In equation (1), W1W_{1} denotes the Wasserstein distance between probability measures, defined via

W1(μ,ν)=infγMn×n()γ×𝟏T=μ𝟏T×γ=ν{i,jd(i,j)γi,j},W_{1}(\mu,\nu)=\inf_{\begin{subarray}{c}\gamma\in M_{n\times n}(\mathbb{R})\\ \gamma\times\mathbf{1}^{T}=\mu\\ \mathbf{1}^{T}\times\gamma=\nu\end{subarray}}\left\{\sum_{i,j}d(i,j)\gamma_{i,j}\right\}, (3)

where again d(i,j)d(i,j) is the hop distance, the minimum number of steps needed to traverse the graph from verrtex ii to vertex jj. The Wasserstein distance can be computed with numerical packages, like Python Optimal Transport (POT), which was used in the simulations in Section 4.

From Algorithm 2.1, we can formulate several questions.

  1. 1.

    How well does the indicator measure crisis?

  2. 2.

    What happens if one does not add high-value links?

  3. 3.

    What is the ξ\xi- elasticity? How does one choose ξ\xi?

  4. 4.

    As TT grows does the time series regularize?

  5. 5.

    As TT decreases do we approach white noise?

  6. 6.

    What is the impact of using the MST? Are there other better subgraphs?

  7. 7.

    What happens for different distance functions functions Di,jD_{i,j}?

  8. 8.

    Is the average the most efficient way to measure risk?

  9. 9.

    Is it optimal to use only the hop distance to obtain the MST structure or should the hop distance be used to compute the curvature too?

We aim to answer all these questions throughout this work.

3 Model dependence on parameters

3.1 Theory on the curvature of MST

Question: If (G,N,E,W)(G,N,E,W) is weighted graph and (MST(G),N,E,W|E)(MST(G),N,E^{\prime},W\lvert_{E}) is it’s minimum spanning tree, what is the relation between ORicciG\operatorname{O-Ricci}^{G} and ORicciMST(G)\operatorname{O-Ricci}^{MST(G)}?
Answer At the moment there is no apparent relation between ORicci\operatorname{O-Ricci} curvature of the MST and the ORicci\operatorname{O-Ricci} curvature of the original graph. We can construct simple examples with opposite results.

Example 1.

(One edge at the time)
As a toy model, consider a simple graph with 4 vertices, we add a single edge and compute the ORicci\operatorname{O-Ricci} curvature. Observe that the leftmost graph is a MST for the remaining graphs. Although the connectivity of the 3 graphs is significantly different, the MST does not capture that behaviour.

Refer to caption
Figure 1: At each stage we add a single edge, every weight is the same, wij=1w_{ij}=1, and we start from a connected graph with no cycles.
Example 2.

(Very centralized node) In the general case of a graph GG consisting of nn nodes where n1n-1 nodes are connected by one edge to one centralized node, one can immediately see that if jk1j\neq k\neq 1,

k(v1,vj)=11=0,k(vj,vk)=1.k(v_{1},v_{j})=1-1=0,\quad k(v_{j},v_{k})=1. (4)

Thus there are n1n-1 edges with curvature 0 and the remainder, of which there are n(n1)2(n1)\frac{n(n-1)}{2}-(n-1), have curvature 11. Therefore

ORicciG=n2n.\operatorname{O-Ricci}^{G}=\frac{n-2}{n}. (5)
Refer to caption
Figure 2: v1v_{1} is a completely centralized node on which all others depend.
Example 3.

(Complete Graph) In fact, we can compute the average ORicci\operatorname{O-Ricci} curvature in the general case of a complete (fully connected) graph as follows. For jkj\neq k we have W1(μj,μk)=1n1W_{1}(\mu_{j},\mu_{k})=\frac{1}{n-1}, so k(vj,vk)=11n1=n2n1k(v_{j},v_{k})=1-\frac{1}{n-1}=\frac{n-2}{n-1}. The curvature of each edge is the same, so

ORicciG=n2n1.\operatorname{O-Ricci}^{G}=\frac{n-2}{n-1}. (6)

From Example 1, it becomes apparent that the ORicci\operatorname{O-Ricci} curvature of the Minimum Spanning Tree (MST) and the original graph are not directly correlated. Consequently, in Algorithm 2.1, the decision to measure fragility using the MST represents a significant choice. Moreover, it remains unclear whether the edges removed during the MST selection process significantly contribute to fragility. To address this uncertainty, we consider two potential alternatives:

  1. 1.

    Computing the ORicci\operatorname{O-Ricci} of the complete graph GG with the weights Di,jD_{i,j}, though this approach is computationally very costly.

  2. 2.

    Opting for a different sub-graph GGG^{\prime}\subset G instead of the MST that better captures curvature inheritance (see Section 4.4).

3.2 Adding or removing an edge

Consider an undirected weighted graph G:=(N,E,W)G:=(N,E,W), where NN is the set of nodes, EE the set of edges and W={we:eE}W=\{w_{e}:e\in E\} is the set of weights for all edges. Assume that for x,yNx,y\in N, xyExy\not\in E, and let us define G=(N,E,W)G^{*}=(N,E^{*},W^{*}) where E=E{xy}E^{*}=E\cup\{xy\} and W=W{wx,y}W^{*}=W\cup\{w_{x,y}\}. In other words, GG^{*} the graph GG modified by adding the edge e:=xye:=xy joining xx and yy with weight wx,yw_{x,y}.

Let dd denote the Hop distance in GG and dd^{*} denote the Hop distance in GG^{*}. Observing that adding an edge can only decrease the number of steps between nodes, for every abNa\neq b\in N it follows that

d(a,b)d(a,b).d^{*}(a,b)\leq d(a,b). (7)

Keeping the notation of Algorithm 1, for every abNa\neq b\in N we define the measures μa()\mu_{a}(\cdot) and μb()\mu_{b}(\cdot) by

μa(b)=wa,bvNawa,c,μa(b)=wa,bvNawa,c,\mu_{a}(b)=\frac{w_{a,b}}{\displaystyle\sum_{v\in N_{a}}w_{a,c}},\>\>\mu^{*}_{a}(b)=\frac{w^{*}_{a,b}}{\displaystyle\sum_{v\in N^{*}_{a}}w^{*}_{a,c}}, (8)

where NaN_{a} is the set of neighbors of aa in GG and NaN^{*}_{a} is the set of neighbors of aa in GG^{*}. The difference between NaN_{a} and NaN_{a}^{*} relies only on the condition a{x,y}a\in\{x,y\}, as

Na={Na, if a{x,y},Na{x}, if a=y,Na{y}, if a=x.N_{a}^{*}=\begin{cases}N_{a},&\text{ if }a\not\in\{x,y\},\\ N_{a}\cup\{x\},&\text{ if }a=y,\\ N_{a}\cup\{y\},&\text{ if }a=x.\end{cases} (9)

As a result, the measures in (8) only change if a{x,y}a\in\{x,y\}, or equivalently μa=μa\mu_{a}=\mu^{*}_{a} if a{x,y}a\not\in\{x,y\}. Even if the measure μa\mu^{*}_{a} remains unchanged from μa\mu_{a}, the Wasserstein distance WdW^{d^{*}} may change from WdW^{d} as the distance function has changed.

Denote by ORicciG\operatorname{O-Ricci}^{G} (respectively ORicciG\operatorname{O-Ricci}^{G^{*}}) the Ollivier-Ricci curvature computed with the induced Hop distance dd on GG (respectively dd^{*} on GG^{*}), as described in Section 2.

Our first result, Proposition 1, measures the total change in edge-curvature in terms of the relative error between dd and dd^{*}. As we add a single edge to the graph, the only control on the curvature depends on how much the hop distances change.

Proposition 1.

(Bound on single-edge curvature change)
For any nodes a,bNa,b\in N, the difference in the ORicci\operatorname{O-Ricci} curvature k(a,b)k(a,b) of GG and k(a,b)k^{*}(a,b) of GG^{*} is bounded, with upper bound

k(a,b)k(a,b)W1d(μa,μb)W1d(μa,μb)d(a,b).\displaystyle k^{*}(a,b)-k(a,b)\leq\frac{W^{d}_{1}(\mu_{a},\mu_{b})-W^{d^{*}}_{1}(\mu^{*}_{a},\mu^{*}_{b})}{d^{*}(a,b)}. (10)

Moreover, if a,b{x,y}a,b\not\in\{x,y\} and there exists a π\pi^{*} minimizing Wd(μa,μb)W^{d^{*}}(\mu^{*}_{a},\mu^{*}_{b}), then

k(a,b)k(a,b)||dd||,Nd(a,b),\displaystyle k^{*}(a,b)-k(a,b)\leq\frac{\lvert\lvert d-d^{*}\rvert\rvert_{\infty,N}}{d^{*}(a,b)}, (11)

where

||d(a,b)d(a,b)||,N=max(u,v)N2|d(u,v)d(u,v)|,\lvert\lvert d(a,b)-d^{*}(a,b)\rvert\rvert_{\infty,N}=\max_{(u,v)\in N^{2}}\lvert d(u,v)-d^{*}(u,v)\rvert, (12)

and μa,μb,μa,μb\mu_{a},\mu_{b},\mu_{a}^{*},\mu_{b}^{*} are as in (8).

Proof: Directly from the definition of k(a,b)k(a,b) in (1),

k(a,b)k(a,b)\displaystyle k^{*}(a,b)-k(a,b) =W1d(μa,μb)d(a,b)Wd(μa,μb)d(a,b)\displaystyle=\frac{W_{1}^{d}(\mu_{a},\mu_{b})}{d(a,b)}-\frac{W^{d^{*}}(\mu^{*}_{a},\mu^{*}_{b})}{d^{*}(a,b)}
=d(a,b)W1d(μa,μb)d(a,b)W1d(μa,μb)d(a,b)d(a,b).\displaystyle=\frac{d^{*}(a,b)W^{d}_{1}(\mu_{a},\mu_{b})-d(a,b)W^{d^{*}}_{1}(\mu^{*}_{a},\mu^{*}_{b})}{d(a,b)d^{*}(a,b)}. (13)

Plugging the inequality (7) into (13) yields (10). To obtain inequality (11), note that if π\pi^{*} is a minimizer for Wd(μa,μb)W^{d^{*}}(\mu_{a},\mu_{b}), then

Wd(μa,μb)Wd(μa,μb)\displaystyle W^{d}(\mu_{a},\mu_{b})-W^{d^{*}}(\mu_{a},\mu_{b})
=infπΓ(μa,μb)d(x,y)𝑑π(x,y)d(x,y)𝑑π(x,y)\displaystyle=\inf_{\pi\in\Gamma(\mu_{a},\mu_{b})}\int d(x,y)d\pi(x,y)-\int d^{*}(x,y)d\pi^{*}(x,y)
d(x,y)d(x,y)dπ(x,y)\displaystyle\leq\int d(x,y)-d^{*}(x,y)d\pi^{*}(x,y)
||dd||,N.\displaystyle\leq\lvert\lvert d-d^{*}\rvert\rvert_{\infty,N}. (14)

Inequality (11) follows from plugging in (14) into (10).

Unless one applies more conditions to the graphs GG and GG^{*}, we expect the above inequalities to be sharp, based on the following example.

Example 4 (Inequalities (10) and (11) are attained for every vertex pair.).

Let GG^{*} denote a complete graph of nn vertices {v1,,vn}\{v_{1},\dots,v_{n}\} with all edge weights equal to 11, and let GG be the graph created by removing the edge {v1v2}\{v_{1}v_{2}\} from GG^{*}. In this case, a quick computation shows that the estimates (10) and (11) are attained for every possible vertex pair.

Recalling Example 3, we know that each edge of the graph GG^{*} has the same curvature k(vi,vj)=n2n1k^{*}(v_{i},v_{j})=\frac{n-2}{n-1} and hence this is ORicciG\operatorname{O-Ricci}^{G^{*}}. In particular, W1d(μi,μj)=1n1W^{d^{*}}_{1}(\mu_{i},\mu_{j})=\frac{1}{n-1}. Then, it is easy to see that W1(μ1,μ2)=0W_{1}(\mu_{1},\mu_{2})=0 and hence k(v2,v1)=1k(v_{2},v_{1})=1. Since GG^{*} is complete, d(v1,v2)=1d^{*}(v_{1},v_{2})=1. We can now easily verify that both sides of the inequality (10) are 1n1-\frac{1}{n-1}.
After removing one edge from the complete graph GG^{*}, the curvature of all unaffected vertices is unchanged,

k(vj,vk)=k(vj,vk)=n2n1,jk and j,k1,2,k(v_{j},v_{k})=k^{*}(v_{j},v_{k})=\frac{n-2}{n-1},\quad j\neq k\text{ and }j,k\neq 1,2, (15)

and there are (n2)(n3)2\frac{(n-2)(n-3)}{2} such edges. In this case both sides of both inequalities (10) and (11) are 0.
It remains to compute the curvature k(vj,v1)k(v_{j},v_{1}) for j3j\geqslant 3 and k(vk,v2)k(v_{k},v_{2}) for k3k\geqslant 3 (we already computed above that k(v2,v1)=1k(v_{2},v_{1})=1 as W1(μ1,μ2)=0W_{1}(\mu_{1},\mu_{2})=0). There are 2(n2)2(n-2) such cases and by symmetry they are all identical, so without loss of generality consider k(v3,v1)k(v_{3},v_{1}). To compute W1(μ3,μ1)W_{1}(\mu_{3},\mu_{1}), we distinguish two possibilities: sending mass from δ2\delta_{2} to the vertices v3,,vnv_{3},\dots,v_{n} equally which has cost 1n1\frac{1}{n-1}, and sending all 1n1\frac{1}{n-1} mass from v1v_{1} to v3v_{3} which also has cost 1n1\frac{1}{n-1}. Thus W1d(μ3,μ1)=2n1W_{1}^{d}(\mu_{3},\mu_{1})=\frac{2}{n-1}, and hence k(v3,v1)=n3n1k(v_{3},v_{1})=\frac{n-3}{n-1}. Since clearly d(v3,v1)=1d^{*}(v_{3},v_{1})=1, the both sides of the inequality (10) are 1n1\frac{1}{n-1}.
Now, we can compute

ORicciG=n2(n3)+1n(n1).\operatorname{O-Ricci}^{G}=\frac{n^{2}(n-3)+1}{n(n-1)}. (16)

Compare this with example 3, where ORicciG=n2n1\operatorname{O-Ricci}^{G^{*}}=\frac{n-2}{n-1}.

Our next proposition explores the relationship between the curvature and the connectivity of the graph via the degrees of the affected nodes. In what follows, let na=#N(a)n_{a}=\#N(a) denote the degree of a node aa, and recall that by {xy}\{xy\} we specifically denote the edge added to the graph GG to obtain the graph GG^{*} (and by x,yx,y we denote the affected nodes). We first establish the following lemma, which features the key idea (see Figure 3).

Lemma 1.

(Change in affected nodes)
For the affected nodes x,yx,y, we have

Wd(μx,μx)1nx+1.W^{d}(\mu_{x},\mu_{x}^{*})\leq\frac{1}{n_{x}+1}. (17)

Proof: By the definition (8),

μx=1nxbN(x)δb,μx=1nx+1(bN(x)δb+δy),\mu_{x}=\frac{1}{n_{x}}\sum_{b\in N(x)}\delta_{b},\hskip 14.22636pt\mu_{x}^{*}=\frac{1}{n_{x}+1}(\sum_{b\in N(x)}\delta_{b}+\delta_{y}), (18)

so the map which keeps 1nx+1\frac{1}{n_{x}+1} in each vertex different than yy and transports 1nx1nx+1\frac{1}{n_{x}}-\frac{1}{n_{x}+1} onto yy is an admissible map, see Figure 3. Hence,

Wd(μx,μx)1nx(nx+1)aN(x)d(x,a)=nxnx(nx+1)=1nx+1.W^{d}(\mu_{x},\mu_{x}^{*})\leq\frac{1}{n_{x}(n_{x}+1)}\sum_{a\in N(x)}d(x,a)=\frac{n_{x}}{n_{x}(n_{x}+1)}=\frac{1}{n_{x}+1}. (19)
Refer to caption
Figure 3: The admissible transport map between μx\mu_{x} and μx\mu_{x}^{*}. When adding an edge connecting xx to another node yy we can keep all of the previous mass and transport the excess to the new neighbor yy of xx.

Since we do not take the graphs GG and GG^{*} to be directed, the argument for μx\mu_{x} and μx\mu_{x}^{*} is also valid for μy\mu_{y} and μy\mu_{y}^{*}.

Proposition 2.

(Bound on curvature in terms of degrees)
For the added edge xyxy, we have

k(x,y)k(x,y)\displaystyle k^{*}(x,y)-k(x,y)
1d(x,y)(Wd(μx,μy)Wd(μx,μy)+1nx+1+1ny+1).\displaystyle\leq\frac{1}{d^{*}(x,y)}\left(W^{d}(\mu_{x}^{*},\mu_{y}^{*})-W^{d^{*}}(\mu_{x}^{*},\mu_{y}^{*})+\frac{1}{n_{x}+1}+\frac{1}{n_{y}+1}\right). (20)

Furthermore, if there exists a minimizer π\pi^{*} for WdW^{d^{*}}, then

k(x,y)k(x,y)1d(x,y)(||dd||,N+1nx+1+1ny+1).k^{*}(x,y)-k(x,y)\leq\frac{1}{d^{*}(x,y)}\left(\lvert\lvert d-d^{*}\rvert\rvert_{\infty,N}+\frac{1}{n_{x}+1}+\frac{1}{n_{y}+1}\right). (21)

Proof: By the triangle inequality,

Wd(μx,μy)Wd(μx,μx)+Wd(μx,μy)+Wd(μy,μy)W^{d}(\mu_{x},\mu_{y})\leq W^{d}(\mu_{x},\mu_{x}^{*})+W^{d}(\mu_{x}^{*},\mu_{y}^{*})+W^{d}(\mu_{y}^{*},\mu_{y}) (22)

The result then follows from the previous lemma. The second statement is obtained as in the proof of Proposition 1.

Note that because d(x,y)1d^{*}(x,y)\geq 1, we immediately get a more familiar type of bound:

k(x,y)k(x,y)||dd||,N+1nx+1+1ny+1.k^{*}(x,y)-k(x,y)\leq\lvert\lvert d-d^{*}\rvert\rvert_{\infty,N}+\frac{1}{n_{x}+1}+\frac{1}{n_{y}+1}. (23)

Equation (23) shows a direct connection between connectivity and curvature, via the right hand-side which involves the degrees of xx and yy.

3.3 Time parameter and smoothing

In practice, one does not want to wait too long to compute good indicators of the dynamical properties of the market. However, for an indicator to demonstrate relative consistency, it must exhibit clearer trends with increased data availability.

Refer to caption
(a) T=22T=22
Refer to caption
(b) T=132T=132
Refer to caption
(c) T=500T=500
Refer to caption
(d) T=700T=700
Refer to caption
(e) T=1000T=1000
Refer to caption
(f) T=2000T=2000
Figure 4: Behaviour of auto-correlation in large TT.

In Figure 4 we observe that (as expected) the indicator shows a stronger auto-correlation as TT increases. As a measure of economical ex-post analysis, higher values of TT are preferred.

3.3.1 Statistical Test: Significance vs White Noise

We now show via auto-correlation plots that in the T0T\to 0 limit the indicator behaves increasingly as white noise.

Refer to caption
(a) T=5T=5
Refer to caption
(b) T=10T=10
Refer to caption
(c) T=20T=20
Refer to caption
(d) T=22T=22
Figure 5: Smaller values of TT

From Figure 5 it is clear that taking small values of TT for the computation of ORicciNet\operatorname{O-Ricci}^{Net} may result in short-term mistakes in trends. These mistakes are fundamental when trying to use ORicciNet\operatorname{O-Ricci}^{Net} as a measure of fragility.

3.4 Different metric to obtain MST and the choice of the ultra metric

In Bonnano et. al it was shown that the MST obtained from Di,j=ρi,jD_{i,j}=\rho_{i,j} is relatively stable with respect to changes of TT for financial networks constructed as in Algorithm 2.

In this section we plot different distance functions for a randomly chosen subset of the data to compare the impact on the MST and ORicci\operatorname{O-Ricci}. As theorized in Bonnano et. al , similar distances did not present significant changes in their plots, except when considering logarithms. Hence, we think it is reasonable to use 2(1Ci,j)\sqrt{2(1-C_{i,j})} as it is commonly used in literature (where it is sometimes referred to as an “ultrametric”).

Plots for different functions of 1ρi,j1-\rho_{i,j}

Refer to caption
(a) Di,j=(2(1ρi,j))1/4D_{i,j}=(2(1-\rho_{i,j}))^{1/4}
Refer to caption
(b) Di,j=(2(1ρi,j))1/16D_{i,j}=(2(1-\rho_{i,j}))^{1/16}
Refer to caption
(c) Di,j=(2(1ρi,j))4D_{i,j}=(2(1-\rho_{i,j}))^{4}
Refer to caption
(d) Di,j=log(1+(2(1ρi,j))D_{i,j}=\log(1+(2(1-\rho_{i,j}))
Figure 6: Average ORicci\operatorname{O-Ricci} curvature for different cost functions in the same (random) sub-graph of the 1997-2024 period with T=132T=132 and ξ=0.85\xi=0.85. The red vertical line corresponds to the crash-day of September 29 2008.

In Figures 6(a), 6(b), 6(c), and 6(d) we observe that for simple functions of the form Di,j=(2(1ρi,j))pD_{i,j}=(2(1-\rho_{i,j}))^{p} for some power pp, the behaviour of the indicator can be similar. Nevertheless, a bad choice of cost function can result in noise, as exemplified by log(1+2(1ρ))\log(1+2(1-\rho)). Notice that h(a)=log(1+a)h(a)=\log(1+a) is concave in [1,)[1,\infty) but Figure 6(d) does not show the behaviour of the previous choices h(a)=aph(a)=a^{p} (in Figures 6(a), 6(b), and 6(c)). The study of general properties of functions hh such that h(1ρ)h(1-\rho) is a reasonable indicator is an interesting future line of research.

Example 5.

(Weight independence)
Consider the following network:

Refer to caption
Figure 7: Independently of the weights aa and bb the associated ORicci\operatorname{O-Ricci} curvature is always 13\frac{1}{3}.

We show that independently of the weights a,ba,b, ORicciG=1/3.\operatorname{O-Ricci}^{G}=1/3. Note that d(v1,v2)=1,d(v2,v3)=1,d(v1,v3)=2d(v_{1},v_{2})=1,d(v_{2},v_{3})=1,d(v_{1},v_{3})=2, and

μv1=δv2,\displaystyle\mu_{v_{1}}=\delta_{v_{2}}, (24)
μv2=aa+bδv1+ba+bδv3,\displaystyle\mu_{v_{2}}=\frac{a}{a+b}\delta_{v_{1}}+\frac{b}{a+b}\delta_{v_{3}}, (25)
μv3=δv2.\displaystyle\mu_{v_{3}}=\delta_{v_{2}}. (26)

Consequently by (24) and (26), Wd(μv1,μv3)=2W^{d}(\mu_{v_{1}},\mu_{v_{3}})=2 and

Wd(μv1,μv2)=1k(v1,v2)=0,\displaystyle W^{d}(\mu_{v_{1}},\mu_{v_{2}})=1\Rightarrow k(v_{1},v_{2})=0,
Wd(μv2,μv3)=1k(v2,v3)=0.\displaystyle W^{d}(\mu_{v_{2}},\mu_{v_{3}})=1\Rightarrow k(v_{2},v_{3})=0.

Hence,

Avg.ORicciG=13(1+0+0)=13.\text{Avg.}\operatorname{O-Ricci}^{G}=\frac{1}{3}\left(1+0+0\right)=\frac{1}{3}.

Example 5 shows that using the average Ricci curvature can be justified as a way of getting rid of the dependence of the weights used to obtain the MST. Of course, this independence is not the rule but a motivation for the use of the average. Below is another such example.

Example 6.

(Independence again)
Consider the following network.

Refer to caption
Figure 8: Independently of the weights a,b,a,b, and cc the associated ORicci\operatorname{O-Ricci} curvature is always 13\frac{1}{3}.

The associated ORicci\operatorname{O-Ricci} curvature is 1/31/3, independently of the weights a,ba,b and cc. The computations follow in the same manner as in Example 5,

Wd(μv1,μv2)=1k(v1,v2)=0,\displaystyle W^{d}(\mu_{v_{1}},\mu_{v_{2}})=1\Rightarrow k(v_{1},v_{2})=0,
Wd(μv1,μv3)=0k(v2,v3)=1,\displaystyle W^{d}(\mu_{v_{1}},\mu_{v_{3}})=0\Rightarrow k(v_{2},v_{3})=1,
Wd(μv1,μv4)=0k(v2,v3)=1,\displaystyle W^{d}(\mu_{v_{1}},\mu_{v_{4}})=0\Rightarrow k(v_{2},v_{3})=1,
Wd(μv2,μv3)=1k(v2,v3)=0,\displaystyle W^{d}(\mu_{v_{2}},\mu_{v_{3}})=1\Rightarrow k(v_{2},v_{3})=0,
Wd(μv2,μv4)=1k(v2,v3)=0,\displaystyle W^{d}(\mu_{v_{2}},\mu_{v_{4}})=1\Rightarrow k(v_{2},v_{3})=0,
Wd(μv3,μv4)=0k(v2,v3)=1.\displaystyle W^{d}(\mu_{v_{3}},\mu_{v_{4}})=0\Rightarrow k(v_{2},v_{3})=1.

Then,

ORicciG=16(0+1+1+0+0+1)=13.\operatorname{O-Ricci}^{G}=\frac{1}{6}\left(0+1+1+0+0+1\right)=\frac{1}{3}. (27)

In Algorithm 2.1, the weights Di,jD_{i,j} are used to obtain the MST and to define the measures via (8). An argument similar to those presented in (Rubleva, , Theorem 1) and (Rubleva, , Theorem 3) shows that the average Ricci curvature on a tree is independent of the weights if we use the hop distance as the metric. This fact (except for the schematic construction of the tree) is an excellent motivation for the use of the average ORicci\operatorname{O-Ricci} curvature rather than a different statistic like the maximum or minimum Ricci curvature.

We conclude that the weight function Di,jD_{i,j} should be chosen according to a prior knowledge of relative centralization of nodes. A promising line of investigation is to consider a Bayesian approach, adding prior information on node-centralization of a market to obtain better estimates for ORicci\operatorname{O-Ricci}.

3.5 Adding high-value links

In Algorithm 2.1, we obtain the MST and then add back edges satisfying

ρi,jξ.\rho_{i,j}\geq\xi. (28)

If Di,j=h(1ρi,j)D_{i,j}=h(1-\rho_{i,j}), where h:h:\mathbb{R}\to\mathbb{R} is positive and continuous function with h(0)=0h(0)=0, then (28) adds the edges ijij whose corresponding weights Di,jD_{i,j} are small. From this observation, we expect μ\mu^{*} to be similar to μ\mu due to the stability result of Bonnano et. al . The exact nature of this similarity remains an open question.

4 Results

As in Sandhu-Georgiou-Tannenbaum we start by studying the American market. We compute the average ORicci\operatorname{O-Ricci} curvature using historical closing prices for all companies in the S&P 500, obtained via the Yahoo Finance Python API. The complete sample yields 388 companies for the 1997-2014 period.

ORicciNet\operatorname{O-Ricci}^{Net} from 1998-2012.

Refer to caption
Figure 9: Value of the ORicci\operatorname{O-Ricci} indicator in 1997-2012.

In Figure 9 we observe the value of the indicator from 1998-2012. We use all data available for S&P listed companies, T=132T=132 and ξ=0.85\xi=0.85. We see a huge spike during September 2008, during the Lehman Brothers collapse.

In Sandhu-Georgiou-Tannenbaum , the algorithm of section 2.1 is presented as a measure of fragility in which the cases of most interest correspond to the biggest financial crisis (the 2008-2009 crisis being the most infamous). In Figure 9 we see the value of Algorithm 2.1 peak at the same time as the financial crisis of 2008-2009. In the next figure, we observe the behaviour during the 2008-2009 year.

ORicciNet\operatorname{O-Ricci}^{Net} during the financial crisis of 2008-2009 for T=132T=132 and ξ=0.85\xi=0.85.

Refer to caption
Figure 10: Value of the ORicci\operatorname{O-Ricci} indicator in 2008-2009 (during the financial crisis) using all the companies in the S&P 500, T=132T=132, and ξ=0.85\xi=0.85.

Figure 10 shows that the ORicci\operatorname{O-Ricci} seems to have returned to it’s usual values by February or March 2009. Nevertheless, the instability of the market seems to be different when we analyze with smaller values of TT.

ORicciNet\operatorname{O-Ricci}^{Net} during the financial crisis of 2008-2009 for T=22T=22 and ξ=0.85\xi=0.85.

Refer to caption
Figure 11: Value of the ORicci\operatorname{O-Ricci} indicator in 2008-2009 (during the financial crisis) using all the companies in the S&P 500, T=22T=22, and ξ=0.85\xi=0.85. In red we observe the crash day September 29, 2008.

In Figure 11, we see the analysis of the year 2008-2009. The 2008 crisis corresponds to the period of instability, the variance and height of the average ORicci\operatorname{O-Ricci} curvature did not return to it’s pre-crisis values until April-May 2009.

4.1 American market: Change of threshold

In the works Boginski et. al. and Tse-Liu-Lau it was argued that adding high-value links tends to give a more accurate schematic picture of the actual state of the market. For the method of Algorithm 2.1 to be robust, we need to analyze the ξ\xi-elasticity of the ORicci\operatorname{O-Ricci} indicator. By Proposition 1 we can estimate the effect of adding a single edge. In particular, the edges associated to high-value links can only decrease the hop distance in the new graph (because any path of less steps remains in the graph).

In the following figures we observe that as we increase ξ\xi, the average curvature decreases. Although we see this behaviour on the general level of the plots, it is not true on a “point-to-point” basis. This observation, rooted in the fact that ORicci\operatorname{O-Ricci} depends on the ratio of WdW^{d^{*}} and dd^{*}, indicates that an apparent trend in a small period of time is not reliable unless ξ\xi is somehow prescribed or fixed. Two experiments with similar values ξ1ξ2\xi_{1}\approx\xi_{2} and ξ1ξ2\xi_{1}\neq\xi_{2} can indicate short-term tendencies in opposite directions.

We start with an extreme value of T=2000T=2000 and then we show that the same behaviour is observed in the cases T=22T=22 and T=132T=132, which are much noisier by default.

Refer to caption
Figure 12: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 10 companies of the American market.
Refer to caption
Figure 13: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 25 companies of the American market.
Refer to caption
Figure 14: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 30 companies of the American market.
Refer to caption
Figure 15: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 50 companies of the American market.

Figures 12, 14, 13 and 15 show that although the general trend is captured by the indicator, changes in ξ\xi are extremely significant for short-period analysis.

Next, we show the same behaviour is observed in the noisy case (arguably the case of most interest) corresponding to smaller values of TT.

Refer to caption
Figure 16: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 10 companies of the American market.
Refer to caption
Figure 17: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 30 companies of the American market.
Refer to caption
Figure 18: Changes on the method as ξ\xi varies, full time period 1997-2024, on a random sub-graph of 50 companies of the American market.

We continue the same simulations for T=132T=132 in order to show that the phenomena explained in the previous section prevails in a slightly smoother case.

Refer to caption
Figure 19: Changes on the method as ξ\xi varies, full time period 1997-2024 on a random sub-graph of 10 companies of the American market, T=22T=22.
Refer to caption
Figure 20: Changes on the method as ξ\xi varies, full time period 1997-2024 on a random sub-graph of 25 companies of the American market, T=22T=22.
Refer to caption
Figure 21: Changes on the method as ξ\xi varies, full time period 1997-2024 on a random sub-graph of 30 companies of the American market, T=22T=22.
Refer to caption
Figure 22: Changes on the method as ξ\xi varies, full time period 1997-2024 on a random sub-graph of 50 companies of the American market, T=22T=22.

4.2 Different market: The Canadian experience

In this section we choose companies from the S&P ETFs for Canadian companies and evaluate the ORicci\operatorname{O-Ricci} estimator.

Canadian experience 2008-2024

Refer to caption
Figure 23: ORicciNet\operatorname{O-Ricci}^{Net} during the period from 2008-2024 for all companies domiciled to Canada according to TMX.

Figure 23 shows the relative difference (according to ORiccinet\operatorname{O-Ricci}^{net}) of the financial crisis of 2008 and the impact of the Covid-19 pandemic on ORiccinet\operatorname{O-Ricci}^{net}. From 23 we see that the impact of the 2008 crisis on correlations of the stock market is higher than that of the pandemic. In the following figure (Figure 24) we see this difference replicated for most values of ξ\xi, making the analysis much more robust.

Canadian experience 2008-2024 changing ξ\xi

Refer to caption
Figure 24: ORicciNet\operatorname{O-Ricci}^{Net} during the period from 2008-2024 for all companies domiciled to Canada according to TMX, for different values of ξ\xi.

Average ORicci\operatorname{O-Ricci} Curvature of the top 20 Canadian companies from 1997-2024.

Refer to caption
(a) T=132T=132
Refer to caption
(b) T=500T=500
Refer to caption
(c) T=1000T=1000
Refer to caption
(d) T=2000T=2000
Figure 25: Average ORicci\operatorname{O-Ricci} curvature (Algorithm 2.1) for the top 20 Canadian companies composing the S&P BMI Canada for different values of ξ\xi.

From the sub-graph of the Canadian market with large TT (Figures 25(c) and 25(d)), we observe a clear increase in fragility during 2004-2008 period and a clear decrease in the indicator for all values of ξ\xi in 2018-2020, followed by another increase at the same time as the Covid-19 pandemic.

4.3 Not a country: The Tech-sector crunch

In this section we look at the ORicci\operatorname{O-Ricci} curvature of a specific subgraph of the market. We look at the technology sector in order to analyze it’s fragility before the famous Tech crunch resulting in the lay-offs of 2023-2024. As before, for values of ξ(0.75,0.85)\xi\in(0.75,0.85) the plot seems more stable. Nevertheless, the indicator does not show the fragility of the sector in a predictive manner (one possible explanation for the decrease in curvature are the lay-offs themselves). We use the time period 2018-2024 instead of 1997-2024 as most current tech companies have had their IPOs in more recent times.

Technology Sector
Refer to caption

Figure 26: Average ORicci\operatorname{O-Ricci} curvature, time period 2018-2024, all the companies listed in NASDAQ Tech Sector (NDXT), T=132T=132, and ξ=0.85\xi=0.85.

Technology Sector
Refer to caption

Figure 27: Changes on the method as ξ\xi varies, full time period 1997-2024, all the companies listed in NASDAQ Tech Sector (NDXT), T=132T=132.
Refer to caption
Figure 28: Changes on the method as ξ\xi varies, time period 2018-2024, all companies listed in NASDAQ Tech Sector (NDXT), T=2000T=2000.

Figure 28 shows the complexity of choosing the parameters for the indicator. While we expect large TT (20002000) to show a clearer picture, for the Tech Industry it seems to be “too big”. In the T=2000T=2000 case different values of xixi show different behaviours, while T=132T=132 successfully captures some peaks for most values of ξ\xi. One possible explanation for this phenomena is that this sector is deemed to be more volatile, in some underlying sense, so large values of TT “average out” the local tendencies.

4.4 Implementation of Ollivier-Ricci Gradient Sub-Sampling

As argued in Section 3.1, the ORicci\operatorname{O-Ricci} curvature of the MST seems to have no direct relation to the ORicci\operatorname{O-Ricci} curvature of the original graph. It is reasonable to study a sub-graph which maximizes or minimizes ORicciNet\operatorname{O-Ricci}^{Net}. Given a random initial vertex and a size nn, one can generate a sub0graph with nn vertices and minimal ORicciNet\operatorname{O-Ricci}^{Net} following the algorithm in Wu et. al . Whether computing such an indicator performs better than the one presented in Sandhu-Georgiou-Tannenbaum is an interesting open question left for further research (with higher available computational power).

4.4.1 Algorithm for maximized ORicci\operatorname{O-Ricci} curvature

To obtain a fragility indicator from ORicci\operatorname{O-Ricci} gradient descent using mm nodes.

Input: m,T,ξ,startDate,endDatem,T,\xi,\texttt{startDate},\texttt{endDate}
for k{1,,endDatestartDateT}k\in\{1,\dots,\texttt{endDate}-\texttt{startDate}-T\} do
     Compute correlations matrix ρi,j\rho_{i,j} between stocks in period [startDate,startDate+T][\texttt{startDate},\texttt{startDate}+T].
     Compute cost function Di,j=2(1ρi,j)D_{i,j}=\sqrt{2(1-\rho_{i,j})}.
     Find via gradient descent (as in Wu et. al ) a sub-graph with mm nodes and maximal curvature.
     Add edge xyxy to GG if ρx,yξ\rho_{x,y}\geq\xi.
     For every edge abab compute the Ollivier-Ricci Curvature via
κ(a,b)=1W1(μa,μb)d(a,b).\kappa(a,b)=1-\frac{W_{1}(\mu_{a},\mu_{b})}{d(a,b)}. (29)
where, for a neighbor vv of node aa i.e. (vNav\in N_{a})
μa(v)=Ca,vwNaCa,w\mu_{a}(v)=\frac{C_{a,v}}{\displaystyle\sum_{w\in N_{a}}C_{a,w}} (30)
     and d(a,b)d(a,b) is the (unweighted) HOP distance: counting the minimum number of steps in the shortest path of the extended graph.
     Compute the average curvature ORiccinet\operatorname{O-Ricci}^{net} by averaging kk over all edges in GG.
end for
Return the average curvature ORiccinet\operatorname{O-Ricci}^{net}

We see in the next figure that the behaviour for small number mm is similar to the indicator of algorithm 2.1. The technique of algorithm of section 4.4.1 has the extra advantage of inheriting minimal curvature. In risk modelling and heavy-tail phenomena it is common to consider as best policy the one related to the worst case scenario. Minimum curvature sub-graphs do exactly that. We note that by computational restrictions our numerical results are not optimal. Two possible remedies are:

  1. 1.

    Increase available computational power.

  2. 2.

    Perform a stochastic gradient descent on ORicci\operatorname{O-Ricci} curvature.

We leave both of these directions for forthcoming research.

4.4.2 Results for deterministic gradient sub-sampling

ORicci\operatorname{O-Ricci} indicator from minimum curvature sub-graph, American market.

Refer to caption
(a) T=22T=22 and ξ=0.85\xi=0.85.
Refer to caption
(b) T=132T=132 and ξ=0.75\xi=0.75.
Refer to caption
(c) T=132T=132 and ξ=0.85\xi=0.85.
Refer to caption
(d) T=300T=300 and ξ=0.85\xi=0.85.
Figure 29: ORicci\operatorname{O-Ricci} curvature for a random sub-sample of 2020 stocks with sub-graph of minimum curvature using 2020 nodes and random initialization.

We remark that similar graphs using the maximum curvature sub-graph yielded noisy graphs with no apparent trends.

5 Conclusions and Further work

In section 2 we posed the following questions, which we now answer:

  1. 1.

    Q: How well does the indicator measure crisis?
    Answer: For certain values of ξ\xi (whose precise determination is not an easy task), the indicator measures times of financial crisis in length and depth. The indicator allows us to compare different crisis in terms of the hidden interconnections of financial agents.

  2. 2.

    Q: What happens if one does not add high-value links using ξ\xi ?
    Answer: As observed in section 3.5, if ξ=1\xi=1 (i.e. no link is added), the MST is not capable of showing the crashes.

  3. 3.

    Q: What is the ξ\xi- elasticity? How does one choose ξ\xi?
    Answer: The choice of ξ\xi is fundamental to the analysis and depends not only on the distance function used, but also on the underlying financial market. The determination of ξ\xi should be empirical (or probably Bayesian) and heuristically 0.75ξ0.90.75\leq\xi\leq 0.9 can perform well.

  4. 4.

    Q: As TT grows does the time series regularize?
    Answer: In all cases bigger values of TT showed a clearer representation of the crisis. As ORicciNet\operatorname{O-Ricci}^{Net} is supposed to be used as an ex-post tool rather than a predictor element, considering the biggest TT available is recommended.

  5. 5.

    Q: As TT decreases do we approach white noise?
    Answer: Yes, as shown in section 3.3.1. This observation should alert a modeller that choosing a small value of TT (while desirable in applications) comes with bigger risk.

  6. 6.

    Q: What is the impact of using the MST? Are there other better subgraphs?
    Answer: If computationally plausible, one should attempt to use the closest representation of the original network graph. This is viable when studying interactions between sectors or small markets. In the case of large amounts of data, one can use MST, keeping in mind the examples in Section 3.1.

  7. 7.

    Q: What happens for different cost functions Di,jD_{i,j}?
    Answer: By relative stability of MST to weights (see Bonnano et. al ) the dependence on the cost is not crucial. Similar costs yield similar MSTs and when high-value links are added, the graphs behave similarly (the adding is done through correlations and not weights).

  8. 8.

    Q: Is the average the most efficient way to measure risk?
    Answer: As explained in Example 5, there are many benefits of using the average Ricci curvature but there are interesting properties of other estimators which could be useful. The weight independence explained in Section 3.4 is the main motivation.

  9. 9.

    Q: Is using the hop distance the only way to obtain the optimal structure or should it be used to compute the curvature too?
    Answer: Numerical experiments not included in this work have shown that using the weighted curvature is even less precise than the algorithm presented in section 2.

5.1 Interpretation of the indicator

Throughout this work we have shown that ORiccinet\operatorname{O-Ricci}^{net} is a good indicator of crisis periods. The trends in the average Ollivier-Ricci curvature reliably indicate the size and duration of the instability periods of financial markets. For this reason, the indicator can be an important tool for economical and financial analysis.

Due to it’s dependence on the threshold variable ξ\xi, as indicated in section 3.5, one should be careful when using ORiccinet\operatorname{O-Ricci}^{net} to predict short time tendencies of the market. In sections 4.2 and 4.3 we observed that the value of ξ\xi the modeller should use depends on the underlying financial market. Thus, it is reasonable to use a Bayesian approach to the determination the threshold. After calibration, ξ\xi should be understood as a hypothesis on which the inference of crisis from ORiccinet\operatorname{O-Ricci}^{net} depends on. As long as this hypothesis is fully assumed, the indicator adds value to our understanding of the random dynamics of financial systems.

Note that Algorithm 2.1 depends on parameters ξ\xi and Di,jD_{i,j} together with the use of the MST as the skeleton approach to the underlying network. The use of the MST is currently the most computationally feasible approach to markets with large amounts of data. If the market of interest is of small enough size one can use (1) directly from the constructed network, avoiding having to reduce to the MST and adding links via ξ\xi.

5.2 Taking away data could be crucially unfair

One important observation about Algorithm 2.1 is that one should try to avoid dropping incomplete data. Say you want to analyze a market in a period of time where a crash happened, the crash may be a result of subsequent bankruptcy of entities with hidden connections. Computing the indicator after removing such entities misses the dependence on entities which can be fundamental to the crisis. For example, if several banks declare bankruptcy in the time period of study, one does not have complete data after their individual crashes, but it is these crashes that may explain the financial default of the system. Therefore, given a period of time, one should consider every entity which has participated in that period.

5.3 Further research

In this section we present the lines of investigation which remain open and we believe are of most interest.

5.3.1 Relation between ORicci\operatorname{O-Ricci} curvature and connectivity of a graph.

We can understand Proposition 2 as a connection between curvature and connectivity. If a graph is highly connected, then the degrees of the vertices are very high, and the majority of edges should not significantly increase the hop distance if removed. In this case, (21) tells us that adding an edge will not result in a big change in curvature.

5.3.2 The exponential moving average

If we want to give the most recent data more influence, it is common practice in mathematical finance to use the exponential moving average. What happens if the exponential moving average is applied to the time series before any other calculation? Does it yield a better indicator in the hopes of avoiding the white noise in the T0T\to 0 limit?

5.3.3 The Beckman Problem

Although equation (21) is a good connection between curvature and connectivity, there might be a stronger connection. The relation between the Beckmann and the Kantorovich Problem in the continuous case (see (Santambrogio, , Theorem 4.6)) is well-known, whether or not similar relations hold in the discrete case (relating the max-flow min-cut problem would to the Wasserstein (Kantorovich) formulation of curvature) is unbeknownst to the authors. In the case where the weighted distance is used (different to the hop distance), (Rubleva, , Theorems 1,2) are well known. We expect similar results for the hop-case.

References

  • (1) S. Miccichè, G. Bonanno, F. Lillo, R. Mantegna, Degree stability of a minimum spanning tree of price return and volatility, Physica A: Statistical Mechanics and its Applications, Volume 324, Issues 1–2,2003,Pages 66-73.
  • (2) V. Boginski, S. Butenko, P. M. Pardalos, Mining market data: A network approach., Comput. Oper. Res. 33, 3171–3184 (2006).
  • (3) R.J. McCann, Displacement convexity of Boltzmann’s entropy characterizes the strong energy condition from general relativity, Camb. J. Math. 8:3, (2020) 609-681.
  • (4) Y. Ollivier, Ricci curvature of metric spaces, C. R. Acad. Sci., Paris, Ser. I 345 (2007) 643–646.
  • (5) O.V. Rubleva, The Ricci curvature of a weighted tree, Math Notes, 100, 597–606 (2016). https://doi.org/10.1134/S0001434616090315
  • (6) A. Samal , H. Pharasi, J.S. Ramaia, H. Kannan, E. Saucan, J. Jost, A. Chakraborti Network geometry and market instability R. Soc. Open Sci. 8201734 2021
  • (7) R. Sandhu , T. T. Georgiou, A.R. Tannenbaum, Ricci curvature: An economic indicator for market fragility and systemic risk, Sci. Adv.2, e1501495, (2016).
  • (8) F. Santambrogio, Optimal Transport for Applied Mathematicians Calculus of Variations, PDEs, and Modeling, Progress in Nonlinear Differential Equations and Their Applications (PNLDE, volume 87), Springer.
  • (9) C. K. Tse, J. Liu, F. C. M. Lau, A network perspective of the stock market., J. Empir. Financ. 17, 659–667 (2010).
  • (10) C. Villani, Optimal Transport: Old and New, Springer, A series of Comprehensive Studies in Mathematics, 2009, Berlin.
  • (11) S. Wu, H. Cheng, J. Cai, P. Ma, w.Zhong, Subsampling in Large Graphs Using Ricci Curvature, The Eleventh International Conference on Learning Representations , 2023.
  • (12) X-G. Yan, C. Xie, G-J Wang, Stock market network’s topological stability: Evidence from planar maximally filtered graph and minimal spanning tree, International Journal of Modern Physics B, 29,22, Pg.155-161,2015.