Multiple Linear Regression Calculator
Fit an ordinary least squares model with one or more predictors and get coefficients, an equation, and R-squared.
About multiple linear regression
Multiple regression examples
These examples show exact linear relationships and a practical interpretation.
| Data | Result | Explanation |
|---|---|---|
| Y: 3,5,7,9; X1: 1,2,3,4 | Y = 1 + 2X1; R-squared 1 | Each one-unit increase in X1 adds exactly two to Y. |
| Y: 6,9,8,11,12; X rows: (0,0),(1,0),(0,1),(1,1),(2,0) | Y = 6 + 3X1 + 2X2; R-squared 1 | Both predictor effects are recovered from five observations. |
| Y: 5,8,11,14; X1: 0,1,2,3 | Y = 5 + 3X1; R-squared 1 | The intercept is five and every predictor unit adds three. |
| Y: 10,9,8,7; X1: 1,2,3,4 | Y = 11 - 1X1; R-squared 1 | A negative slope represents a one-unit decrease in Y for each predictor unit. |
How to run multiple regression
- Enter the dependent observations as a comma-, space-, or semicolon-separated list.
- Enter one independent-variable row per observation, separating predictor columns with commas.
- Verify that X and Y have matching row counts and that you have more rows than fitted coefficients.
- Select Calculate Regression to solve the ordinary least squares coefficients.
- Interpret the equation and R-squared together, then check assumptions before drawing conclusions.
Multiple linear regression FAQ
How should I format multiple predictors?
Put one observation on each line in the X field and separate its predictors with commas. Keep those rows in the same order as the Y values.
What does a regression coefficient mean?
It is the estimated change in Y for a one-unit increase in that predictor while other included predictors remain constant. Its units depend on both variables.
What does R-squared tell me?
R-squared is the share of observed Y variation explained by the fitted linear model. It describes in-sample fit but does not establish causality or future accuracy.
Why can regression fail with valid numbers?
Predictors may be perfectly redundant or there may be too few observations. In either case, the ordinary least squares coefficients cannot be uniquely estimated.
Does a high R-squared mean the model is good?
Not necessarily. A model can have high R-squared yet violate assumptions, overfit, omit important structure, or predict new observations poorly.