Mathematics · Statistics
Linear Regression Calculator
Fit a least-squares line to three paired observations.
Inputs and results stay in this browser. Change one value at a time to explore the relationship.
Calculation steps
- x̄=2; ȳ=4.
- Slope=2; intercept=0; line y=2x+0.
Problem → model → reason → result
What problem does this model solve?
Fit a least-squares line to three paired observations.
Why does the model apply?
Least squares chooses the line minimizing summed squared vertical residuals.
What assumptions does it make?
The entered observations belong to the dataset being described. A sample statistic should not be treated automatically as a complete population description.
Formula
slope=Σdx·dy/Σdx²; intercept=ȳ−slope·x̄
Calculation and working
The calculator above substitutes your inputs into the model and leaves the calculation steps visible so the answer can be checked rather than merely accepted.
What does the result mean?
The result answers the stated problem in the units implied by your inputs. Read its sign, size and units together, then compare it with the original values before drawing a conclusion.
Worked example
(1,2),(2,4),(3,6) fits y=2x.
Common mistake
Extrapolating beyond the observed x range may be unreliable.
When does this model not apply?
A summary statistic describes the supplied values but does not establish causation, representativeness or statistical significance.
How to learn with this calculator
Begin with the worked example, then change one value while keeping the others fixed. Compare the new result and calculation steps to identify which part of the formula changed.
Clear answers
Frequently asked questions
What does the Linear regression do?
Fit a least-squares line to three paired observations.
How does the Linear regression work?
The calculator applies slope=Σdx·dy/Σdx²; intercept=ȳ−slope·x̄. Least squares chooses the line minimizing summed squared vertical residuals.
What can I learn from the Linear regression?
It connects the mathematical rule to your chosen numbers and shows each calculation step. Change one input at a time to see how the result responds.
Does MW SysArc receive or store what I enter?
No. The calculation runs locally in your browser. MW SysArc does not receive or store your calculation inputs.
How should I use the result?
Use the steps to understand the method, then verify important school or professional work using the notation and rounding rules required in your setting.
Last reviewed 2026-07-14. Calculations tested 2026-07-14.