Why Center a Predictor at Its Mean?
In a regression equation, the intercept is the fitted outcome when every predictor in the equation is zero. That value can be difficult to interpret if zero is far from the predictor values actually observed. For example, an intercept for a study of adult exercise hours may describe a fitted outcome at zero hours, even if nearly everyone in the sample exercises.
A simple change of scale can make the intercept refer to a more typical predictor value. Subtract the predictor’s sample mean from each observation. The resulting predictor is zero for an observation at the sample-average predictor value, so the intercept of the re-expressed model gives the fitted outcome there. This is a change in how the model is written, not a change to the observed outcomes.
What the Centered Intercept Represents
Begin with a simple linear regression fitted to \(n\) observations:
Here, \(\hat{y}_i\) is the fitted outcome for observation \(i\), \(\hat{\beta}_0\) is the original intercept, and \(\hat{\beta}_1\) is the fitted change in outcome per one-unit increase in \(x\). Since \(x_i=x_{c,i}+\bar{x}\), substituting this expression gives:
Thus, when the model is written using the centered predictor, its intercept is \(\hat{\beta}_0+\hat{\beta}_1\bar{x}\). This is the original fitted value at \(x=\bar{x}\): setting \(x_{c,i}=0\) gives that same expression. The intercept is still in the units of the outcome.
This result concerns fitted values, not necessarily observed outcomes. If an individual’s predictor equals \(\bar{x}\), that person’s observed outcome can differ from the fitted value. Regression residuals account for the differences between observed and fitted outcomes.
Worked Example: Centering Exercise Hours
Suppose, hypothetically, five participants report \(2, 4, 6, 8,\) and \(10\) hours of exercise per week. A fitted model for a hypothetical fitness score is \(\hat{y}=12+3x\), where \(x\) is exercise hours per week and \(\hat{y}\) is measured in score points. Find the sample mean, write the centered equation, and interpret its intercept.
First calculate the sample mean:
The centered predictor is \(x_c=x-6\), measured in hours per week relative to the sample mean. Substitute \(x=x_c+6\) into the fitted equation:
The centered intercept is \(30\) score points. It is the model’s fitted fitness score for a participant exercising \(6\) hours per week, because \(x_c=0\) corresponds to \(x=6\). The slope is interpreted as \(3\) score points per additional exercise hour per week in this fitted equation. Centering changes the predictor’s reference value; it does not turn the fitted score into an observed score for every participant who exercises 6 hours.
Centering One Predictor in a Multiple Regression
A model may contain other predictors as well. Suppose the fitted equation is:
If only \(x_i\) is centered, substitute \(x_i=x_{c,i}+\bar{x}\). The equation becomes:
The centered intercept is now the fitted outcome at \(x=\bar{x}\) and \(z=0\). This qualification matters: centering one predictor does not set the other predictors to their sample means. If another predictor is nonzero, the fitted outcome at \(x=\bar{x}\) also includes its contribution.
The algebraic re-expression is valid for any observed predictor values. It does not require the predictor to be normally distributed or the errors to be normally distributed. For the intercept’s interpretation as a fitted outcome, the model must specify a fitted value at the stated predictor values; that interpretation does not by itself establish that those values are substantively plausible. Assumptions used for statistical inference are a separate matter and are not needed for this algebraic translation.
Worked Example: Average Commute Time With Another Predictor
Consider a hypothetical model for a workday alertness score. It uses commute time \(x\), in minutes, and a binary indicator \(z\), equal to 1 for a morning-shift worker and 0 otherwise. Suppose the sample commute times are \(20, 25, 30, 35,\) and \(40\) minutes, and the fitted model is \(\hat{y}=50+0.8x-4z\). Find the centered intercept and explain its meaning.
The sample mean commute time is:
Let \(x_c=x-30\). Substituting \(x=x_c+30\) into the model gives:
The centered intercept, \(74\) alertness-score points, is the fitted score when commute time is 30 minutes and \(z=0\), meaning a non-morning-shift worker. For a morning-shift worker at the same average commute time, \(z=1\), so the fitted score is \(74-4=70\) points. The intercept is not the fitted score for every worker with an average commute; it applies at the specified value of the other predictor.
Calculating the Centered Intercept Directly
There are two equivalent ways to find the new intercept in a simple linear model. One is to substitute \(x=x_c+\bar{x}\) and simplify. The other is to use the original fitted equation at \(x=\bar{x}\). Both methods give \(\hat{\beta}_0+\hat{\beta}_1\bar{x}\). The direct calculation can be useful for checking software output or a hand calculation.
Worked Example: Checking a Centered Equation
In a hypothetical analysis of monthly study time and quiz score, the four study-time values are \(4, 6, 8,\) and \(10\) hours. The fitted equation is \(\hat{y}=5+2.5x\), with quiz score in points. A centered equation is reported as \(\hat{y}=22.5+2.5x_c\). Check its intercept and verify one prediction.
The sample mean study time is:
Using the original equation at \(x=7\):
Therefore the centered intercept should be \(22.5\) points. To check a prediction at 8 study hours, the centered value is \(x_c=8-7=1\) hour. The centered equation gives \(\hat{y}=22.5+2.5(1)=25\) points. The original equation gives \(\hat{y}=5+2.5(8)=25\) points as well. The matching fitted values confirm that the centered equation has the stated interpretation and is consistent with the original equation.
Why Centering Helps—and a Common Mistake
Centering at the sample mean gives the intercept a reference value located at the average predictor value in the data. That can make an intercept easier to discuss than a fitted outcome at \(x=0\), particularly when zero is not represented or is not a useful reference. It also makes the meaning of the predictor’s zero value explicit: \(x_c=0\) means the original predictor equals \(\bar{x}\).
Centering does not guarantee that the intercept is a meaningful description of every observation or a group average. In a model with other predictors, the remaining predictors still matter. Even in a simple regression, the intercept is a fitted value from the model, not a claim that all observations at the sample-average predictor have exactly that outcome. The sample mean is also specific to the sample used to calculate it; another sample can have a different mean and therefore a different centered intercept.
- Common mistake: “After centering \(x\), the intercept is the average observed outcome.”
- Correction: In simple linear regression, the centered intercept is the fitted outcome at \(x=\bar{x}\). In a multiple regression, it is the fitted outcome at \(x=\bar{x}\) and at zero for the other predictors left uncentered. It equals an average observed outcome only under conditions that establish that result; centering alone does not.
A reliable interpretation names the predictor value represented by zero after centering, states the units of the fitted outcome, and specifies the values of any other predictors that remain in the model.
Check Your Understanding
Use the definitions and examples above to answer these questions.
- A predictor has sample mean 12 units. Write its centered value for an observation whose original predictor value is 17 units.
- A simple fitted equation is \(\hat{y}=8+4x\), and \(\bar{x}=5\). What is the centered intercept, and what does it represent?
- In a model with predictors \(x\) and \(z\), only \(x\) is centered at \(\bar{x}\). What values of the predictors does the new intercept refer to?
- Why is it incorrect to say that centering a predictor makes the intercept the average observed outcome?
- A centered model has an intercept of 42 outcome units, and \(x_c=0\) represents 15 hours of practice. State the intercept’s interpretation in context, and explain what additional information is needed if the model contains another predictor.