// Statistics

LINEAR REGRESSION

Find the best-fit line through your data using ordinary least squares.

Slope = Σ(x−x̄)(y−ȳ) / Σ(x−x̄)²; intercept = ȳ − slope·x̄.