Skip to content
Count.ie

Statistics

Linear regression & correlation Calculator

Fit paired values, report slope and R², and calculate a specified prediction. This free linear regression & correlation calculator shows the calculation and its assumptions so you can compare your own figures.

How the linear regression & correlation calculation works

Ordinary least squares: slope = covariance sum / x deviation sum; intercept = mean y − slope × mean x; R² = squared Pearson correlation.

Editable inputs are planning assumptions; check the method and result notes for scope.

Using this calculator

  1. Enter your own figures in the labelled inputs. Keep the currencies, units and time periods consistent.
  2. Choose any applicable rate profile, pattern or assumption shown for this tool. Open additional inputs when relevant.
  3. Review predicted y and r squared, then read the stated assumptions and eligibility conditions before using the result.

Worked example

This is a static example using illustrative inputs, not facts about you or today’s date. The displayed eligibility selections and assumptions apply only to this example.

See example inputs
Paired x values
1, 2, 3, 4, 5
Paired y values
3, 5, 7, 9, 11
X value to predict
6
Predicted Y
13
R Squared
1
All statistics calculators →