Why Correlation Matrices Need Joint Checks
A covariance matrix records both the scales of the variables and their dependence. A correlation matrix removes the scales, leaving a dimensionless description of their pairwise linear associations. This can make a Gaussian model easier to interpret, but it does not make the parameters independent: the correlations must still fit together as one joint distribution.
In particular, requiring every correlation to lie between \(-1\) and \(1\) is necessary but, with three or more variables, not sufficient. The matrix as a whole must be positive semidefinite. This tutorial relates the covariance and correlation parameterizations and develops an explicit admissibility test for three variables.
From Covariance to Correlation
Let \(X=(X_1,\ldots,X_p)^\mathsf{T}\) have finite second moments, mean vector \(\mu\), and covariance matrix \(\Sigma\). Write \(\sigma_i^2=\operatorname{Var}(X_i)\). When every \(\sigma_i^2>0\), define the diagonal scaling matrix \(D=\operatorname{diag}(\sigma_1,\ldots,\sigma_p)\). The standardized vector is \(Z=D^{-1}(X-\mu)\).
Because \(D\) is invertible, standardization preserves positive semidefiniteness in both directions. Indeed, for any vector \(u\), \(u^\mathsf{T}Ru=(D^{-1}u)^\mathsf{T}\Sigma(D^{-1}u)\); conversely, \(v^\mathsf{T}\Sigma v=(Dv)^\mathsf{T}R(Dv)\). The same argument shows that \(R\) is positive definite exactly when \(\Sigma\) is positive definite. Thus a covariance matrix and its corresponding correlation matrix have the same admissibility status, although their entries have different scales.
A covariance matrix is positive semidefinite because, for every vector \(u\), \(u^\mathsf{T}\Sigma u=\operatorname{Var}(u^\mathsf{T}X)\geq 0\). Consequently, a correlation matrix must also be positive semidefinite. For a Gaussian vector, positive semidefiniteness permits a possibly singular Gaussian law; positive definiteness is required for a nonsingular law with an ordinary density on the full space. If a marginal variance is zero, its correlation with another coordinate is undefined, so the correlation parameterization above does not apply to that coordinate.
Worked Example: Standardizing a Covariance Model
Suppose a two-dimensional Gaussian vector has covariance matrix \[ \Sigma=\begin{pmatrix}4&3\\3&9\end{pmatrix}. \] The marginal standard deviations are \(\sigma_1=2\) and \(\sigma_2=3\), so \(D=\begin{pmatrix}2&0\\0&3\end{pmatrix}\).
The correlation matrix is obtained by scaling both rows and columns: \[ R=D^{-1}\Sigma D^{-1} =\begin{pmatrix}1/2&0\\0&1/3\end{pmatrix} \begin{pmatrix}4&3\\3&9\end{pmatrix} \begin{pmatrix}1/2&0\\0&1/3\end{pmatrix} =\begin{pmatrix}1&1/2\\1/2&1\end{pmatrix}. \] In particular, the off-diagonal entry is \(3/(2\cdot 3)=1/2\).
The determinant of \(R\) is \(1-1/4=3/4>0\), so this matrix is positive definite. Reconstructing the covariance matrix verifies the parameterization: \[ DRD =\begin{pmatrix}2&0\\0&3\end{pmatrix} \begin{pmatrix}1&1/2\\1/2&1\end{pmatrix} \begin{pmatrix}2&0\\0&3\end{pmatrix} =\begin{pmatrix}4&3\\3&9\end{pmatrix}. \]
Basic Constraints and the Three-Variable Test
For two variables, the correlation matrix has the form \(\begin{pmatrix}1&\rho\\\rho&1\end{pmatrix}\). Its eigenvalues are \(1+\rho\) and \(1-\rho\), so it is positive semidefinite exactly when \(|\rho|\leq 1\), and positive definite exactly when \(|\rho|<1\). With three variables, each of the three pairwise correlations must satisfy the same bound, but a further joint constraint is needed.
The determinant appearing here is obtained by direct expansion: \[ \det(R)=1(1-c^2)-a(a-bc)+b(ac-b)=1+2abc-a^2-b^2-c^2. \] The other required minors are the three \(1\)-by-\(1\) diagonal entries, all equal to one, and the three \(2\)-by-\(2\) principal minors \(1-a^2\), \(1-b^2\), and \(1-c^2\).
Proof. If \(R\) is positive semidefinite, each principal submatrix is positive semidefinite. The \(2\)-by-\(2\) submatrices therefore have nonnegative determinants, giving \(|a|,|b|,|c|\leq 1\). Also, a positive-semidefinite matrix has nonnegative determinant, so the displayed determinant condition holds.
For sufficiency, assume all four stated inequalities. For any \(\varepsilon>0\), the leading principal minors of \(R+\varepsilon I\) are positive. The first is \(1+\varepsilon\). The second is \((1+\varepsilon)^2-a^2>0\), since \(|a|\leq1\). The third is the determinant \[ \det(R+\varepsilon I)=\det(R)+\varepsilon\{(1-a^2)+(1-b^2)+(1-c^2)\}+3\varepsilon^2+\varepsilon^3>0. \] Here \(\det(R)\geq0\), each \(2\)-by-\(2\) principal minor is nonnegative, and the final terms are strictly positive. Sylvester's criterion states that a real symmetric matrix is positive definite if and only if all its leading principal minors are positive. Hence \(R+\varepsilon I\) is positive definite for every \(\varepsilon>0\). For any \(x\), \(x^\mathsf{T}Rx=\lim_{\varepsilon\downarrow0}x^\mathsf{T}(R+\varepsilon I)x\geq0\), proving that \(R\) is positive semidefinite.
For positive definiteness, Sylvester's criterion applied directly to \(R\) requires \(1>0\), \(1-a^2>0\), and \(\det(R)>0\). These imply all three pairwise inequalities are strict, since \(1-b^2\) and \(1-c^2\) are positive leading or principal minors of a positive-definite matrix. Conversely, the stated strict conditions make the leading principal minors positive, so Sylvester's criterion gives positive definiteness. \(\square\)
Worked Example: A Valid Three-Variable Correlation Matrix
Consider \(a=0.5\), \(b=0.2\), and \(c=0.4\). The pairwise constraints hold because all three absolute values are less than one. The determinant is \[ 1+2(0.5)(0.2)(0.4)-(0.5)^2-(0.2)^2-(0.4)^2 =1+0.08-0.25-0.04-0.16=0.63. \]
The determinant is positive, and the leading \(2\)-by-\(2\) principal minor is \(1-a^2=0.75>0\). The matrix is therefore positive definite, and it is an admissible correlation matrix for a nonsingular Gaussian model. For example, choosing marginal standard deviations \(2,1,3\) gives \(D=\operatorname{diag}(2,1,3)\) and the corresponding covariance matrix \[ DRD=\begin{pmatrix}4&1&1.2\\1&1&1.2\\1.2&1.2&9\end{pmatrix}. \] The off-diagonal entries are the correlations multiplied by the corresponding pairs of standard deviations.
Worked Example: Pairwise-Valid but Jointly Impossible
Now set \(a=0.9\), \(b=0.9\), and \(c=-0.9\). Each proposed pairwise correlation lies in \([-1,1]\), so checking the pairs alone would not reject the specification. But \[ \det(R)=1+2(0.9)(0.9)(-0.9)-(0.9)^2-(0.9)^2-(-0.9)^2 =1-1.458-2.43=-2.888. \]
The determinant is negative, so \(R\) is not positive semidefinite. These three numbers cannot be the correlations of any jointly distributed vector with finite second moments, Gaussian or otherwise. In particular, they cannot parameterize a Gaussian model.
Boundary Cases and Singular Gaussian Models
A zero determinant is not automatically a defect. It means the matrix is singular; for a Gaussian vector, singular covariance is allowed when a degenerate law is intended. The three-variable criterion also clarifies the special case in which one pairwise correlation is exactly \(1\) or \(-1\).
Worked Example: A Valid Boundary Matrix
Take \(a=1\), \(b=c=0.6\). The matrix is \[ R=\begin{pmatrix}1&1&0.6\\1&1&0.6\\0.6&0.6&1\end{pmatrix}. \] Its determinant is zero, since \(1+2(1)(0.6)(0.6)-1-(0.6)^2-(0.6)^2=0\).
For a direct check, its quadratic form at \(x=(x,y,z)^\mathsf{T}\) is \[ x^\mathsf{T}Rx=x^2+y^2+z^2+2xy+1.2xz+1.2yz=(x+y+0.6z)^2+0.64z^2\geq0. \] Thus \(R\) is positive semidefinite, but not positive definite. In a Gaussian model, the first two standardized coordinates are equal almost surely, while the third remains nonconstant.
More generally, if \(a^2=1\), positive semidefiniteness forces \(b=ac\). To see why, the vector \(v=(-a,1,0)^\mathsf{T}\) satisfies \(v^\mathsf{T}Rv=1-a^2=0\). For a positive-semidefinite matrix, a vector with zero quadratic form lies in its null space; hence \(Rv=0\). The third coordinate of \(Rv\) is \(-ab+c\), so \(c=ab\), which, because \(a^2=1\), is equivalent to \(b=ac\). Conversely, if \(a^2=1\) and \(b=ac\), then \[ x^\mathsf{T}Rx=(x+ay+acz)^2+(1-c^2)z^2\geq0, \] using \(|c|\leq1\). Expanding the right-hand side gives \(x^2+y^2+z^2+2axy+2acxz+2cyz\), exactly the quadratic form because \(b=ac\). The matching of the cross terms is essential: a boundary factorization must reproduce every entry of the matrix.
Why the Joint Constraint Matters
The correlation parameterization is useful because it separates marginal scale from dependence. Researchers can specify interpretable standard deviations and correlations, then reconstruct the covariance matrix as \(DRD\). But a list of pairwise associations is not necessarily a coherent multivariate model: all entries must satisfy the matrix-level positive-semidefinite constraint.
For three variables, the determinant test gives a compact complete check. In higher dimensions, positive semidefiniteness still governs admissibility, but the three-variable determinant formula is no longer enough; the full matrix must be checked. A further common pitfall is to equate “singular” with “invalid.” A singular correlation matrix is valid for a degenerate Gaussian law, though it does not define a nonsingular Gaussian density. Conversely, merely having every pairwise correlation in the allowed interval does not guarantee validity.
Check Your Understanding
Use the matrix conditions and the covariance-correlation relationship to answer each question.
- A vector has standard deviations \(2\) and \(5\), with correlation \(-0.3\). What is its covariance between the two coordinates?
- For a three-variable correlation matrix with \(a=0.4\), \(b=0.5\), and \(c=0.2\), calculate the determinant and decide whether it is positive definite.
- Why do three correlations each lying between \(-1\) and \(1\) not, by themselves, establish admissibility?
- In the boundary case \(a=1\), what relation between \(b\) and \(c\) is required for positive semidefiniteness?
- What does a zero determinant imply about a Gaussian covariance matrix, and why does it not automatically make the model invalid?