Regression R² and RMSE
Score paired actual and predicted numeric values with R² and RMSE, retaining negative scores and explicitly undefined constant-target R².
Use this result well
- Inputs that matter
- Actual values, Predicted values
- Output to expect
- R-squared score
- Check the units and required inputs before comparing results.
- Keep the assumptions with a copied result so you can reproduce the calculation later.
Related Tools
Tools you might need next
Plan approximate samples for an equal-allocation, two-sided comparison of independent binary conversion rates with explicit effect, significance and power.
Inspect a fixed-shape linear tensor-storage budget and its whole-batch limit with explicit fixed memory, element size and reserve.
Test categorical goodness of fit or an independent 2×2 outcome table, with actual p-values, Fisher support and labeled proportion-difference intervals.
Reference & details
How it works
Updated September 2026
How it works
Updated September 2026Prediction R-squared and error
R² = 1 − sum((actual−predicted)²) / sum((actual−mean(actual))²); RMSE = √(residual sum of squares/N) Unweighted prediction scores for one numeric target. A negative R-squared means greater squared error than predicting this evaluation sample’s mean. Constant actual values make the denominator zero. R-squared is undefined even for perfect predictions; RMSE remains available. The score does not by itself establish out-of-sample generalization, causality or business value.
Updated: September 2026
Example Scenarios
Compare actual and predicted values on the same evaluation rows, preserving negative scores and reporting constant-target R-squared as undefined.
Common Mistakes to Avoid
Common Mistakes to Avoid
Applying prediction r-squared and error outside its stated assumptions
A negative R-squared means greater squared error than predicting this evaluation sample’s mean. Constant actual values make the denominator zero. R-squared is undefined even for perfect predictions; RMSE remains available. The score does not by itself establish out-of-sample generalization, causality or business value.
FAQ
About Regression R² and RMSE
Score paired actual and predicted numeric values with R² and RMSE, retaining negative scores and explicitly undefined constant-target R². Choose the mode that matches your measurements or study design, enter the stated units and keep the method and limits with the result.