Statistics

Simple Linear Regression Calculator

Fit an ordinary least-squares line to paired numeric data.

Data stays on this deviceConvention explained below

Data and assumptions

Runs on your device

STATISTICAL RESULT

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter x values, y values.
  2. Select Calculate to view the result.
  3. 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.

A WORKED EXAMPLE

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.