R-Squared (R²) Calculators
0 calculators tagged with “R-Squared (R²)”
All Calculators
No calculators found for this topic.
R² Formula
R² = 1 − SS_res / SS_tot
Where:
- SS_res (residual sum of squares) = Σ(yᵢ − ŷᵢ)² — variation not explained by the model
- SS_tot (total sum of squares) = Σ(yᵢ − ȳ)² — total variation in y
- ŷᵢ = predicted value; ȳ = mean of y
Equivalently: R² = SS_reg / SS_tot = proportion of total variance explained by the regression.
Interpreting R²
- R² = 0.85: Model explains 85% of the variance in y; 15% is unexplained
- R² near 1: Very high fit — model predicts y closely
- R² near 0: Model performs barely better than the mean of y as a predictor
Context matters: R² = 0.3 may be excellent in psychology or ecology (noisy biological data); R² = 0.95 may be expected in physics or analytical chemistry.
R² vs. Pearson's r
- r (Pearson correlation coefficient): Measures strength and direction of linear relationship: −1 to +1
- R² = r² for simple linear regression only: R² = 0.81 means r = ±0.90
- For multiple regression, R² is the proportion of variance explained by all predictors combined; it cannot be converted back to r
Limitations of R²
- R² always increases when predictors are added (even uninformative ones) — use adjusted R² to penalize for extra predictors
- High R² ≠ good model (check residual plots for pattern)
- Does not indicate whether the relationship is causal
- Cannot compare R² values between models with different dependent variables
- R² is uninformative for non-linear relationships assessed with linear regression
Glossary
Frequently Asked Questions
R² (coefficient of determination) = 1 − SS_residual/SS_total. It measures what proportion of the variance in the dependent variable (y) is explained by the regression model. R² = 0.75 means the model accounts for 75% of y's variance; 25% is unexplained residual variation. R² ranges 0–1; values closer to 1 indicate a better fit.
There is no universal standard — it depends on the field. In physics or analytical chemistry, R² > 0.99 is expected for controlled experiments. In ecology, biology, or psychology, R² = 0.3–0.6 may be considered reasonable given natural variability. In econometrics, R² varies widely. Always interpret R² relative to the complexity of the phenomenon, the number of predictors, and whether residual patterns indicate model adequacy, not by a single threshold.
Adjusted R² = 1 − [(1 − R²)(n − 1)/(n − p − 1)], where n = sample size and p = number of predictors. Unlike R², adjusted R² penalizes for adding unhelpful predictors — it decreases when an added predictor explains less variance than expected by chance. Use adjusted R² (instead of R²) when comparing regression models with different numbers of predictors or evaluating whether adding variables genuinely improves model fit.
No — R² measures statistical association, not causation. A high R² tells you the model accounts for much of the variance in y, but does not indicate whether x causes y. Classic example: ice cream sales and drowning rates both correlate with summer temperature — high R² for each, but neither causes the other. Causal inference requires experimental design, randomization, or directed causal reasoning beyond regression statistics.