R-Squared Calculator

Calculate R² (coefficient of determination) to measure how well predictions fit observed data

About R-Squared

R² (coefficient of determination) measures the proportion of variance in the dependent variable that is predictable from the independent variable(s).

Formula: R² = 1 - (SS_res / SS_tot)

Range: 0 to 1 (0% to 100%)

Interpretation:

  • R² = 1: Perfect fit
  • R² = 0: Model explains no variance
  • Higher values indicate better model fit