Linear Regression (Slope + Intercept)
y = mx + b via least squares. Returns m, b, r², SE.
Result
How to use this calculator
- Enter paired x, y values.
About this calculator
Linear regression via least squares: minimizes sum of squared residuals. Slope m = Σ(x−x̄)(y−ȳ) / Σ(x−x̄)². r² = % variance in y explained by x. SE of slope used to test if slope is significantly non-zero (slope/SE = t-statistic). Foundation of predictive modeling. Source: Wolfram MathWorld - Least Squares Fitting.
Frequently asked
r² interpretation?+
When linear fails?+
Outliers?+
Confidence interval for slope?+
Multiple regression?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
Convert a z-score to one-tail or two-tail p-value via the standard normal CDF.
CI = mean ± z × (σ/√n). 90 / 95 / 99 % standard intervals.
Compute probability density and cumulative probability at x for given μ, σ.
r = Σ(xᵢ−x̄)(yᵢ−ȳ) / √(Σ(xᵢ−x̄)² Σ(yᵢ−ȳ)²). Linear correlation [−1, 1].
Test whether two means differ. t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂).
Full federal + state income tax estimate — wages, pre-tax 401(k)/HSA, standard or itemized deduction, child + dependent credits, FICA. Returns total tax burden, effective rate, and take-home pay.