Coefficient of Determination (R-squared) Calculator
Enter the correlation coefficient r to compute the coefficient of determination R-squared, the share of variance in the dependent variable explained by a regression model.
📐 計算公式
Coefficient of determination R² = r × r (r is the correlation coefficient); linked cards: unexplained variance share = 1 − R², odds of determination = R²/(1−R²), explanatory power = R² × 100%, variance inflation factor VIF = 1/(1−R²). When R²=1 these two ratios have a zero denominator and show "∞ (not applicable)" rather than a truncated finite value. Applicability: r is the Pearson correlation between the response and one explanatory variable in the same data, with an intercept-only simple least-squares model; R² is only an in-sample explained share, not a causal contribution, and does not represent multiple or no-intercept models. VIF is meaningful for collinearity only when r comes from an auxiliary regression of one predictor on the others. Convention: |r| closer to 1 means stronger explanation; unexplained share plus R² is always 1; VIF grows sharply as R² approaches 1.
輸入相關係數 r,求決定係數 R²。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Coefficient of determination | R-squared = r^2, the proportion of total variation explained (simple linear case) | Wright S. (1921), Correlation and causation, J. Agricultural Research 20 |
| Pearson correlation coefficient | r = sum(x_i - xbar)(y_i - ybar) / sqrt( sum(x_i - xbar)^2 · sum(y_i - ybar)^2 ) | Pearson K. (1895), Notes on regression and inheritance in the case of two parents |
| Range | 0 <= R-squared <= 1; closer to 1 indicates a better fit | NIST/SEMATECH e-Handbook of Statistical Methods §1.3.5.3 |
| Adjusted R-squared | R-squared_adj = 1 - (1 - R-squared)(n - 1)/(n - k - 1), k = number of predictors | Draper NR, Smith H, Applied Regression Analysis (3rd ed.), Wiley |
📌 計算說明
- R² 表示被解釋的變異比例。
- 0.8² → 0.64。