General Mathematics · bivariate data · manipulative

How much of the scatter does the line explain?

Grey segments are each y minus ȳ — the total vertical scatter. Leftover residuals are what the line failed to catch. r² is that explained fraction.

y − ȳ residual explained
r² = explained / total

Scatter and fitted line

Residual plot · e = y − ŷ versus x

Drag any point · teal bar is explained · contrast bar is leftover

Cloud

Residual plot
e = y − ŷ versus x, under the scatter

Working