Simple Linear Regression
—
Fit a line's slope through a fixed 3-point demo data set given your third point.
Linear regression finds the best-fit straight line through a set of points by minimizing squared vertical distances.
slope = Σ((x−x̄)(y−ȳ)) ÷ Σ(x−x̄)²