The previous post of this series on mathematical problems related to correlation matrices introduced the nearest correlation matrix problem1, which consists in determining the closest2 valid correlation matrix to an approximate correlation matrix In this blog post, I will now describe the correlation matrix completion problem, which consist in filling in the missing coefficients of a partially specified correlation matrix in order to produce a valid correlation matrix. As noted in Dreyer et al.3, such matrices often arise in financial applications when the number of stochastic variables becomes large or when several smaller models are combined in a larger model3. After a couple of reminders on correlation matrices, I will detail the mathematical formulation of the correlation matrix completion problem, discuss its exact and approximate solutions and I will finally illustrate how this problem naturally appears when working with capital market assumptions from financial institutions. Mathematical preliminaries Let be a number of assets. Correlation matrices Let be a square matrix. is a correlation matrix if and only if is symmetric: is unit diagonal: , is positive semi-definite, that is, The sets of correlation matrices Let be the following convex sets: such that and is positive semi-definite such that and is positive definite such that and Then: The set of correlation matrices is the convex compact set . The set of invertible correlation matrices is the open bounded convex set . As a geometrical side note, the set of vectorized correlation matrices defines a subset of the unit hypercube in called the elliptope, c.f. for example the website Convex Optimization. Partial correlation matrices completion A partial correlation matrix is a symmetric unit diagonal matrix4 whose coefficients are not all specified. A partial correlation matrix is said to be partial positive (semi-)definite when its specified principal minors are positive (semi-)definite. A positive semi-definite completion - or simply a completion - of a partial correlation matrix is a correlation matrix such that whenever the coefficient is specified in . A positive definite completion of a partial correlation matrix is a positive definite correlation matrix such that whenever the coefficient is specified in . Undirected graph associated to a correlation matrix Let be a partial correlation matrix. It is possible5 to associate an undirected graph to , defined as follows: is the set of vertices is the set of edges, with whenever the coefficient is specified, with . The graph is then said to be chordal if every cycle of length greater than or equal to 4 has a chord, which is an edge that is not part of the cycle but connects two vertices of the cycle6. As a reminder, a cycle in G is a sequence of pairwise distinct vertices such that , , …, , , with called the length of the cycle. The correlation matrix completion problem Problem formulation Let be: a partial correlation matrix. the index set of the specified off-diagonal elements of . such that for Then: The correlation matrix completion problem is the problem of finding a correlation matrix that completes the matrix , that is, finding . The positive definite correlation matrix completion problem is the problem of finding a positive definite correlation matrix that completes the matrix , that is, finding . Existence of solutions Contrary to the nearest correlation matrix problem, the correlation matrix completion problem does not always admit a solution. Indeed, an already necessary condition for a completion to exist is for the partial correlation matrix to be partial positive semi-definite5. So, for example, the following partial correlation matrix does not admit any completion: [C_1 = \begin{pmatrix} 1 & -1 & -1 & -1 \ -1 & 1 & -1 & -1 \ -1 & -1 & 1 & . \ -1 & -1 & . & 1 \end{pmatrix}] Beyond this necessary condition, Fiedler7, Grone et al.5 and Smith8 all establish the following result9: A partial positive semi-definite correlation matrix is completable regardless of the values of the specified correlations if and only if the undirected graph associated to these specified correlations is chordal. To be noted that when that graph is not chordal, nothing can be said in general because the existence of a completion then depends on the exact values of the specified correlations. As an illustration: Let be the following partial positive definite correlation matrix: [C_2 = \begin{pmatrix} 1 & 1 & . & 1 \ 1 & 1 & 1 & . \ . & 1 & 1 & . \ 1 & . & . & 1 \end{pmatrix}] The undirected graph associated to that partial correlation matrix is the graph with the set of vertives and the set of edges , depicted in Figure 1. Figure 1. Undirected graph associated to the partial correlation matrix C2. From Figure 1, that graph is chordal, because there are no cycles of length >= 4. Consequently, the partial correlation matrix admit a positive definite completion and the existence of that completion does actually even not depend on the values of the specified correlations (here, all 1s). Let now be the following partial positive semi-definite correlation matrix: [C_3 = \begin{pmatrix} 1 & 1 & . & 0 \ 1 & 1 & 1 & . \ . & 1 & 1 & 1 \ 0 & . & 1 & 1 \end{pmatrix}] The undirected graph associated to that partial correlation matrix is the graph with the set of vertives and the set of edges , depicted in Figure 2. Figure 2. Undirected graph associated to the partial correlation matrix C3. From Figure 2, that graph is not chordal, because there is only one cycle of length 4 and that cycle does not have any chord. Consequently, the partial correlation matrix might or might not admit a completion, nothing can be said at this stage. For the interested reader, a couple of other theoretical results can be found in Fiedler7, which also notes that the general [completion] problem […] seems to be difficult7. Unicity of solutions Again contrary to the nearest correlation matrix problem, the correlation matrix completion problem does not generally admit a unique solution when one exists. Indeed, Grone et al.5 establishes that the set of all positive semi-definite completions of a partial correlation matrix is in general a convex compact set and not a singleton. This result can be illustrated with one and two missing correlations: One missing correlation The partial correlation matrix has one missing correlation. By introducing the variable representing that missing correlation, a completion is a valid completion if and only if it has a positive or null determinant, that is, . That condition being equivalent to the condition , all correlation matrices of the form with are completions of . Two missing correlations The partial correlation matrix represented in Figure 3 has two missing correlations. Figure 3. Partial correlation matrix with 2 missing correlations. Source: Georgescu et al. Because all the specified sub-matrices of are positive semi-definite, a completion is again a valid completion if and only if it has a positive or null determinant. By introducing the variables and representing the two missing correlations, the determinant of can be factored as . Non-negativity of that determinant is then equivalent to the condition [0.67x^2 +0.75y^2 −xy −0.32x−0.24y+0.17 \leq 0] , which defines the 2-dimensional ellipse (and its interior) depicted in Figure 4. Figure 4. Feasible region for Georgescu et al.'s partial correlation matrix completions. All correlation matrices with the same correlations as , a correlation and a correlation - with satisfying the above relationship - are thus completions of . The existence of infinitely many completions10 naturally leads to trying to find a best-estimate completion in some sense6, which does exist and is called the maximum determinant completion6. The maximum determinant correlation matrix completion problem Fiedler7 originally demonstrated that if a positive definite partial correlation matrix admits a completion, then, there is a unique matrix in the (nonempty) class of all positive definite completions […] that has maximum determinant8. More recently, by introducing a generalized determinant that gives the determinant of the nonsingular part of [a] matrix11, Dreyer11 established a similar result for positive semi-definite partial correlation matrices. That completion, called the maximum determinant completion - or the Max-Det completion - has several intesting theoretical properties, which makes it an ideal candidate for guaranteeing the unicity of the completion of a correlation matrix. Problem formulation Let be: a partial correlation matrix. the index set of the specified off-diagonal elements of . such that for The maximum determinant correlation matrix completion problem can be cast as a generalization of a semidefinite programming problem: [C^* = \operatorname{argmax} \log ( \det (X) ) \text{ s.t. } X \in \mathcal{S}^n_{+} \cap \mathcal{E}^n \cap \mathcal{U}^n] Assuming that a solution exist, c.f. the previous section, Grone et al.5 and Olvera Astivia12 show using standard results from mathematical optimization theory that it is necessarily unique. Mathematical properties of the solution Georgescu et al.6 summarizes the main properties of the maximum determinant correlation matrix completion: For the multivariate normal model, it maximizes the entropy of the distribution described by the matrix van der Schans and Boer13 comments this property as follows: Since the already specified [correlations] imply a dependence between variables between which no dependence is specified and dependence reduces the amount of uncertainty in a system, the intuitive interpretation of entropy maximization is not introducing more dependence than is already implied by the already specified [correlations]. Again for the multivariate normal model, it maximizes the likelihood of the correlation matrix It corresponds to the analytic centre of the feasible region described by the positive semi-definiteness constraints6 In other words, for a given partial correlation matrix, its maximum determinant completion lies as “deep” as possible14 inside the set of all its positive definite completions. Computation of the solution The original algorithmic approach to solving determinant maximization problems with matrix constraints has been to use interior point methods15. More recently, dual projected gradient methods have been developed that are better able to scale with the dimensionality of the problem16. Nevertheless, the drawbacks of these algorithms, from an application point of view, are that they are difficult to implement […], do not always converge if inconsistent starting [correlations] are specified and, finally, global optimization is too slow and memory consuming for large matrices13. More on “inconsistent starting correlations” later. For these reasons, it is tempting to [simply] set the missing [correlations] to zero3, but this approach has several shortcomings3, among which the fact that forcing unspecified correlations to zero17 might not be ideal for financial applications where most assets are correlated to each other. To illustrate this point, Figure 5 represents a partial correlation matrix with a block of missing correlations. Figure 5. Partial correlation matrix with a block of missing correlations. Source: Georgescu et al. The maximum determinant completion of the block of missing correlations is6 [E_1 = \begin{pmatrix} 0.1000 & 0.1500 & 0.0500 & 0.0750 \ 0.2400 & 0.3600 & 0.1200 & 0.1800 \ 0.2200 & 0.3300 & 0.1100 & 0.1650 \ 0.2600 & 0.3900 & 0.1300 & 0.1950 \ 0 & 0 & 0 & 0 \end{pmatrix}] , while the completion of the same block of missing correlations obtained after setting them to zero and computing the nearest correlation matrix to the resulting full approximate correlation matrix is6 [E_2 = \begin{pmatrix} 0.0022 & 0.0084 & 0.0004 & 0.0035 \ 0.0003 & 0.0011 & 0.0001 & 0.0005 \ 0.0025 & 0.0098 & 0.0005 & 0.0040 \ 0.0042 & 0.0164 & 0.0008 & 0.0067 \ 0 & 0 & 0 & 0 \end{pmatrix}] Comparing the two sub-matrices and , it is clear that the completed correlations of are much closer to zero than those of , thus imposing an additional soft constraint of “closeness to zero” to the correlation matrix completion problem. Reverting to simple heuristics for the correlation matrix completion problem might thus be potentially dangerous, depending on the context. Hopefully, van der Schans and Boer13 proposes an heuristic which does not suffer from these shortcomings and that: Is fast, which makes it suitable for applications in which the computation time is important13 Tries to not introduce more dependence between variables than is implied by the initially specified [correlations]13, contrary to the “setting missing correlations to zero” heuristic Additionally corrects for inconsistencies in the already specified [correlations]13, but again, more on this later Empirically produces completions with an average correlation difference with the maxdet completion [that is] reasonable13 A drawback of this heuristic, though, is that it depends on the ordering of the rows and columns of the [correlation] matrix, i.e. the heuristic will yield a different result if first rows and columns of [the matrix] are interchanged before starting the procedure13, which might or might not be acceptable in practice. As a side note, explicit solutions of the maximum determinant correlation matrix completion problem are known in specific cases, for example for correlation matrices that follow an L-shaped, block diagonal pattern which is a common structure in insurance problems12, c.f. Georgescu et al.6 The infeasible maximum determinant correlation matrix completion problem In the previous section, a solution to the maximum determinant correlation matrix completion problem was assumed to exist. There are at least two practical problems with this assumption: A partial correlation matrix might theoretically admit a completion, but numerical round-off errors might prevent an algorithm from finding it An example of such an ill-behaved matrix can be found in Glunt et al.18, but it is a partial covariance matrix and not a partial correlation matrix… Building a similar example using a partial correlation matrix is certainly doable, but I failed to do so quickly, so, no example here. More typically, the initially specified [correlations] can be inconsistent in the sense that no valid completion exists13 Here, the partial correlation matrix perfectly illustrates this point, even though it is a rather extreme example. In both cases, simply failing to compute a solution might be unacceptable (e.g. for downstream pipelines), so that something must be done. Unfortunately, the currently existing literature does not focus on algorithms that both complete partially specified matrices and also correct for inconsistencies13. In other words, there is no well-established formulation of what could be called the infeasible maximum determinant correlation matrix completion problem. At minimum, what can be said is that any solution to this new problem must involve a trade-off between The closeness to the initial partial correlation matrix, for example in terms of the Frobenius distance The value of the determinant Incidentally, this is exactly how the heuristic algorithm of van der Schans and Boer13 is working: the specified [correlations] are adjusted as little as possible13 and the introduced extra (conditional) dependence between variables is as little as possible13. When applied to the partial correlation matrix , van der Schans and Boer’s algorithm13 gives [C^*_1 = \begin{pmatrix} 1 & -0.99 & -0.07 & -0.07 \ -0.99 & 1 & -0.07 & -0.07 \ -0.07 & -0.07 & 1 & 0.98 \ -0.07 & -0.07 & 0.98 & 1 \end{pmatrix}] As expected, the completed correlation matrix is very far from the partial correlation matrix , with only one correlation close to its initial value of -1 (-0.99). Again, this is an extreme infeasible example, but it empirically demonstrates that adjusting the initially specified correlations, even as little as possible13, can lead to a completed correlation matrix that does not ressemble at all the initial partial correlation matrix. Implementation in Portfolio Optimizer Portfolio Optimizer implements two methods to complete a partial correlation matrix through the endpoint /assets/correlation/matrix/completed: One proprietary method that guarantees to find the maximum determinant completion if it exists or that guarantees to minimally adjust - in terms of Frobenius distance - the partially specified correlation matrix so that a maximum determinant completion exists The heuristic method of van der Schans and Boer13, with additional tweaks to improve its numerical robustness For comparison with van der Schans and Boer’s algorithm13, the proprietary method of Portfolio Optimizer applied to the partial correlation matrix gives: [C^{**}_1 = \begin{pmatrix} 1 & -0.30 & -0.59 & -0.59
Completing a Correlation Matrix: Another Problem from Finance
Roman R.
