Linear Regression & Correlation Calculator

Analyse the relationship between two continuous variables. Enter your Independent (X) and Dependent (Y) data below to instantly calculate the Pearson correlation coefficient, $R^2$, and the linear regression equation.

How to use this calculator
  1. Enter X Data (Independent Variable): Paste your predictor values into the left box.
  2. Enter Y Data (Dependent Variable): Paste your outcome values into the right box.
  3. Verify your counts: Ensure you have the exact same number of data points in both boxes. The calculator pairs the first X with the first Y, the second X with the second Y, and so on.
Regression & Correlation Calculator | Helpful Stats

Regression & Correlation

Calculate the line of best fit and Pearson correlation.

Line of Best Fit Equation
y = 0x + 0
Pearson (r)
0
R-Squared (R²)
0
Slope (m)
0
Y-Intercept (b)
0
Understanding Your Results
  • Pearson Correlation ($r$): Measures the strength and direction of a linear relationship between two variables. It ranges from -1 to 1. A value of 1 means a perfect positive relationship, -1 means a perfect negative relationship, and 0 means no linear relationship at all.
  • Coefficient of Determination ($R^2$): Represents the percentage of the variance in the dependent variable (Y) that can be explained by the independent variable (X). For example, an $R^2$ of 0.81 means 81% of the movement in Y is predictable based on X.
  • Regression Equation ($\hat{y} = mx + b$): The mathematical formula for the "line of best fit."
    • Slope ($m$): Tells you how much Y is expected to change for every one-unit increase in X.
    • Y-Intercept ($b$): The expected value of Y when X is exactly zero.