IASSC Body of Knowledge 4.2, Multiple Regression Analysis · 14 practice questions
0:00 / --:--
Reading
Lesson 7 fit a straight line to one predictor and one response. Real
processes rarely depend on just one input, and they do not always respond
in a straight line. This lesson extends simple linear regression in two
directions: adding more predictors (multiple linear regression) and letting
the relationship curve (non-linear terms such as quadratic and cubic
models). It also covers two questions that follow directly from having a
fitted model: how confident is a prediction, and does the data need to be
transformed before a model can be trusted at all.
Both bands widen away from the center of the data, but the prediction interval (outer, for one new home) is always wider than the confidence interval (inner, for the average cost of homes at that square footage), because it must also account for the scatter of individual homes around the line.
Multiple linear regression
Multiple linear regression extends the simple equation to more than one
predictor: Y = b0 + b1X1 + b2X2 + ... + bkXk. A GCHS estimator might predict
rehab cost (Y) from a home's square footage (X1) and its age in years (X2)
at the same time, rather than one variable alone. Each coefficient, bi, is
interpreted as the average change in Y for a one-unit increase in that Xi,
holding all the other predictors in the model constant. That "holding
constant" phrase is doing real work: it is what separates a multiple
regression coefficient from a simple regression slope, and it is only a
valid interpretation within the range of data the model was fit on.
Adjusted R-squared
Ordinary R-squared can only stay the same or increase every time another
predictor is added to a model, even a predictor that has nothing to do with
the response, because least squares can always find some way to use the
extra variable to reduce the leftover error slightly. Adjusted R-squared
corrects for this by penalizing the count of predictors in the model, so it
can go down when a new predictor adds little real explanatory power. Because
of that penalty, adjusted R-squared, not plain R-squared, is the number to
compare across candidate models that have different numbers of predictors.
Multicollinearity and VIF
Multicollinearity happens when two or more predictors in a multiple
regression are themselves strongly correlated with each other, for example
a home's square footage and its number of bedrooms. It does not usually hurt
the model's overall predictions, but it makes the individual coefficients
unstable and their standard errors inflated, so a coefficient's sign,
size, or statistical significance can shift a great deal with a small change
in the data. The variance inflation factor, VIF, is the standard diagnostic:
for predictor j, VIF = 1 / (1 - R²j), where R²j is the R-squared from
regressing that predictor on all the other predictors. A VIF of 1 means no
inflation at all. Commonly cited rules of thumb flag a VIF above 4 or 5 as worth
investigating and a VIF above 10 as a sign of serious multicollinearity;
these are rules of thumb, not a fixed statistical law, and different
textbooks draw the line in different places.
Worked example: if regressing square footage on the
other predictors in the model gives R²j = 0.80, then VIF = 1 / (1 - 0.80)
= 1 / 0.20 = 5.0, high enough that many sources would tell you to investigate.
Non-linear models
Not every relationship is a straight line. A quadratic term (X²) or
cubic term (X³) can be added to the regression equation to capture
curvature, such as rehab cost rising faster for homes at the oldest end of
the age range than the straight-line trend for younger homes would predict.
Despite the curve in the plotted relationship, a model like
Y = b0 + b1X + b2X² is still called "linear regression," because the
term describes the equation being linear in its coefficients (the b's), not
linear in its plotted shape. Fitting it still uses least squares in the same
way as simple regression.
Confidence interval vs. prediction interval
Once a regression model is fit, it can produce two different kinds of
interval around a prediction at a given X value, and they answer different
questions. A confidence interval (CI) for the mean response estimates a
range for the average Y across all cases at that X, for example the average
rehab cost across all 1,800-square-foot homes. A prediction interval (PI)
estimates a range for one individual future observation, for example the
rehab cost of one specific 1,800-square-foot home about to be scheduled. The
prediction interval is always wider than the confidence interval at the same
X, because it must account for both the uncertainty in estimating the mean
line and the additional scatter of an individual case around that line;
using a confidence interval where a prediction interval is needed
understates the real uncertainty in a single case.
Data transformation and the Box-Cox transformation
When residuals from a regression clearly violate normality or constant
variance, transforming the response variable before fitting can sometimes
fix both problems at once. The Box-Cox transformation is a family of power
transformations indexed by a parameter lambda, and a Box-Cox analysis
searches for the lambda value that makes the transformed data closest to
normal with stable variance. Common landmark values on that scale: lambda
= 1 means no transformation is needed; lambda = 0.5 corresponds to a square
root transformation; lambda = 0 corresponds to a natural log transformation
(a special case handled separately because the power formula breaks down at
exactly zero); and lambda = -1 corresponds to a reciprocal (1/Y)
transformation. Once the response is transformed, the model is fit and
diagnosed in the transformed units, and predictions are converted back for
reporting.
Why this matters
A Green Belt does not need to derive Box-Cox by hand, but recognizing the
landmark lambda values, and knowing that residuals analysis (Lesson 7)
still applies after any transformation, matters in real model reviews and
is part of the Body of Knowledge (4.2.4 and 4.2.5).
Practice questions
1. In multiple linear regression Y = b0 + b1X1 + b2X2, how is the coefficient b1 correctly interpreted?
The average change in Y for a one-unit increase in X1, holding X2 constant
The correlation between X1 and X2, which shows how closely the two predictors track each other
The p-value for the overall model
The total change in Y from all predictors combined
Answer: a. Each coefficient in a multiple regression is the average change in Y per one-unit increase in that predictor, with every other predictor in the model held constant.
2. Why is adjusted R-squared preferred over plain R-squared when comparing models with different numbers of predictors?
Adjusted R-squared is only valid for non-linear models
Adjusted R-squared is always larger than R-squared
Plain R-squared cannot be calculated with more than one predictor
Plain R-squared never decreases when a predictor is added, even a useless one; adjusted R-squared penalizes adding predictors that do not help
Answer: d. R-squared can only stay flat or rise as predictors are added, so adjusted R-squared, which penalizes the number of predictors, is the fairer basis for comparing models.
3. What does multicollinearity mean in a multiple regression model?
The residuals show a curved pattern
Two or more predictors are strongly correlated with each other
The response variable is not normally distributed, so the residuals are skewed
The sample size is too small for the number of predictors, so coefficients cannot be estimated
Answer: b. Multicollinearity is strong correlation among two or more predictors in the same model, which makes individual coefficients unstable even though overall predictions are often still reasonable.
4. If regressing one predictor on all the other predictors in a model gives R²j = 0.80, what is that predictor's VIF?
5. Which statement about VIF thresholds is most accurate?
A VIF above 1.0 always makes a model unusable and forces at least one predictor to be dropped
VIF values above roughly 4 or 5 (and above 10 for serious cases) are commonly used rules of thumb for flagging multicollinearity, not a fixed law
VIF only applies to simple linear regression with one predictor
VIF must always equal R-squared
Answer: b. VIF above roughly 4 or 5, and above 10 for serious cases, are widely cited caution thresholds, but they are rules of thumb that different sources apply differently, not a hard universal cutoff.
6. A model includes a quadratic term, Y = b0 + b1X + b2X², and plots as a curve rather than a straight line. Why is this still called "linear regression"?
Because statistical software first fits a straight line to the data and only then bends it into a curve
Because X² is always equal to X
Because the equation is linear in its coefficients, even though the plotted relationship curves
It is not correctly called linear regression
Answer: c. "Linear" in linear regression refers to the model being linear in its coefficients (the b's), not to the shape of the fitted curve, so quadratic and cubic terms still fit with the same least-squares method.
7. A GCHS estimator wants a range for the average rehab cost across all 1,800-square-foot homes. Which interval should be used?
A prediction interval for one individual home
A control chart limit
A Box-Cox lambda value
A confidence interval for the mean response
Answer: d. A confidence interval estimates a range for the mean response at a given X, which is what is asked for here.
8. A GCHS estimator instead wants a range for the rehab cost of one specific home about to be scheduled. Which interval should be used, and how does it compare to the interval in the previous question?
Either interval works and both are always the same width
A confidence interval; it is narrower than a prediction interval
A prediction interval; it is wider than a confidence interval at the same X
A prediction interval; it is always narrower than a confidence interval because it uses only the fitted line
Answer: c. A prediction interval for one new observation is always wider than a confidence interval for the mean at the same X, because it also accounts for the scatter of an individual case around the line.
9. In a Box-Cox transformation, what does a lambda value of 0 correspond to?
A natural log transformation
A reciprocal (1/Y) transformation
No transformation
A square root transformation
Answer: a. Lambda = 0 is the natural log transformation, handled as a special case since the general Box-Cox power formula is undefined at exactly zero.
10. Which lambda value corresponds to leaving the data untransformed?
Lambda = 0.5
Lambda = -1
Lambda = 1
Lambda = 0
Answer: c. Lambda = 1 means no transformation is applied.
11. A Box-Cox analysis recommends lambda = 0.5. What transformation does this call for?
No change
Square root
Natural log
Reciprocal
Answer: b. Lambda = 0.5 corresponds to a square root transformation of the response.
12. What is the main purpose of a Box-Cox transformation in regression?
To transform the response so residuals better meet normality and constant-variance assumptions
To calculate the variance inflation factor
To convert a multiple regression into a simple regression
To remove predictors that are not statistically significant
Answer: a. Box-Cox searches for a power transformation of the response that helps the residuals better satisfy normality and constant-variance assumptions.
13. A multiple regression model has a high overall R-squared, but one predictor's coefficient flips sign and loses significance when a nearly-identical predictor is added to the model. What does this most likely indicate?
A data entry error in the response variable
The model needs a Box-Cox transformation of X
The residuals are not independent, which usually shows up as a trend in time order
Multicollinearity between the two similar predictors
Answer: d. An unstable, sign-flipping coefficient after adding a highly correlated predictor is a classic symptom of multicollinearity; checking VIF is the appropriate next step.
14. After fitting a multiple regression model with a quadratic term, which check from Lesson 7 still applies?
None; residuals analysis only applies to simple linear regression, because extra terms change what a residual means
Only the normality check applies
Residuals analysis (normality, constant variance, independence, residuals versus fits) still applies
Only the p-value for the slope applies
Answer: c. Residuals analysis is not specific to simple linear regression; it applies to multiple and non-linear regression models the same way, checking normality, constant variance, independence, and the residuals-versus-fitted-values pattern.
Glossary
Multiple linear regression
A regression model with two or more predictors, Y = b0 + b1X1 + b2X2 + ...
Adjusted R-squared
R-squared penalized for the number of predictors, used to compare models with different predictor counts.
Multicollinearity
Strong correlation among two or more predictors in the same model, which destabilizes individual coefficients.
Variance inflation factor (VIF)
A diagnostic for multicollinearity, VIF = 1 / (1 - R²j); values above roughly 4 or 5 warrant a look, and above 10 signal serious multicollinearity.
Confidence interval (mean response)
A range estimate for the average Y at a given X value.
Prediction interval
A range estimate for one individual future observation at a given X value; always wider than the confidence interval at the same X.
Box-Cox transformation
A family of power transformations of the response, indexed by lambda, used to improve normality and constant variance in residuals.