Pearson Correlation (r, R²) & Linear Regression Calculator

Compute exact Pearson r, coefficient of determination R², and least-squares line y = mx + b.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
Result
—
MetricValue

    Formula & Methodology

    r = Σ(x-x̄)(y-ȳ) / √(Σ(x-x̄)²·Σ(y-ȳ)²)

    Technical Explanation

    Compute exact Pearson r, coefficient of determination R², and least-squares line y = mx + b. Executes 100% locally in your browser with step-by-step derivations and CSV export.

    Worked Examples

    • Adjust inputs above to inspect live step-by-step output and download results as CSV.

    Limitations & Assumptions

    • Standard IEEE 754 double precision applies except modular exponentiation which uses arbitrary-precision BigInt.

    Source References & Verification

    Resource ID: calc-pearson-correlation-regression · Independently verified: 2026-11-25

    Related Resources