Why Break a Prediction Into Parts?
A fitted value from a multiple regression equation is a total built from several terms. Seeing only the final number can hide how the equation produced it. Separating the total into the intercept and the predictor-term contributions makes the arithmetic transparent: each term can be checked, its sign can be understood, and the pieces can be added back to verify the prediction.
This decomposition is an accounting identity for an additive equation. It does not mean that each term is a separate observed quantity, nor does it establish that a predictor causes a change in the outcome. Each contribution depends on the fitted coefficient and the predictor value used in the equation.
The Additive Model and Its Contributions
For a response \(Y_i\) and \(k\) numeric predictors \(x_{i1},\ldots,x_{ik}\), an additive regression model can be written as
Here \(\beta_0,\ldots,\beta_k\) are model coefficients and \(\varepsilon_i\) is the error for observation \(i\). The additive conditional-mean form says that the model represents the mean response as an intercept plus a separate coefficient-times-predictor term for each predictor. A standard condition for this interpretation is that the errors have conditional mean zero given the predictors: \(E(\varepsilon_i\mid x_{i1},\ldots,x_{ik})=0\). The arithmetic decomposition below uses the fitted equation itself; it does not require a normal error distribution.
After fitting the model, replace each unknown coefficient by its estimate. For a specified predictor profile, the fitted value is the sum of the estimated intercept and the estimated predictor terms.
The contribution \(\hat{\beta}_jx_{ij}\) is the term as it appears in the fitted equation. It is not the same thing as the slope \(\hat{\beta}_j\): the slope has units of response per predictor unit, while the contribution has units of response. For example, if a slope is measured in score points per study hour, multiplying it by a number of study hours produces a contribution measured in score points.
The intercept contribution is the fitted equation’s value when all predictors equal zero. Whether that profile is realistic is a separate question. Even when zero is not a relevant or observed profile, the intercept remains one of the equation’s algebraic terms. Likewise, a predictor contribution is not necessarily a meaningful “share” of the prediction. Contributions may be negative, and their magnitudes depend on how predictors are measured and where zero is located.
A Reliable Way to Decompose a Fitted Value
Use the fitted equation for the particular predictor profile. Keep the intercept as one contribution, calculate each coefficient-times-value product, and then add the terms. A final check is to compare the sum with the original substituted equation. Keeping units beside the calculations helps catch errors such as multiplying a slope by the wrong predictor or omitting a term.
Include the intercept and every predictor term, using the estimated coefficients and the model’s stated predictor units.
Put each specified predictor value into its matching term. Do not pair a coefficient with a different predictor.
Record the intercept and each product separately, with their signs and outcome units.
Sum the contributions and check that the result agrees with the fitted value calculated directly from the equation.
Worked Example: Exam Score From Attendance and Study Time
Suppose a hypothetical fitted equation predicts an exam score in points from attendance, measured in percentage points, and study time, measured in hours:
For a student profile with attendance of 80 percentage points and 6 hours of study time, identify each contribution and verify the predicted score.
Intercept contribution: \(28\) points.
Attendance contribution: the coefficient is \(0.45\) points per attendance percentage point, so
Study-time contribution: the coefficient is \(3.2\) points per hour, so
Adding the three contributions gives
Thus, the fitted score is 83.2 points. The 36-point attendance term is the value of that equation term at 80 percentage points; it is not a claim that increasing a particular student’s attendance would cause a 36-point gain.
Positive and Negative Contributions
A contribution’s sign follows from the product of the estimated coefficient and the predictor value. When the predictor value is positive, a positive coefficient gives a positive contribution and a negative coefficient gives a negative contribution. A negative contribution subtracts from the sum; it does not mean the entire fitted value must be negative. The intercept and the other terms may outweigh it.
The predictor’s zero point matters. If the predictor is recorded as a positive distance from a chosen origin, its contribution is calculated from that value and the fitted coefficient. A coefficient describes the fitted change in the response associated with a one-unit increase in that predictor while the other predictors are held fixed; a term contribution instead reports the product used in the fitted-value equation at a particular profile. These are related, but they answer different questions.
Worked Example: A Negative Term in a Utility-Bill Prediction
Consider a hypothetical fitted equation for a monthly utility bill, measured in dollars. The predictors are floor area in square feet and an insulation rating in rating points:
For a home with 900 square feet and an insulation rating of 4, calculate and interpret the equation’s contributions.
Intercept contribution: \(18\) dollars.
Floor-area contribution:
Insulation-rating contribution:
The negative insulation term subtracts 6 dollars from the sum. Therefore,
The fitted monthly bill is 84 dollars. The negative contribution is not a separate negative bill. It is one signed term in the complete fitted value. Its sign follows from the negative estimated coefficient and the positive rating value.
Why the Contributions Add Up
No special statistical theorem is needed for the check: the fitted value is defined by substituting predictor values into the fitted equation. Each predictor term is a summand in that equation. Naming those summands as contributions changes how the equation is displayed, not its value.
where \(C_0=\hat{\beta}_0\) and \(C_j=\hat{\beta}_jx_{ij}\) for \(j=1,\ldots,k\). Replacing each \(C_j\) by its definition recovers the original fitted equation exactly. This identity also explains the practical verification: if the contributions do not sum to the directly calculated prediction, then a term was omitted, a value was paired incorrectly, or there was an arithmetic or rounding error.
Worked Example: Decomposing a Prediction With Three Predictors
Suppose a hypothetical equation predicts a daily order-processing time in minutes from the number of orders, the number of staff members, and the number of batches processed:
At a profile of 30 orders, 4 staff members, and 5 batches, calculate each contribution and verify the fitted time.
Intercept: \(10\) minutes.
Orders term: \(0.7\) minutes per order multiplied by 30 orders gives
Staff term: \(-2.5\) minutes per staff member multiplied by 4 staff members gives
Batches term: \(1.2\) minutes per batch multiplied by 5 batches gives
The contributions sum to
Direct substitution gives the same result: \(10+0.7(30)-2.5(4)+1.2(5)=10+21-10+6=27\) minutes. The equality verifies the decomposition. The staff term is negative because its estimated coefficient is negative and the staff value is positive; the complete fitted time remains positive after all terms are combined.
Rounding and What a Contribution Does Not Say
A contribution can be computed from displayed coefficient estimates, which may already be rounded. If products are rounded too early, their sum may differ slightly from a total calculated with more precise values. Keep extra digits during intermediate calculations when available, add the unrounded terms, and round the final fitted value to a precision appropriate to the outcome. If only rounded coefficients are supplied, say that the resulting prediction is approximate.
Contributions also should not be presented automatically as percentages of a fitted value. A ratio such as \(C_j/\hat{y}\) can be unstable or misleading, especially when contributions have different signs or offset each other. In general, state contributions in the response’s units and report the complete prediction. A term’s size reflects both its coefficient and the predictor value, and it depends on the units and zero point used for that predictor.
Common Mistake
Correction: The arithmetic says that \(3.2\times 6=19.2\) points is the study-time summand in this fitted equation at that predictor value. It does not, by itself, establish a causal increase. The term’s contribution is part of a model-based prediction, conditional on the other terms and the equation’s coding.
A second practical error is to report only the products and leave out the intercept. Unless the model was explicitly fitted without an intercept, the intercept is part of the fitted value and must be included in the sum. Another is to treat a coefficient itself as a contribution: a slope in points per hour is not yet a term in points; it must be multiplied by the predictor value in the equation.
Check Your Understanding
For each question, keep track of signs and units as well as the arithmetic.
- A fitted equation is \(\hat{y}=5+2x_1-0.5x_2\). At \(x_1=4\) and \(x_2=6\), what are the intercept and predictor-term contributions, and what fitted value do they sum to?
- If a coefficient is measured in dollars per square foot and its predictor value is measured in square feet, what are the units of their product?
- In an equation with a negative coefficient and a positive predictor value, what is the sign of that predictor’s contribution? Does that sign determine whether the total fitted value is negative?
- Why is a predictor-term contribution not automatically a causal effect of changing that predictor?
- A student adds all coefficient-times-predictor products but omits the intercept. Under what condition would that sum equal the fitted value?