JESUS CHRIST IS THE ONLY TRUE GOD
Statistics calculator

Multiple Linear Regression Calculator

Fit an ordinary least-squares linear model with an intercept from rows of y,x1,x2,… data.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Regression coefficients.

Multiple Linear Regression Calculator formula

β=(XᵀX)⁻¹Xᵀy, solved with pivoted Gauss–Jordan elimination.

Inputs and units

Inputs and example values for Multiple Linear Regression Calculator
InputFormat / rangeExample
Rows y,x1,x2,…Follow the input format above3,1,0 5,2,0 4,1,1 7,2,1 9,3,1

Worked example

The values listed in Inputs and units give intercept=0.4; β1=2.4; β2=1.46666667 for Regression coefficients.

Regression coefficients
intercept=0.4; β1=2.4; β2=1.46666667
R²
0.98850575
Observations
5

Results and assumptions

The result details report R², Observations for the same inputs as the main answer.

Fix an input or unexpected result

See how to check a result or report an issue.