Guide · Data Tools / Data & Spreadsheet
About Linear Regression & Pearson Correlation (r / R²)
Fit ordinary least squares (OLS) simple linear regression (y = mx + b) and compute Pearson correlation r, coefficient of determination R², and residual summary.
When to use this tool
Ideal for chemistry calibration curves, ad-spend vs revenue fits, and introductory statistics labs.
How to use Linear Regression & Pearson Correlation (r / R²)
- Enter paired x, y coordinates one pair per line.
- Run the fit to obtain slope m, y-intercept b, r, and R².
- Review predicted y-hat values and residuals in the diagnostic table.
Supported inputs, options, and outputs
- Input: Multi-line x, y data points (at least 2 distinct points).
- Outputs: Regression equation, Pearson r, R², standard error, and point-by-point residual table.
Accuracy notes and limitations
- Linear OLS fits straight lines only and is sensitive to high-leverage outliers.
- All points sharing identical x-values have undefined slope and trigger a clear error.
Privacy and browser processing
CSV, JSON, YAML, XML, and tabular datasets are parsed and transformed inside browser memory—no rows, schemas, or archive files leave your device. Hosted deployments load cookie-free analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Data Tools.