Everyday tools ↗

Study & statistics / FREE BROWSER TOOL

Correlation & linear regression.

Fit a least-squares straight line and inspect correlation, R² and residual standard error.

YOUR EVERYDAY DESKKeep your
next task close.
Switch between tools ↗
Correlation & linear regression
See result ↓● Live result
01 / YOUR INPUTS

One x,y pair per line; at least 3 points.

Processed on this device.

02 / YOUR RESULT

Your answer

ON YOUR DEVICE

Your result will appear here.

Adjust a field to calculate.

LOCAL INPUTS / CLEAR WORKING / USEFUL OUTPUTNothing to sign in to.

Built and maintained by Operance Labs · Report a calculation or documentation issue

A LITTLE KNOW-HOW

How to use
this tool.

  1. Enter the values for your task.
  2. Adjust the settings and inspect the live result and working.
  3. Copy the result or save a local report.

What the inputs mean

Paired x,y observations
One x,y pair per line; at least 3 points.
x for prediction
Enter x for prediction.
A WORKED STARTING POINT

See the working.

Inputs used in this example

These are example values, not a current price, tariff or personal recommendation. Reset example restores them in the workspace.

InputExample value
Paired x,y observations1,2 2,3 3,5 4,4 5,6
x for prediction6

Least-squares fitted line

1.3 + 0.9x

slope = Σ((x−x̄)(y−ȳ)) / Σ(x−x̄)²; intercept = ȳ − slope×x̄

  • Pearson r: 0.9; R²: 0.81; residual standard error: 0.7958224258.
  • Predicted y at x=6: 6.7.
  • Association does not establish causation. The residual model assumes linearity and independent, constant-variance errors; extrapolation can be unreliable.

Method references

Background reading for the calculation. These sources do not endorse PixelDesk or verify an individual result.

Your inputs stay here

Your input is processed on this device. PixelDesk does not upload it to a calculation or file-processing server. Copying and downloading are deliberate actions. Closing the page clears the in-memory inputs; the app remembers only its theme and public reference-rate cache.

Methods and public data ↗

Keep a useful
thing close.

All study & statistics ↗

Questions, answered.

What can I do with correlation & linear regression?

Fit a least-squares straight line and inspect correlation, R² and residual standard error.

What does the correlation & linear regression example show?

With Paired x,y observations: 1,2 2,3 3,5 4,4 5,6; x for prediction: 6, the example returns 1.3 + 0.9x. The workspace shows the substituted formula and its assumptions; Reset example restores these inputs.

What should I check before using the result?

Pearson r: 0.9; R²: 0.81; residual standard error: 0.7958224258. Predicted y at x=6: 6.7.