Regression & Correlation Calculator
Regression & Correlation Calculator fits a linear, polynomial (degree 2–6), exponential, power or logarithmic model to (x, y) data pairs and gives the equation, R², the residual standard error and (for linear fits) the slope's standard error and p-value. It computes Pearson r and Spearman ρ correlations with p-values, plots the fitted curve with the data points and predicts y for any x.
- Equationy = 0.857143x + 1.571429
- R² (coefficient of determination)0.857143
- Residual standard error0.828079
- Observations7
- Slope standard error0.156492
- Slope p-value0.002765
- Predicted y (x = 8)8.428571
- Pearson rCoefficient = 0.92582 · p-value = 0.002765Strength: very strong
- Spearman ρCoefficient = 0.909241 · p-value = 0.004537Strength: very strong
How it works
- 1Type or paste one "x y" pair per line (at least 3 pairs).
- 2Choose the model (linear, polynomial, exponential, power, logarithmic).
- 3Read the equation, R², correlations and the chart; use "x value to predict" to estimate y.
Frequently asked questions
What does R² mean?−+
The share of the variability in y the model explains (0–1). A high R² means a good fit but does not prove causation.
Pearson or Spearman?−+
Pearson measures linear association and is sensitive to outliers; Spearman uses ranks and suits monotonic but non-linear relationships and data with outliers.
Why does the exponential/power model fail?−+
These models are fitted with natural logarithms, so y (and x for the power model) must be positive.
Is a higher polynomial degree better?−+
R² always rises with the degree but the model also learns the noise (overfitting). Pick a degree much smaller than the number of data points.
Embed on your site
<iframe src="https://toolsqube.com/en/math/regression-correlation-calculator/embed" width="480" height="360" style="border:0;border-radius:14px" title="Regression & Correlation Calculator · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Math Tools Guide →