Regression Calculator

Fit linear, polynomial, exponential, or logarithmic regression models to x-y data with prediction and residual output.

Scratchpad (not saved)

Recommended Tools

Some links below are affiliate links. As an Amazon Associate, MCPCalc earns from qualifying purchases, at no extra cost to you. Learn more.

What This Calculator Does

This calculator fits several common regression models to pasted x-y data pairs and reports the resulting coefficients, fit quality, residual samples, and a forward prediction.

It combines x,y Data Pairs, Model Type, Polynomial Degree, Predict at x to estimate Equation, Coefficients, R Squared.

Formula & Method

Common models include linear y=a+bxy=a+bx, polynomial y=∑i=0naixiy=\sum_{i=0}^n a_i x^i, exponential y=aebxy=a e^{bx}, and logarithmic y=a+bln⁡(x)y=a+b\ln(x). Fit quality is summarized with R2=1−SSresSStotR^2=1-\frac{SS_{res}}{SS_{tot}}.

Notation used in the formulas: RR = Equation; x1x_{1} = x,y Data Pairs; x2x_{2} = Model Type; x3x_{3} = Polynomial Degree; x4x_{4} = Predict at x.

Method summary: inputs are normalized to consistent units, core equations are evaluated, then secondary values are derived and rounded for display.

Use it when you need a quick best-fit model for a small dataset and want the coefficients and residuals without opening a spreadsheet or notebook.

Reference Book

Introduction to Mathematical Statistics

Global Edition

Robert V. Hogg, Joseph McKean, and Allen T. Craig · Pearson

A standard reference for probability distributions, estimation, hypothesis testing, regression, and ANOVA.

View on Amazon

Affiliate link. MCPCalc earns from qualifying purchases.

Inputs Used

  • x,y Data Pairs: Used directly in the calculation.
  • Model Type: Used directly in the calculation.
  • Polynomial Degree: Used directly in the calculation.
  • Predict at x: Used directly in the calculation.

Related Calculators

  • ANOVA Calculator - Run a one-way ANOVA across two or more groups with F-statistic, p-value, variance breakdown, and eta-squared.
  • Hypothesis Test Calculator - Run one-sample z, t, or proportion hypothesis tests with statistic, p-value, critical value, and decision.
  • Expected Value Calculator - Compute expected value, variance, and standard deviation for up to 20 weighted outcomes.
  • Percentage Calculator - Perform common percentage operations: find a percentage of a value, calculate what percentage one number is of another, and find percentage change.
  • Fraction Calculator - Add, subtract, multiply, or divide two fractions and simplify the result.
  • Ratio Calculator - Simplify a ratio and compute equivalent forms.
  • Proportion Calculator - Solve proportions of the form a / b = c / x.
  • Average Calculator - Compute mean, median, and mode from up to five values.