How it worksLeast squares: slope = Σ(x−x̄)(y−ȳ) ÷ Σ(x−x̄)², intercept = ȳ − slope·x̄.Frequently asked questions