How this calculator works
Enter the values for first value, second value and review the units before calculating.
Formula / method
ŷ = a + bx; b = Σ((x−x̄)(y−ȳ)) ÷ Σ((x−x̄)²)
Worked example
For points (1,2), (2,4), (3,6), the fitted line is ŷ = 2x.
Assumptions and limitations
The relationship is summarized by a linear model and X has nonzero variance.
Regression describes association in the supplied data; it does not establish causation or forecast outside the observed range.