Source: https://goodhandover.co.uk/tools/multiple-linear-regression-calculator/

[Economics](https://goodhandover.co.uk/tools/economics/#msc) / MSc economics

🔒 Files never leave your device

# Multiple linear regression calculator

Fit ordinary least squares with up to five predictors and compare classical and robust standard errors. Your inputs stay on your device.

## Set up your task

Ready. Processing stays in this browser.

Files and text stay on your device. [Privacy details](https://goodhandover.co.uk/privacy/).

 

## How to use Multiple linear regression calculator

Fit ordinary least squares with up to five predictors and compare classical and robust standard errors. The example below shows the input values and the result so you can compare the calculator’s method with your own working.

 

- Start with the pre-filled values for data rows (y, then x1 to x5).

- Replace the example with your own coursework values. Keep units consistent across the inputs and compare with the stated model.

- Read the intermediate values in the result. Use the check below to see how a change in the assumptions affects the answer.

 

## Supported inputs and limits

Use 3 to 150 complete rows, with the outcome first, then 1 to 5 predictors. Omit headings and enter more observations than coefficients including the intercept.

 

## How it works

Ordinary least squares fits an intercept and the slopes that minimise the sum of squared residuals. Each slope is an association with the outcome after accounting for the other predictors in the same model. Place each observation on its own row and keep the outcome and predictor columns in identical order.

This implementation centres and scales predictors internally before factoring the design into orthogonal directions. It then reports coefficients in the original units. The classical standard error uses one estimated residual variance, while HC1 uses the squared residual for each observation with a degrees-of-freedom correction. Compare them when practising heteroskedasticity-robust inference. The t column uses the classical standard error.

 

## Example

The pre-filled example gives “OLS fitted 2 predictors” as its first result.

Data rows (Y, then X1 to X5)

2 0 0

4 1 0

7 0 1

8 1 1

11 2 1

13 2 2

OLS fitted 2 predictors
Observations: 6 · Residual degrees of freedom: 3
R²: 0.970494418 · Adjusted R²: 0.95082403
Residual sum of squares: 2.52272727
Coefficient: estimate  classical SE  HC1 SE  classical t
Intercept: 2.47727273  0.633516357  0.515418227  3.91035322
X1: 1.84090909  0.5699971  0.675419196  3.2296815
X2: 3.81818182  0.677257474  0.651897977  5.63771086

 

## Questions about Multiple linear regression calculator

### Is this the same as the simple least-squares calculator?

This page fits one to five predictors jointly and reports classical and HC1 standard errors. The simple least-squares page focuses on the relationship between two lists.

### Why do linearly dependent predictors fail?

More than one coefficient combination gives the same fitted values. The individual coefficients are not identified until redundant predictors are removed.

### What does a coefficient on X2 mean in the example?

It measures the fitted change in Y for a one-unit increase in X2 with X1 held fixed. Economic interpretation depends on what those variables represent and whether they are measured in compatible units.

 
 

[Try the multiple regression practice worksheet](https://goodhandover.co.uk/guides/multiple-regression-practice/).

 

## Related tools

[MSc economics](https://goodhandover.co.uk/tools/economics/#msc)

- [Least squares regression calculator](https://goodhandover.co.uk/tools/least-squares-regression-calculator/)

- [Instrumental variables calculator](https://goodhandover.co.uk/tools/instrumental-variables-calculator/)

- [Difference-in-differences calculator](https://goodhandover.co.uk/tools/difference-in-differences-calculator/)

- [Price elasticity of demand calculator](https://goodhandover.co.uk/tools/price-elasticity-of-demand-calculator/)

 

Last updated 25 November 2026
