Continuous targets, real consequences
Regression means predicting a number on a continuous (or count) scale: price, demand, latency, revenue, days-until-churn. The metric is some form of distance between the prediction and the truth. Unlike classification, the magnitude of the error matters as much as the direction.
Two questions to ask first
- What does an error of size E cost? Predicting 100 when the truth is 110 might be free in one business and disastrous in another.
- Is the target naturally bounded? Counts are non-negative integers. Probabilities live in [0, 1]. Ignore the bound and the model will produce nonsense outside it.
The log trick
When the target spans orders of magnitude (revenue, web traffic, latency), predict log(target). Errors then correspond to ratios, which is usually what the business cares about. Remember to invert before reporting.