Three Random Variables

Can everything be negatively correlated?

Written on March 2, 2019

Three random variables have the same pairwise correlation. What value can such correlation take? Obviously, 1 has to be there. So does 0. -1 seems a stretch, but what about -0.9, -0.5 or even -0.0001? The bigger question is, if one is negatively correlated with the rest two, is it necessary for the other two to have positive correlation?

The short answer is no. To see why, I present two solutions in this post. Note that the absence of references is by no means indicative of the idea’s originality. In fact, I owe it to many of my friends and professors from the past.

Problem Formulation

Three random variables $x$, $y$ and $z$ have the same pairwise correlation $\rho$. Find the upper and lower bound of such $\rho$.

Solution 1: the Algebraic Approach

The correlation matrix of $x$, $y$ and $z$ can be written as:

From covariance matrix’s properties, we know that being a covariance matrix is equivalent to being symmetric and positive semi-definite. Additionaly, from matrix definitiveness’ properties, it can be proven that being positive semi-definite is equivalent to all leading principal minors being non-negative. In the case of a $3 \times 3$ correlation matrix, the three leading principal minors are:

Solving the system of inequalities:

will give us the permissible range of $\rho$:

Solution 2: the Graphical Approach

Let three new random variables $X$, $Y$ and $Z$ be the demeaned version of $x$, $y$ and $z$:

Correlation-wise, substracting a constant doesn’t change anything. This suggests that if we think of $X$, $Y$ and $Z$ as three vectors $\vec{X}$, $\vec{Y}$ and $\vec{Z}$ in a $D$-dimensional space, $\rho$ is numerically equal to the cosine similarity between any two of them:

These vectors can point to the same direction to maximize cosine similarity:

where $\rho = \cos 0^\text{o} = 1$.

Or they can point to three different directions as far off as possible in the case of a equilateral triangle on the hyperplane:

where $\rho = \cos 120^\text{o} = -0.5$.

Final Thoughts

Both methods can be easily extended to the 4-random-variable case. In the algebraic solution, all it takes is to include the constraint of the 4th-order leading minor in the system of inequalities; in the graphical one, the equilateral triangle becomes a regular tetrahedron.

For 5 random variables and beyond, the former seems to be the better approach due to my inability of further mental visualization, but feel free to leave a comment if you believe otherwise.

Note: a more generalized solution can be found in Part II.