How to calculate
Fit a least-squares line or supply your predictions. Subtract the ratio of residual sum of squares to total sum of squares from one. R² can be negative for supplied predictions.
Worked example
Use Inputs Fit a line from paired X and Y · X values for fitting 0, 2, 4 · Observed values (Y) 1, 4, 4. The result is 0.75.
Input and result notes
Enter numbers using the same units. Rounded results are marked with ≈.