▚DATAJIN

Multiple linear regression calculator

Multiple linear regression predicts a numeric outcome from two or more predictors at once. Each coefficient estimates the effect of one predictor while holding the others constant, which lets you separate overlapping influences, for example the effect of study hours on exam score after accounting for attendance.

No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.

When to use it

  • An outcome depends on several numeric predictors.
  • You need to adjust for confounding variables.
  • Building a simple predictive model.

Assumptions

  • Linear relationships between each predictor and the outcome.
  • Independent residuals with constant variance and an approximately normal distribution.
  • Predictors are not too strongly correlated with each other (check with a correlation matrix).
  • Enough observations: at least 10–20 per predictor is a common rule of thumb.

How to run it in DATAJIN

  1. Put each predictor in its own column and the outcome in another column.
  2. Open Analyze and choose Multiple linear regression.
  3. Select the predictor columns and select the outcome column last, then click Run.

Example: open the Auto MPG dataset (fuel economy predicted from weight, horsepower and displacement) and follow the steps above.

What you get

  • Coefficient for the intercept and each predictor, with SE, t, p-value and 95% CI
  • R², adjusted R² and overall model statistics

How to interpret the result

Each coefficient is the expected change in the outcome for a one-unit change in that predictor with the others held constant. Predictors with p < 0.05 contribute significantly. Adjusted R² penalises extra predictors, so use it to compare models with different numbers of predictors.

Frequently asked questions

Why must the outcome be selected last?

DATAJIN treats the last selected column as the dependent variable (Y) and all earlier selected columns as predictors.

Can I use categorical predictors?

Code them as 0/1 dummy columns first (one column per category, minus one reference category).