如何计算R-squared
learn.whatIsHeading
R² (coefficient of determination) measures the proportion of variance in the dependent variable that is predictable from the independent variable(s). R²=0.80 means 80% of variation in Y is explained by the model.
分步指南
- 1R² = 1 − SS_residual / SS_total
- 2SS_total = Σ(yi − ȳ)²
- 3SS_residual = Σ(yi − ŷi)²
- 4For simple linear regression: R² = r²
例题解析
输入
SS_total=100 · SS_residual=30
结果
R² = 0.70 — model explains 70% of variance
Reasonable for many real-world applications
准备好计算了吗?尝试免费的 R-squared 计算器
自己尝试一下 →