CalculatorCast

Calculadora de regresión lineal

Línea de mejor ajuste para un conjunto de puntos (x, y).

Introducción

Linear Regression Calculator — Best-fit line for a set of (x, y) points. Enter Points (x,y per line) to get an instant, accurate result.

Fórmula

Ordinary least squares: slope = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²); intercept = (Σy − slope×Σx) / n.

Paso a paso

  1. Enter the Points (x,y per line).
  2. Click Calculate to see your result instantly.

Ejemplo del mundo real

Example: With the defaults shown above, the Linear Regression Calculator gives Slope: 1.8, Intercept: 0.2, Points: 5.

Preguntas Frecuentes

What does the slope represent?
How much y is predicted to change for each one-unit increase in x.
How many points do I need?
At least two, though more points give a more reliable fit.
What inputs does the Linear Regression Calculator need?
You'll need to provide: Points (x,y per line). All fields use sensible defaults, so you can see a working example immediately and then adjust the values to match your own numbers.
How accurate is the Linear Regression Calculator?
The Linear Regression Calculator applies the formula exactly as calculated — Ordinary least squares: slope = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²); intercept = (Σy − slope×Σx) / n. — so results are precise for the inputs you provide. Accuracy depends on entering correct, realistic input values.
Is the Linear Regression Calculator free to use?
Yes, the Linear Regression Calculator is completely free, requires no signup, and runs instantly in your browser.

Acerca de Calculadora de regresión lineal

The Linear Regression Calculator uses a real, verifiable formula — Ordinary least squares: slope = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²); intercept = (Σy − slope×Σx) / n. — so results are accurate every time, not an approximation.