IJM
Data ToolsData & Spreadsheet

Linear Regression & Pearson Correlation (r / R²)

Fit an Ordinary Least Squares (OLS) line y = mx + b to (x, y) pairs and inspect Pearson r, R², and RMSE.

Processed in browserNo upload

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²)

  1. Enter paired x, y coordinates one pair per line.
  2. Run the fit to obtain slope m, y-intercept b, r, and R².
  3. 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.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 123 in Data Tools →