Why Centering Matters for Interaction Models
An interaction model includes a product of predictors, such as \(XZ\), to represent the possibility that the association between one predictor and the outcome varies with the other. The product can be strongly correlated with one or both predictors, especially when predictors are measured far from zero. This can make individual coefficient estimates less precise, even when the model's overall fitted values are useful.
Centering changes the reference point of a predictor: for example, \(X_c=X-\bar{x}\). In an interaction model, this changes the product column as well as the main-effect columns. It may reduce some correlations that arise from the arbitrary location of zero, but it does not guarantee that all correlations will fall. In particular, subtracting means cannot change the correlation between two predictors.
The Interaction Model and Its Assumptions
Consider the multiple regression model
Here \(Y_i\) is the outcome for observation \(i\), \(X_i\) and \(Z_i\) are predictors, and \(\varepsilon_i\) is the error. The coefficient \(\beta_3\) describes the interaction: the conditional slope of \(X\) is \(\beta_1+\beta_3Z\). For the usual least-squares coefficient estimates and their standard inferential procedures, assume the model's mean is correctly specified, the errors have conditional mean zero, and observations' errors are independent with constant variance. Normal errors are additionally assumed for exact small-sample \(t\)- and \(F\)-procedures. Collinearity is about the predictor columns; it is not itself one of these error assumptions.
If \(X\) is replaced by \(X_c=X-a\) and \(Z\) by \(Z_c=Z-b\), where \(a\) and \(b\) are fixed centering constants, then
Thus, the centered interaction column is the original product column plus a combination of the intercept and main-effect columns. In a model containing the intercept, both main effects, and the interaction, this re-expression does not change the set of fitted values that the model can produce. It changes the coefficient interpretation and can change correlations among the columns.
How a Product Column Changes
The formula also explains why centering sometimes helps. If \(X\) is already centered and only \(Z\) is shifted by \(b\), then \(X_cZ_c=X_cZ-bX_c\). The new product column differs from the old one by a multiple of the \(X_c\) column. Correlation between a predictor and product can therefore change substantially. But the amount and direction depend on the observed data; there is no rule that the new correlation must be closer to zero.
Pearson correlation is computed from deviations from each column's mean. If the product column has mean \(\overline{XZ}\), its correlation with \(X\) uses \(XZ-\overline{XZ}\), not the uncentered product values as if they had mean zero. The examples below make this distinction explicit.
Worked Example: Centering Greatly Reduces a Predictor–Product Correlation
Suppose four hypothetical observations have \(X=(-2,-1,1,2)\) and \(Z=(9,11,11,9)\). Both predictors are included with their product in the model. The means are \(\bar{x}=0\) and \(\bar{z}=10\), so centering \(X\) changes nothing, while \(Z_c=(-1,1,1,-1)\).
Before centering \(Z\), the product column is \(XZ=(-18,-11,11,18)\). Its mean is zero, as is the mean of \(X\). The sum of cross-products is
The sums of squared deviations for \(X\) and \(XZ\) are \(10\) and \(890\), respectively. Therefore,
After centering \(Z\), the product column is \(XZ_c=(2,-1,1,-2)\). Its mean is zero, its sum of squares is \(10\), and its cross-products with \(X\) sum to \(-4+1+1-4=-6\). The correlation becomes
For these data, centering \(Z\) greatly reduces the near-perfect correlation between \(X\) and the product column. It does not make that correlation zero. This is an example of a possible benefit, not a guarantee about other data.
Compute Correlations Using Deviations
The next example illustrates two important checks: a product column need not have mean zero, even if one predictor has been centered, and the correlation denominator must use the product column's sum of squared deviations. The data are hypothetical.
Worked Example: Correlation After Centering One Predictor
Suppose the centered values of \(X\) are \(X_c=(-1.5,-0.5,0.5,1.5)\), and the observed values of \(Z\) are \((3,8,-6,4)\). Their product column is \(X_cZ=(-4.5,-4,-3,6)\). The product mean is
The raw sum of squares of the product values is \(20.25+16+9+36=81.25\). But a correlation requires deviations from the product mean. Those deviations are \((-3.125,-2.625,-1.625,7.375)\), so their squared sum is
Since the \(X_c\) values have mean zero, their sum of squares is \(5\), and the cross-products with the product's deviations sum to
Consequently, the correlation between \(X_c\) and \(X_cZ\) is
This is still a strong positive correlation in these observations. Centering \(X\) alone has not removed the association between that predictor and its product with \(Z\).
If \(Z\) is centered as well, then \(\bar{z}=2.25\) and \(Z_c=(0.75,5.75,-8.25,1.75)\). The new product values \(X_cZ_c\) are \((-1.125,-2.875,-4.125,2.625)\), with mean \(-1.375\). Their deviations have squared sum \(25.875\), and their cross-products with \(X_c\) sum to \(5\). Thus,
Here centering both predictors reduces, but does not eliminate, the correlation between \(X_c\) and the interaction column. As a further check, the cross-products of the two predictors' deviations sum to \(-5.5\), and the sums of squared deviations for \(X\) and \(Z\) are \(5\) and \(104.75\). Their correlation is \(-5.5/\sqrt{(5)(104.75)}\approx-0.2403\). Translating either predictor does not change this correlation.
Centering Cannot Undo Predictor Dependence
For any two variables, adding or subtracting constants changes their means but not their deviations from those means. Therefore their Pearson correlation is unchanged by centering. If predictors are strongly associated because of their observed values, changing their origins cannot remove that association. This is the distinction between a correlation involving an interaction column that may partly reflect the chosen zero and dependence among the substantive predictors themselves.
Worked Example: Perfect Dependence Remains After Centering
Suppose four hypothetical observations have \(X=(1,2,3,4)\) and \(Z=(11,12,13,14)\), so \(Z=X+10\) for every observation. Both means are \(2.5\) and \(12.5\). Their deviations are identical: \((-1.5,-0.5,0.5,1.5)\). The sum of cross-products and each sum of squared deviations equal \(5\), so
After centering, \(X_c=Z_c=(-1.5,-0.5,0.5,1.5)\), and their correlation remains \(1\). In fact, the original columns are exactly dependent because \(Z=X+10\); the centered columns are identical. Including an intercept, both main effects, and an interaction cannot make the two main effects separately identifiable from these data. Centering changes the column representation, but the underlying lack of independent information persists.
What Correlations Can—and Cannot—Tell You
A correlation table can be a useful first check: examine the association between the two predictors and between each predictor and the product term, both before and after centering. Interpret it as a description of pairwise linear association in the observed data, not as a complete diagnosis of the design matrix. Several columns can jointly be nearly dependent even when no single pair has an extreme correlation.
Collinearity does not, by itself, make least-squares estimates biased when the regression model and error assumptions hold. With strong but imperfect collinearity, however, estimates can be imprecise and sensitive to small data changes. With exact linear dependence among columns, the separate coefficients are not uniquely estimable. Centering may improve the numerical relationship between a product and a main effect, but it cannot create information absent from the observations.
Keep the model's purpose in view. If the interaction is part of the scientific question, do not drop it solely because a product column is correlated with a main effect. Such a change alters the model. Instead, use centering when a meaningful reference point helps interpretation or improves a nonessential correlation, and report which variables and product terms were centered.
Common Mistake: Assuming Centering Always Fixes Collinearity
A common but incorrect argument is: “The predictors have been centered, so the interaction column must be uncorrelated with the main effects.” Centering makes each predictor's mean zero; it does not impose zero correlation between a predictor and a product. The product can have a nonzero mean, and its deviations can still align strongly with a predictor's deviations. Calculate correlations from centered deviations, and check the observed values rather than relying on a general promise about centering.
A related error is to treat \(X\) and \(Z\) as independent simply because both have been centered. Their mutual correlation is unchanged by subtracting constants. Centering changes the origin, not the pattern of paired observations.
Check Your Understanding
Try these questions without looking back.
- Why must the product column's mean be subtracted when computing its correlation with a centered predictor?
- In the first worked example, what happened to the correlation between \(X\) and the product after centering \(Z\)? Does this show that centering always reduces that correlation?
- Explain why subtracting means cannot change the correlation between \(X\) and \(Z\).
- If \(Z=X+10\) for every observation, what happens to the relationship between the two main-effect columns after both predictors are centered?
- Why is a pairwise correlation table not a complete assessment of collinearity among all model columns?