AI Glossary / Natural language and speech / Intermediate
Intercept
Definition
An intercept is the constant term in a model's linear expression, added independently of the input features. In a simple regression prediction y-hat = b + wx, b is the intercept: the predicted value when x is zero. In logistic regression, the intercept instead contributes to the linear log-odds score before conversion to a probability. Its interpretation depends on the model and feature coding.
What it means
An intercept lets a fitted relationship sit above or below zero without forcing it through the origin. The slope describes how the prediction changes with the input; the intercept sets the expression's level at the chosen reference point.
That reference point is not always a realistic observation. A model of a process measured only under substantial workload may have little evidence about zero workload. Its intercept can remain mathematically necessary without supporting a confident real-world claim about what happens when operations stop. “Predicted at zero” and “observed at zero” are different statements.
How it works
In a multiple-feature linear predictor, the intercept is added to the weighted sum of the encoded features. With ordinary least squares, the fitting procedure chooses coefficients to reduce squared prediction errors. Other models and objectives estimate the constant term differently.
Changing feature coding can change the intercept without changing predictions. Centering a feature shifts which original input corresponds to zero. With categorical indicators, the intercept may describe a reference category at zero values of other encoded features. Always interpret it alongside the preprocessing and the full equation.
The term bias is also used for this constant in neural networks and logistic regression. That mathematical use does not itself mean statistical bias in an estimator or unfair treatment of people. The shared word should not obscure the different concepts. Likewise, a logistic intercept is not directly a probability; the model's link function determines the conversion.
Three practical examples
1. Workload prediction: An analyst includes an intercept when fitting processing time against item count, then checks whether zero-count interpretation is supported by the observed range.
2. Text classification: A logistic classifier combines a constant with weighted text features before applying a sigmoid. The constant affects the prediction even when all encoded feature values are zero.
3. Model documentation: A team explains why centering an input changed the displayed intercept while leaving predicted outputs unchanged, preventing a coding change from being mistaken for a behavioral change.
Think of it this way
Think of a ruler whose zero mark can be shifted while the spacing between marks stays the same. Changing the reference changes the displayed starting value, not necessarily the underlying relationship. The analogy helps with centering, but fitted models also involve estimation uncertainty and assumptions; an intercept is not merely an arbitrary number chosen for appearance.
Worked example
Take an invented processing-time model t = 4 + 0.5n, where t is minutes and n is the number of items. The intercept is 4 minutes and the slope is 0.5 minutes per item. For n = 6, the prediction is 4 + 3 = 7 minutes. At n = 0, the formula predicts 4, although the example supplies no real measurements to validate that situation.
Now define a centered feature c = n − 10. Since n = c + 10, substitution gives t = 4 + 0.5(c + 10) = 9 + 0.5c. The intercept becomes 9. For the same six items, c = −4 and the prediction is 9 − 2 = 7 minutes, exactly as before.
Finally, in a separate logistic example with zero feature contribution and intercept zero, the score is zero and the sigmoid gives 0.5. This illustrates why the intercept must be interpreted on the correct scale. Neither a 4-minute constant nor a zero logistic constant independently establishes actual baseline performance or calibrated probability.
Illustrative case study
Fictional case: An operations dashboard displays a model intercept as “fixed setup time.” The model was fitted only on batches containing many items, and the team has no observations of empty batches.
A reviewer points out that the parameter is a fitted constant, not a separately measured setup duration. The team relabels it, documents the observed range, and tests predictions on representative workloads. If a physical setup-time claim is needed, it gathers relevant evidence rather than reading the claim directly from the intercept. This scenario demonstrates interpretation discipline, not a measured business improvement.
Common misconceptions and mistakes
Do not confuse the intercept with the slope. Increasing one feature by a unit changes a linear prediction according to its coefficient, while the intercept remains constant for that fitted equation. Nor should a nonzero intercept automatically be removed because it appears inconvenient: forcing zero changes the model's assumptions.
Another mistake is comparing intercepts across differently scaled or centered datasets as though their reference points were identical. Also avoid reading every intercept as the overall mean target value. Such an interpretation requires particular modeling and centering conditions, not merely the presence of a constant term.
Business use
Businesses should document intercepts with feature definitions, units, reference categories, transformations, and model type. When communicating results, prefer “predicted value at this reference input” over a causal explanation unless the evidence supports causation. Check whether the reference point lies within the observed data range. For classifiers, distinguish the linear score from the probability and any threshold-based decision made afterward.
People also ask
Is an intercept always a measured baseline?
No. It is a model parameter whose reference point may be unobserved or unrealistic.
Can centering change it?
Yes. The worked example changes the intercept from 4 to 9 while preserving every prediction.
Is a logistic intercept itself a probability?
No. It enters the linear score and must be transformed through the model's link function.
Check your understanding
What does c = 0 represent in the centered worked model?
Answer: Ten items, because c = n − 10. Its intercept of 9 is the predicted time at that reference input.
Related terms
- Linear regression
- Logistic regression
- Centering
- Coefficient
- slope
- bias term
- feature encoding
- link function
Learn next
Rewrite a simple fitted equation after subtracting a reference value from its input. Check three predictions before and after the rewrite. Then compare an ordinary linear output with a logistic score to see why the same constant-term idea has different output-scale interpretations.
More in Natural language and speech
- Intelligent character recognition - Intelligent character recognition, or ICR, refers to character-recognition methods that use learned or adaptive pattern-recognition techniques, often for...
- Intentional stance - The intentional stance is a strategy for predicting a system's behavior by treating it as an agent with beliefs and goals, then asking what it would...
- Interactive machine translation - Interactive machine translation is a translation process in which a person and a machine translation system repeatedly exchange suggestions and corrections.
- Interjection - An interjection is a word or short expression commonly used to convey a reaction, attract attention, greet someone, or provide conversational feedback...
- Interlingual machine translation - Interlingual machine translation translates through a shared intermediate representation intended to capture relevant meaning independently of a particular...
- Intonation phrases - Intonation phrases are stretches of speech grouped together by prosodic organization, such as a coherent pitch pattern and cues to a boundary.
Sources
Primary sources: scikit-learn LinearRegression documentation, constant-term and fitting descriptions: https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html ; Jurafsky and Martin, chapter 4, bias/intercept and sigmoid discussion: https://web.stanford.edu/~jurafsky/slp3/4.pdf . Relevant passages were read. Numerical equations and case are original. The supplied language-and-speech category is retained, but the concept applies broadly across predictive modeling.
Previous: Interactive machine translation Next: Interior-point method