Skip to content
Research Atlas

Statistics

Regression Explorer

Fit a line to rainfall vs. streamflow data from the Bluewater River gauge. Drag the slope away from the OLS best fit and watch R² drop.

Monthly rainfall (mm)Streamflow (m³/s)
slope = 0.159intercept = 4.15R² = 0.772

Drag the slope away from "best fit" and watch R² drop — the ordinary least squares line specifically minimizes total squared residual distance, which is why it maximizes R² for a straight-line fit.