What is regression?
Regression is the supervised learning task of predicting a continuous numeric value, such as demand, price, duration or quantity, from input variables.
It is also called regression analysis. It differs from classification in output type: classification places the input in one of a set of predefined categories, while regression produces a number. Time series forecasting is close to regression on time-dependent data, but temporal order and autocorrelation call for time-based rather than random splits.
- Topic
- Machine learning, models and training
- Also known as
- Regression analysis
- Origin
- 1886, Francis Galton, regression towards the mean
How regression works
- Labelled training data of input features and true numeric targets is prepared.
- A model is chosen, such as linear regression, decision trees, gradient boosting or neural networks.
- It trains to minimise a loss function measuring the gap between prediction and truth, such as mean squared error.
- Performance is evaluated on held-out test data with metrics such as mean absolute error, root mean squared error or R-squared.
In more detail
Beyond point estimates: quantile regression and prediction intervals
Standard regression outputs a single point estimate (the conditional mean), which hides forecast uncertainty. In capacity planning, inventory and risk management, quantile regression or conformal prediction intervals are used to model uncertainty and protect against costly extreme outcomes.
Multicollinearity and coefficient interpretation
In linear regression, strong correlation among input features (multicollinearity) makes individual coefficients unstable and can make their signs or sizes misleading, even when overall predictions stay accurate. When coefficients are used to justify decisions, diagnostics such as the variance inflation factor and regularisation help expose or reduce the effect.
Commonly confused terms
| Term | How it differs |
|---|---|
| Logistic regression | Despite its name, logistic regression is a classification algorithm: it models the log-odds of discrete classes and outputs probabilities between 0 and 1 rather than an unbounded continuous quantity. |
| Correlation | Correlation measures the strength and direction of a symmetric linear (or rank) association between two variables without distinguishing inputs from outputs, whereas regression fits a directional predictive model mapping features to a target. |
Why regression matters for on-premises AI
Many planning decisions in organisations rest on regression models, such as forecasting demand, cash flow, claim costs, energy use and delivery times. Linear models show each variable's effect as a coefficient, which suits processes needing explainability, while gradient boosting is more accurate but harder to explain. Regression models how variables move together; on its own it does not prove cause and effect, so results are interpreted with domain experts.
An energy company forecasts next-day electricity demand from hourly temperature, calendar and past consumption data with a regression model that reruns every night on an in-house server.
Common questions
What is the difference between regression and classification?
Regression predicts a continuous number, such as tomorrow's demand. Classification picks a category, such as whether a transaction is fraudulent.
Does regression show cause and effect?
No. It models how variables change together; showing that one causes another needs experiments or causal inference methods.
Related terms
- Classification
- Supervised learning
- Loss function
- Time series forecasting
- Feature engineering
- Gradient boosting
- Overfitting
Sources
In the glossary: Glossary, R to Z