When to use it
Predict a continuous outcome from one or more numeric or categorical predictors.
When not to: The outcome is categorical or a count with a strongly skewed distribution (use logistic or Poisson regression instead), the relationship is clearly non-linear (consider a polynomial, spline, or GAM), or the assumption diagnostics (especially high VIF or a failed Breusch-Pagan test) indicate the classical standard errors and p-values cannot be trusted as reported.
Step by step
Open it from the menu
Click Regression in the menu bar; under Essentials choose Linear Regression.
Fill in the form
Choose the columns: What you want to predict or explain, Columns that may explain it. The form lists only columns whose type fits each field. Then fill in Combined influences (optional), Compare categories against (optional), Predict for a new case (optional).
Check the options
The options start at their defaults: How strict to be, How sure the ranges are, How to work out the uncertainty. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you want to predict or explain Outcome required | One numeric column. A number column. The model describes how it changes with the columns below. |
|---|---|
| Columns that may explain it Predictors required | One numeric or categorical or ordered categorical column. One or more columns, numbers or categories. Categories are coded automatically. |
| Combined influences (optional) Interactions | A value you type or choose on the form. Pairs of chosen columns whose link with the outcome may depend on each other. Leave empty if unsure. |
| Compare categories against (optional) Reference Levels | A value you type or choose on the form. For a category column, the level the others are compared with, written as column = level. Blank: the first level alphabetically. |
| Predict for a new case (optional) Predict At | A value you type or choose on the form. A value for every predictor of a case not in the table, written as column = value. The card adds its prediction. |
| How strict to be Alpha | The cut-off for the p-values. Below it, the card reports evidence for that column, or for the model as a whole. Not sure? Keep 0.05. It is the usual convention in most fields. |
| How sure the ranges are Confidence level | The confidence level of each coefficient's range: 0.95 gives 95% confidence intervals. Not sure? Keep 0.95. It is the usual choice and matches a 0.05 cut-off. |
| How to work out the uncertainty Standard errors | Classical assumes the scatter around the line is even; HC0 to HC3 (robust) allow uneven scatter. Not sure? Keep Classical, then check the residual plot; choose HC3 (robust, small samples) if the scatter fans out. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Normality (of residuals, not of the raw data)
If it does not hold: Non-normal residuals make the standard errors, t-tests, and confidence intervals on the coefficients approximate rather than exact; the effect is usually modest at large n (the CLT helps) but can matter for small samples or strongly skewed errors.
How to check: Shapiro-Wilk on the model residuals (for 3 to 5000 residuals), reported directly on the card.
- Homogeneity of variance (homoscedasticity)
If it does not hold: Heteroscedasticity (residual spread that changes with the fitted value) makes the classical standard errors, and therefore every p-value and confidence interval, wrong, usually too narrow in the region of higher variance.
How to check: Breusch-Pagan test on the residuals (skipped above roughly 50,000 rows, where it becomes over-powered), reported directly on the card; when it fails, the card recommends re-running with heteroscedasticity-consistent (HC3) standard errors, and states directly when those robust standard errors are already the ones being used below.
- Independence of observations
If it does not hold: Autocorrelated residuals (common in time-ordered data) make the standard errors too small, inflating apparent significance; the F and t statistics are no longer valid.
How to check: Durbin-Watson statistic on the residuals (skipped above roughly 50,000 rows), reported directly on the card and flagged outside the conventional 1.5-2.5 band.
- No (severe) multicollinearity
If it does not hold: Severely collinear predictors make individual coefficients unstable and their standard errors inflated, even though the model's overall fit and predictions remain fine.
How to check: Variance Inflation Factor computed for every predictor (skipped above 20 predictors, since VIF cost is quadratic in the predictor count), with the maximum VIF reported on the card and flagged above 5 (warn) or 10 (fail).
A worked example
Predicting penguin body mass from flipper length and species, with classical standard errors.
Result: Flipper length: beta = 40.7 g per mm, p < .001 (species adjusted: Chinstrap -207 g, Gentoo +267 g relative to Adelie); R-squared = 0.78, adjusted R-squared = 0.78. Shapiro-Wilk passes (p = .31), but Breusch-Pagan flags heteroscedasticity (p = .044), the maximum VIF is 5.07 (flipper length and the Gentoo indicator overlap), and Durbin-Watson = 2.56 is outside the 1.5-2.5 band.
Flipper length is a strong predictor of body mass within species, and the model explains 78% of the variance. The flagged checks change how to report it: re-run with HC3 standard errors because of the heteroscedasticity, read the flipper and Gentoo coefficients knowing they share information, and note that the Durbin-Watson flag reflects the file being sorted by species (row order), not a time-series dependence.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- How does ad spend predict sales after controlling for region?
- Explain the linear regression in plain words.
- What does linearity mean?
Last reviewed November 16, 2026.
