How to use this tool
- Enter x values, y values.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
The method, explained
Slope = sum[(x − mean x)(y − mean y)]/sum[(x − mean x)²]. Intercept = mean y − slope × mean x.
Using x values = 1,2,3,4, y values = 2,4,5,8, the result is 1.9 slope. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
The primary result is slope. No causal inference or prediction interval is implied. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.
Common questions
Which inputs does this calculation need?
Fit an ordinary least-squares line to paired numeric data. Enter x values, y values. The filled example is editable and is not a saved personal record.
How should I interpret the result?
The primary result is slope. No causal inference or prediction interval is implied. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.
Methodology maintained by ClarityKit. How these tools are built and checked.