Why Pairwise Correlations Can Conflict
A correlation matrix summarizes relationships among several variables at once. Its entries are not independent calculations: they must be capable of describing one joint distribution. Missing data can break that connection when each correlation is calculated from a different set of rows. Each pairwise calculation may look reasonable on its own, yet the collection of results may be impossible as a single correlation matrix.
This issue is easy to overlook because software often reports pairwise correlations without warning that the correlations use different subsets. The resulting numbers can be useful summaries of the available pairs, but they must not automatically be treated as a coherent description of all variables together.
Pairwise deletion means calculating each pairwise statistic from its pairwise-complete subset; it is not an imputation method. Pair-specific imputation is different: it fills missing values separately for each pairwise calculation. In either case, when the calculations use different subsets or different pair-specific fills, the results need not come from one common completed data set.
The key mathematical constraint is positive semidefiniteness. A valid correlation matrix \(R\) has diagonal entries 1 and satisfies \(a^\mathsf{T}Ra \geq 0\) for every vector \(a\). For variables observed together on a common set of rows, this follows because \(a^\mathsf{T}Ra\) is the sample variance of a linear combination of standardized variables, up to a positive scaling factor. A matrix assembled from pairwise calculations on different subsets has no such common-data argument guaranteeing this property.
A Three-Variable Consistency Check
For three variables, write the correlation matrix as
A necessary condition for this matrix to be positive semidefinite is that its determinant be nonnegative. Expanding the determinant gives
This condition has a useful interpretation. If both \(X\) and \(Z\) correlate strongly and positively with \(Y\), then \(X\) and \(Z\) cannot simultaneously have a very strong negative correlation in one coherent joint distribution. A negative determinant signals that the three pairwise values cannot all be correlations from the same common data structure.
Worked Example: Pairwise Subsets Produce an Impossible Matrix
Suppose a hypothetical data set records three variables, \(X\), \(Y\), and \(Z\), but each row contains only one pair. The observed values are:
| Row | \(X\) | \(Y\) | \(Z\) |
|---|---|---|---|
| 1 | 0 | 0 | Missing |
| 2 | 2 | 2 | Missing |
| 3 | 10 | Missing | 0 |
| 4 | 12 | Missing | 2 |
| 5 | Missing | 0 | 2 |
| 6 | Missing | 2 | 0 |
For \(X\) and \(Y\), rows 1 and 2 are the pairwise-complete subset. The two values rise together, so the Pearson correlation is \(r_{XY}=1\). For \(X\) and \(Z\), rows 3 and 4 give \(r_{XZ}=1\). For \(Y\) and \(Z\), rows 5 and 6 move in opposite directions, giving \(r_{YZ}=-1\). Each calculation uses two distinct paired observations, so each pairwise correlation is defined.
Substituting these values into the determinant condition gives
The determinant is negative, so the assembled matrix is not positive semidefinite. These three pairwise results cannot describe one joint correlation structure. The issue is not arithmetic error: the three correlations were calculated on disjoint pairs of rows, and no row provides information about all three variables together. Also, each pair has only two observations, so the individual correlations are extremely unstable; their incompatibility is a warning, not a useful estimate of population relationships.
Pair-Specific Means Are Not One Joint Imputation
The same example also shows why imputation performed separately for each pair can be ambiguous. For the \(X,Y\) calculation, the observed \(X\) values are 0 and 2, with mean \((0+2)/2=1\). For the \(X,Z\) calculation, the observed \(X\) values are 10 and 12, with mean \((10+12)/2=11\). Thus the pair-specific mean for \(X\) is 1 in one calculation and 11 in another.
Those means are not contradictory as summaries of different subsets. But if an analyst treats them as though they were one imputed value for each missing \(X\), the procedure has no single completed data set behind it. Each pair may be analyzed using a different set of rows and a different fill rule. Consequently, the resulting pairwise correlations need not satisfy the mathematical constraints that apply to correlations calculated together from one data set.
Worked Example: Testing a Less Extreme Set of Correlations
Suppose a hypothetical pairwise analysis reports \(r_{XY}=0.8\), \(r_{XZ}=0.8\), and \(r_{YZ}=-0.8\). Each value lies between \(-1\) and 1, but that range check alone does not establish that the three values form a valid correlation matrix.
The determinant check is
Because \(-1.944 < 0\), these values cannot form a valid three-variable correlation matrix. They may have arisen from separate pairwise subsets, or from inconsistent pair-specific imputation. The matrix check does not tell us which calculation is at fault, nor does it identify the true correlations; it only establishes that the three reported values cannot all be interpreted as correlations in one joint structure.
For a contrast, suppose the pairwise results were \(r_{XY}=0.8\), \(r_{XZ}=0.8\), and \(r_{YZ}=0.5\). Then
This determinant is positive, so the determinant condition does not rule out the matrix. Passing this check is not proof that the estimates are reliable: sample sizes and missingness patterns still matter, and a three-variable determinant check is only one part of checking a larger matrix.
What a Common Set of Rows Guarantees
When all correlations are calculated from the same complete rows, they come from the same columns of observed values. Standardizing each column and forming the sample correlation matrix then gives a Gram matrix: each entry is an inner product between two standardized columns. For any vector \(a\), the quadratic form is the squared length of the corresponding linear combination of those columns, scaled by a nonnegative constant. It therefore cannot be negative. This is the reason a common-data correlation matrix is positive semidefinite.
Listwise deletion uses only rows complete on every variable in the analysis. It can therefore yield a coherent matrix when there are enough complete rows and each variable has nonzero variation. But it may discard many observations, and the resulting complete-case analysis can be biased if the inclusion of a row in the complete subset is related to the data in a way relevant to the analysis. The assumptions governing missingness matter; matrix coherence alone does not establish that the estimates represent the desired population.
A single jointly completed data set also gives a coherent sample correlation matrix, provided its variables have nonzero variation. That algebraic coherence does not guarantee that the imputed values are plausible or that the correlations are unbiased. In particular, a coherent matrix can still reflect distortion introduced by the imputation procedure. Multiple imputation addresses missing-data uncertainty differently, but it does not make pairwise incompatibilities irrelevant: summaries and analyses must still be defined and combined appropriately.
Worked Example: Choosing a Diagnostic Before Interpretation
A hypothetical analyst reports a three-variable correlation matrix with \(r_{XY}=0.65\), \(r_{XZ}=0.70\), and \(r_{YZ}=-0.60\). The \(X,Y\) correlation uses 120 rows, \(X,Z\) uses 95 rows, and \(Y,Z\) uses 88 rows. First check whether the values can form a correlation matrix:
The determinant is negative. The matrix is therefore incoherent, and its entries should not be presented as one joint correlation matrix. The different pairwise sample sizes are a direct clue that the pair calculations use different subsets, though unequal sample sizes alone do not prove that a matrix is invalid.
A useful audit would record the row identifiers used for each pair, the number of observed pairs, and the amount of missingness in each variable. The analyst should then check whether the problem is due to pairwise deletion, pair-specific imputation, or a data-processing error. Simply changing the display format or rounding the correlations cannot resolve a negative determinant of this size.
Diagnostics, Alternatives, and Limitations
Before interpreting pairwise correlations in an analysis with missing data, check how each entry was computed. In particular, determine the pair-specific sample size, whether the same rows were used across pairs, and whether any imputation was performed separately for each pair. For three variables, calculate the determinant as a simple consistency check. For larger matrices, check positive semidefiniteness using the matrix eigenvalues or an equivalent numerical procedure. Small negative eigenvalues can sometimes result from rounding; substantial negative values indicate incompatibility that needs investigation.
A coherent matrix is a mathematical requirement for a joint correlation summary, not a test of whether missingness is harmless. Pairwise deletion can be biased under some missingness patterns, and even estimates that pass a matrix check may be imprecise or biased. The earlier material on missingness mechanisms provides the framework for considering whether the missingness process threatens the target of inference.
The main alternatives answer different needs:
- Pairwise deletion retains available rows for each pair, but can produce incomparable sample sizes and an incoherent matrix.
- Listwise deletion uses a common complete-case sample and yields a coherent matrix, but may lose substantial information and can be biased under relevant missingness mechanisms.
- One joint imputation creates a coherent completed data set, but coherence alone does not account for uncertainty about missing values or guarantee accurate relationships.
No option is justified solely because it produces a valid-looking matrix. The analysis should make clear which observations contribute to each estimate, what missingness assumptions are being made, and what population or association the results are intended to describe.
Common Mistakes
- Checking each correlation only against the range \([-1,1]\). Every entry in an impossible matrix can still lie within this range. Check joint matrix constraints, such as the determinant condition for three variables.
- Treating pairwise deletion as imputation. Pairwise deletion omits rows separately for each pair; it does not fill missing cells. Pair-specific imputation is a distinct procedure and may also fail to define one joint data set.
- Assuming a valid matrix proves valid inference. Positive semidefiniteness establishes mathematical coherence, not lack of bias, adequate precision, or a correct missingness model.
- Calling unequal pairwise sample sizes proof of inconsistency. Unequal counts indicate different amounts of available information, but the matrix can still be positive semidefinite. Check the matrix itself.
Check Your Understanding
Answer each question, then compare with the solutions below.
- What does the pairwise-complete subset for variables \(Y\) and \(Z\) contain?
- A three-variable correlation matrix has \(r_{XY}=0.6\), \(r_{XZ}=0.6\), and \(r_{YZ}=-0.8\). Does it pass the determinant check?
- Why can pair-specific mean imputation fail to represent one jointly completed data set?
- Does a positive semidefinite correlation matrix show that the missing-data analysis is unbiased? Explain.
Solutions. (1) It contains exactly the rows in which both \(Y\) and \(Z\) are observed; \(X\) may be observed or missing. (2) The determinant is \(1+2(0.6)(0.6)(-0.8)-0.6^2-0.6^2-(-0.8)^2=1-0.576-0.36-0.36-0.64=-0.936\). Since this is negative, the matrix fails the check. (3) Different pairs can use different observed rows and therefore calculate different means for the same variable. Those pair-specific fills need not correspond to one consistent value for each missing cell in one completed data set. (4) No. Positive semidefiniteness shows that the correlations are mathematically compatible as a joint matrix; it does not establish that missingness assumptions are appropriate or that the estimates are unbiased.