Can R-squared be negative?
Reveal the answer and explore the explanation.
06MediumCan R-squared be negative?
Answer
Medium
Can R-squared be negative?
Answer
One minus residual sum of squares divided by total sum of squares; may be negative on test data.
Deeper understanding
R² = 1 − SSE/SST when SST is nonzero. A negative held-out R² means the model's squared error exceeds the reference based on the observed evaluation-target mean. It does not necessarily mean the model has a negative correlation with the target.
Practical example
Compare prediction performance against a mean baseline.
Reference: Further reading ↗