Why the Choice of Contrast Matters
A regression slope describes an outcome change per one-unit change in a predictor. That unit may be too small to be useful in practice: a slope per milligram, minute, or dollar can be difficult to interpret. Rescaling the slope to a more meaningful change helps, but the chosen change must also be credible in light of the data. Comparing predictor values far beyond those observed asks the fitted model to speak where it has little or no empirical support.
The central question in this tutorial is therefore not only “How large is the predictor change?” It is also “Are both values being compared represented well enough in the data for this interpretation to be informative?” A model will often calculate a fitted value for any numerical input, but being able to calculate a value does not make that value well supported.
Slope Contrasts in a Linear Regression
For a simple linear regression, write the model for observation \(i\) as
Here \(Y_i\) is the outcome, \(x_i\) is the predictor, \(\beta_0\) is the intercept, \(\beta_1\) is the population slope, and \(\varepsilon_i\) is the error. The model assumes that the conditional mean outcome is linear in \(x\), that errors have mean zero and constant variance at each predictor value, and that errors from different observations are independent. Normal errors are not needed to calculate or interpret a fitted contrast; they are relevant to some forms of small-sample inference.
The fitted regression line is \(\hat{Y}=b_0+b_1x\), where \(b_0\) and \(b_1\) are estimates of the intercept and slope. Its predicted value at a predictor value \(x\) estimates the mean outcome for observations with that value under the fitted model. It is not necessarily the outcome for a particular individual.
Subtracting the fitted value at \(x_0\) from the fitted value at \(x_1\) shows why the intercept disappears:
Thus the slope can be described over any chosen difference in predictor values, provided the linear model is a reasonable description over the interval and the comparison has adequate data support. The arithmetic works for every numerical contrast; the interpretation does not automatically do so.
Check the Data Support for Both Values
For a single numerical predictor, begin by comparing each proposed value with the observed minimum and maximum. If the sample predictor values range from \(x_{\min}\) to \(x_{\max}\), a contrast with both values between those endpoints is an interpolation in the broad sense: it stays within the overall observed range. A contrast that uses a value below \(x_{\min}\) or above \(x_{\max}\) is an extrapolation.
This range check is a useful first screen, not a guarantee of support. Values near an endpoint may be represented by very few observations. There may also be a large gap between clusters of observed values, or a chosen interval may cross a region with little data. The range alone does not tell us whether a straight-line relationship is reasonable throughout the interval. Practical knowledge of the predictor and outcome also matters.
With multiple predictors, checking each variable’s range separately is not enough. The compared combinations should be plausible in the joint data. For example, a particular age and sodium-intake combination may lie inside each variable’s separate range but be absent from the observations. Holding age fixed while changing sodium intake then asks the fitted model to compare combinations that the data do not represent. This is a support problem even if neither numerical value is beyond its own minimum or maximum.
Worked Example: Interpreting a Supported 20-Minute Contrast
Suppose a hypothetical data set relates daily exercise time \(x\), in minutes, to systolic blood pressure \(Y\), in millimeters of mercury (mm Hg). Exercise times range from 8 to 52 minutes. The fitted line is \(\hat{Y}=112+0.42x\). Interpret the fitted difference between 15 and 35 minutes of exercise.
Both 15 and 35 minutes fall between the observed minimum of 8 and maximum of 52 minutes. The contrast is 20 minutes, so the fitted difference is
Checking the fitted values gives the same result:
The model therefore estimates an 8.4 mm Hg higher mean blood pressure at 35 rather than 15 minutes of daily exercise. This is an estimated association for the hypothetical data, not evidence that an individual’s blood pressure would fall by 8.4 mm Hg if that person exercised 20 minutes more. The range check makes the comparison more grounded than an extrapolation, but it does not establish causation or verify that the linear model is adequate.
Choose a Contrast That Is Useful and Supported
A suitable contrast balances two considerations. First, it should correspond to a difference that readers can understand in the predictor’s units. Second, it should be represented sufficiently in the data for the model’s comparison to be credible. A very small contrast may be technically valid but practically hard to communicate; a very large contrast may be easy to notice but extend into unsupported territory.
The predictor’s observed range is not automatically the best contrast. If nearly all observations lie in a narrow band, a comparison spanning the entire minimum-to-maximum range may be driven by a few extreme observations. Conversely, a meaningful contrast within a dense part of the data may be more informative. Report the two predictor values, their units, the outcome units, and whether the values are supported by the observed data.
Worked Example: A Supported Contrast and an Extrapolation
In a hypothetical study of adult reaction time, age is measured in years and reaction time in milliseconds. The observed ages range from 18 to 65. A fitted line is \(\hat{Y}=240+0.31x\). Compare the fitted mean reaction times at ages 30 and 50, then consider what happens if age 85 is included.
For ages 30 and 50, the contrast is 20 years, and both values are within the observed age range:
The fitted mean reaction time at age 50 is 6.2 ms higher than at age 30. This is an in-range comparison, although checking the observed range alone does not tell us whether the ages are well represented or whether the line fits adequately between them.
Now compare age 65 with age 85. The model’s arithmetic gives
The difference is still 6.20 ms because the fitted line has a constant slope, but age 85 is beyond the observed maximum of 65. The model has no observations at those ages to show whether the linear trend continues. Reporting this as a well-supported comparison would overstate what the data establish. The calculation is possible; its empirical basis is not comparable to the in-range contrast.
Support When Other Predictors Are Held Fixed
In multiple linear regression, a fitted model might be \(\hat{Y}=b_0+b_1x_1+b_2x_2\). Comparing two values of \(x_1\) while holding \(x_2\) fixed gives a fitted difference of \(b_1(x_{1,1}-x_{1,0})\). The coefficient interpretation is conditional on the held-fixed predictor. But whether that comparison is supported depends on the combinations of \(x_1\) and \(x_2\) observed together, not just on their separate ranges.
Worked Example: Checking Joint Support for a Sodium Contrast
Consider a hypothetical multiple regression of systolic blood pressure \(Y\), in mm Hg, on daily sodium intake \(x\), in mg, and age \(z\), in years:
The data include sodium intakes from 900 to 4,200 mg and ages from 20 to 78 years. Among observations around age 60, sodium intakes from 1,800 to 3,200 mg are represented. Compare 2,000 and 3,000 mg at age 60.
Both sodium values lie within the overall sodium range, and the hypothetical data description also says that values in this interval occur around age 60. Holding age fixed, the fitted contrast is
For a direct check of the fitted values,
Their difference is \(98.3-95.8=2.5\) mm Hg. By contrast, suppose the observed data include almost no people around age 40 with sodium intake above 2,100 mg. Although 1,500 and 2,500 mg may each be inside the overall sodium range and age 40 may be inside the age range, the comparison from 1,500 to 2,500 mg at age 40 would not have the same joint support. Separate range checks cannot establish that this conditional contrast is well represented.
Common Mistake: Treating a Model Output as Data Support
- Wrong reasoning: “The software produced a fitted value at this predictor value, so the contrast is supported.” Regression equations can produce numerical predictions outside the observed range. Correction: Check where the data lie and whether the relevant values or combinations are represented.
- Wrong reasoning: “Both predictor values are inside their separate ranges, so a multiple-predictor comparison is supported.” Correction: Check whether the joint combinations occur in the data, especially when holding another predictor fixed.
- Wrong reasoning: “The contrast is in range, so the model must be linear there.” Correction: An in-range comparison avoids one form of extrapolation, but a range check cannot establish linearity, adequate density, or causation.
- Wrong reasoning: “A slope contrast describes what will happen if the predictor is changed.” Correction: Unless the study design and assumptions justify a causal interpretation, describe the fitted association between predictor values and mean outcomes.
Check Your Understanding
Use the model and data details in each question to assess both the calculation and the support for its interpretation.
- A fitted slope is 1.6 points per study hour. What fitted mean difference corresponds to a 5-hour contrast? State the outcome units.
- A predictor was observed only from 12 to 48 units. Is a contrast from 20 to 40 an extrapolation? What does that range check fail to establish?
- A fitted line gives values at predictor values 30 and 70, but the observed maximum is 55. What is the concern with interpreting their difference?
- In a two-predictor model, both proposed values of one predictor and the fixed value of the other are within their separate ranges. Why might the comparison still be unsupported?
- Why does an in-range fitted contrast not, by itself, show that changing the predictor causes the outcome to change?