Multiple Regression Calculator
Evaluate a multiple regression model using SSR, SSE, number of predictors, and sample size. Calculate R², adjusted R², F-statistic, and model fit metrics.
About this calculator
This calculator evaluates a regression model's fit from four summary numbers — Regression Sum of Squares (SSR), Error Sum of Squares (SSE), Number of Predictors (k), and Sample Size (n) — rather than raw data, computing R-Squared = SSR / (SSR + SSE) (line 12) and an F-statistic built from Mean Square Regression (SSR / k) and Mean Square Error (SSE / degrees of freedom, lines 22-23). SSR and SSE move R-Squared in opposite, closely matched directions at the calculator's defaults, with neither one clearly dominating the other. Number of Predictors genuinely appears in several formulas here — Mean Square Regression divides by it directly, and the AIC approximation adds 2×(k+1) to its result — but because the field only accepts whole numbers, a ±10% nudge from its default of 3 rounds right back down to 3, so this calculator's own automated sensitivity check reads it as having zero effect everywhere it's actually used.
SSR, by contrast, is genuinely and verifiably absent from Mean Square Error, the AIC approximation, and RMSE — those three formulas only read SSE, Number of Predictors, and Sample Size. P-Value sits pinned at exactly 0 across every input at the calculator's defaults, not because none of the four inputs matter to it, but because the underlying F-statistic (46.0 at the defaults) is large enough that the chi-square approximation's z-score exceeds 6, which the calculator's normal-CDF helper hard-clamps to exactly 1 (giving P-Value = 1 − 1 = 0) — a saturation of the approximation, not a true zero derivative. This calculator does not use the standard F-distribution to compute an exact p-value; it approximates one with a Wilson-Hilferty-style cube-root transform against the normal distribution, which loses accuracy for small or unusual degrees-of-freedom combinations.
Inputs
Results
R-Squared (R²)
0.75
Adjusted R-Squared
0.73
F-Statistic
46
How to Use This Calculator
- Enter Regression Sum of Squares (SSR), Error Sum of Squares (SSE), and Number of Predictors (k).
- Set Sample Size (n).
- Review R-Squared (R²), Adjusted R-Squared, and F-Statistic.
- Use P-Value (approx) and Root Mean Square Error to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
How the result changes with Regression Sum of Squares (SSR)
| Regression Sum of Squares (SSR) | R-Squared (R²) | Adjusted R-Squared | F-Statistic |
|---|---|---|---|
| 2,250 | 0.6 | 0.57 | 23 |
| 3,375 | 0.69 | 0.67 | 34.5 |
| 6,750 | 0.82 | 0.81 | 69 |
| 11,250 | 0.88 | 0.87 | 115 |
What each input means
- Regression Sum of Squares (SSR)
- Sum of squares explained by the regression model.
- Error Sum of Squares (SSE)
- Sum of squares not explained by the model (residual error).
- Number of Predictors (k)
- Number of independent variables in the regression model.
- Sample Size (n)
- Total number of observations. Must exceed the number of predictors + 1.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersRegression Sum of Squares (SSR) = 4500, Error Sum of Squares (SSE) = 1500, Number of Predictors (k) = 3, Sample Size (n) = 50 = 4 input(s) provided
- Calculate R-SquaredR-Squared0.75 = 0.75
- Calculate Adjusted R-SquaredAdjusted R-Squared0.7337 = 0.7337
- Calculate F-StatisticF-Statistic46 = 46
- Calculate P-ValueP-Value0 = 0
- Calculate Root Mean Square ErrorRoot Mean Square Error5.7104 = 5.7104
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Does Number of Predictors actually affect Mean Square Regression, even though the sensitivity check shows zero effect?
Yes, genuinely — Mean Square Regression is literally SSR divided by Number of Predictors (line 22). The zero-effect reading comes from Number of Predictors being an integer field: a ±10% nudge from its default of 3 rounds right back down to 3 (Math.round, line 6), so only entering a genuinely different whole number reveals the real relationship.
Why is P-Value showing exactly 0 no matter which input I nudge?
At the calculator's defaults the F-statistic is 46.0, large enough that the approximation's internal z-score comes out well above 6 — and the calculator's normal-CDF helper hard-clamps any z-score above 6 to exactly 1, so P-Value = 1 − 1 = 0. That's a saturation of the approximation at these particular numbers, not proof that P-Value never responds to the four inputs; with a weaker model fit it would move.
Does Regression Sum of Squares affect Root Mean Square Error?
No. RMSE is the square root of Mean Square Error, which is Error Sum of Squares divided by the residual degrees of freedom (lines 23, 42) — Regression Sum of Squares never enters either formula, unlike R-Squared and the F-statistic, which both read it directly.
What kind of p-value calculation does this use?
An approximation, not the exact F-distribution calculation a full statistics package would run — it converts the F-statistic through a Wilson-Hilferty-style cube-root transform and reads the result off the normal distribution (lines 27-37), which is faster to compute but less accurate for small or unusual degrees-of-freedom combinations than an exact F-distribution p-value.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Logistic Regression Calculator
Calculate the predicted probability, odds, and odds ratio from logistic regression coefficients. Visualize the S-shaped probability curve.
StatisticsCorrelation Calculator
Calculate the Pearson correlation coefficient (r), coefficient of determination (r²), and test significance from summary statistics.
StatisticsChi-Square Test Calculator
Perform a chi-square goodness-of-fit test comparing observed and expected frequencies across four categories.
Math & StatisticsLinear Regression Calculator
Calculate linear regression line, slope, intercept, and R-squared. Find the best-fit line for your data points.
Machine Learning & AIModel Performance Calculator
Complete ML model evaluation. Classification metrics, regression analysis, cross-validation, ROC/AUC curves, and model comparison.
More in Math & Statistics.