Lean Six Sigma 100%

Green Belt · Improve phase

Lesson 8: Multiple and Non-Linear Regression

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.

Confidence interval versus prediction interval around a regression line A rising regression line with two bands around it. The inner band, the confidence interval for the mean response, is narrow near the middle of the data and widens toward the edges. The outer band, the prediction interval for a single new observation, is wider everywhere and also widens toward the edges. Predicted rehab cost vs. home square footage Prediction interval (one future home) CI Confidence interval (mean response), narrowest near the center of the data Home square footage (X) Predicted rehab cost (Y)
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?

  1. The average change in Y for a one-unit increase in X1, holding X2 constant
  2. The correlation between X1 and X2, which shows how closely the two predictors track each other
  3. The p-value for the overall model
  4. The total change in Y from all predictors combined

2. Why is adjusted R-squared preferred over plain R-squared when comparing models with different numbers of predictors?

  1. Adjusted R-squared is only valid for non-linear models
  2. Adjusted R-squared is always larger than R-squared
  3. Plain R-squared cannot be calculated with more than one predictor
  4. Plain R-squared never decreases when a predictor is added, even a useless one; adjusted R-squared penalizes adding predictors that do not help

3. What does multicollinearity mean in a multiple regression model?

  1. The residuals show a curved pattern
  2. Two or more predictors are strongly correlated with each other
  3. The response variable is not normally distributed, so the residuals are skewed
  4. The sample size is too small for the number of predictors, so coefficients cannot be estimated

4. If regressing one predictor on all the other predictors in a model gives R²j = 0.80, what is that predictor's VIF?

  1. 0.20
  2. 5.0
  3. 0.80
  4. 1.25

5. Which statement about VIF thresholds is most accurate?

  1. A VIF above 1.0 always makes a model unusable and forces at least one predictor to be dropped
  2. 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
  3. VIF only applies to simple linear regression with one predictor
  4. VIF must always equal R-squared

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"?

  1. Because statistical software first fits a straight line to the data and only then bends it into a curve
  2. Because X² is always equal to X
  3. Because the equation is linear in its coefficients, even though the plotted relationship curves
  4. It is not correctly called linear regression

7. A GCHS estimator wants a range for the average rehab cost across all 1,800-square-foot homes. Which interval should be used?

  1. A prediction interval for one individual home
  2. A control chart limit
  3. A Box-Cox lambda value
  4. A confidence interval for the mean response

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?

  1. Either interval works and both are always the same width
  2. A confidence interval; it is narrower than a prediction interval
  3. A prediction interval; it is wider than a confidence interval at the same X
  4. A prediction interval; it is always narrower than a confidence interval because it uses only the fitted line

9. In a Box-Cox transformation, what does a lambda value of 0 correspond to?

  1. A natural log transformation
  2. A reciprocal (1/Y) transformation
  3. No transformation
  4. A square root transformation

10. Which lambda value corresponds to leaving the data untransformed?

  1. Lambda = 0.5
  2. Lambda = -1
  3. Lambda = 1
  4. Lambda = 0

11. A Box-Cox analysis recommends lambda = 0.5. What transformation does this call for?

  1. No change
  2. Square root
  3. Natural log
  4. Reciprocal

12. What is the main purpose of a Box-Cox transformation in regression?

  1. To transform the response so residuals better meet normality and constant-variance assumptions
  2. To calculate the variance inflation factor
  3. To convert a multiple regression into a simple regression
  4. To remove predictors that are not statistically significant

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?

  1. A data entry error in the response variable
  2. The model needs a Box-Cox transformation of X
  3. The residuals are not independent, which usually shows up as a trend in time order
  4. Multicollinearity between the two similar predictors

14. After fitting a multiple regression model with a quadratic term, which check from Lesson 7 still applies?

  1. None; residuals analysis only applies to simple linear regression, because extra terms change what a residual means
  2. Only the normality check applies
  3. Residuals analysis (normality, constant variance, independence, residuals versus fits) still applies
  4. Only the p-value for the slope applies

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.