Correlation & Linear Regression
Fit a simple least-squares line and quantify linear association.
Correlation & Linear Regression
Browser-only calculations · No input data saved
Worked example results
- Pearson r
- 0.774597
- R squared
- 0.6
- Slope
- 0.6
- Intercept
- 2.2
- Residual standard error
- 0.894427
Rounded for display only. Export includes the inputs, results, method and assumptions. Refreshing or leaving the tool clears entered data.
How to use Correlation & Linear Regression
- Load the worked example to see the required input format.
- Fit a simple least-squares line and quantify linear association. Use consistent units, periods and definitions.
- Select Calculate, review the assumptions and export the result for your project evidence.
Formula and method
Slope = Sxy/Sxx; intercept = mean(y) − slope×mean(x); r = Sxy/√(Sxx Syy); R² = r².
Interpretation and assumptions
Use matched independent observations with a plausible linear relationship. Correlation does not imply causation. Check residuals, outliers and variance assumptions before inference or forecasting.
Results support professional judgement. They are not a certification of process stability, a financial commitment or a substitute for study design.
Frequently asked questions
How do I use the correlation & linear regression?
Fit a simple least-squares line and quantify linear association. Load the example first, then replace all inputs with consistent process data and select Calculate. Slope = Sxy/Sxx; intercept = mean(y) − slope×mean(x); r = Sxy/√(Sxx Syy); R² = r².
What assumptions matter for correlation & linear regression?
Use matched independent observations with a plausible linear relationship. Correlation does not imply causation. Check residuals, outliers and variance assumptions before inference or forecasting.
Are my calculator inputs saved or sent to a server?
These native calculations run in this browser tab. Inputs are not sent to a server or saved by this calculator. Download the result if you need a record; leaving or refreshing clears the form.
