Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

R-squared

The fraction of a dataset's total variation a least-squares fit explains.

R^2 = 1-\mathrm{SSE}/\mathrm{SST}, where \mathrm{SSE}=\sum r_i^2 is the sum of squared residuals left over and \mathrm{SST}=\sum(y_i-\bar y)^2 is the total variation before fitting. R^2=1 means every point sits exactly on the fitted line; R^2=0 means the fit does no better than predicting the mean \bar y for everything.

Read the full section →
Graph settings

Calculator