Model Fit (Intuition) Math Example 4

Follow the full solution, then compare it with the other examples linked below.

Example 4

hard
A model has R2=0.99R^2 = 0.99 in-sample but shows a fanning residual plot (residuals grow larger as y^\hat{y} increases). What problem does this reveal, and what are its consequences?

Solution

  1. 1
    Fanning residuals = heteroscedasticity: variance of errors increases with predicted values
  2. 2
    This violates regression assumption of constant variance (homoscedasticity)
  3. 3
    Consequence 1: standard errors are incorrect, making hypothesis tests and confidence intervals unreliable
  4. 4
    Consequence 2: predictions are less reliable for high values (where variance is largest)
  5. 5
    Fix: transform y (e.g., log transform), use weighted least squares, or a robust regression method

Answer

Fanning residuals indicate heteroscedasticity โ€” standard errors and confidence intervals are invalid despite high R2R^2.
A high R2R^2 does not mean all regression assumptions are satisfied. Heteroscedasticity is undetectable from R2R^2 alone but is visible in residual plots. It invalidates standard errors and inference, making it a serious problem despite good apparent fit.

About Model Fit (Intuition)

Model fit describes how closely a statistical model's predictions match the observed data โ€” measured by residuals, R2R^2, or loss functions.

Learn more about Model Fit (Intuition) โ†’

More Model Fit (Intuition) Examples