QUESTION 6 OF 10

Can R-squared be negative?

Reveal the answer and explore the explanation.

06
Medium

Can R-squared be negative?

Answer
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 ↗

Last 30 min revisionHigh-yield interview Q&As