Slope and Intercept in a One-Feature Model

An intercept is the predicted value at feature zero. A slope reports how much predicted output changes for a unit feature increase.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a short line
  2. Check the range of examples
  3. Read the baseline and response per unit
  4. Ask whether the intercept describes an observed case

Trace a short line

If \(\hat y=3+2x\), moving from x=4 to x=5 moves predictions from eleven to thirteen. A numerical unit conversion changes how a slope is expressed. See values with units.

Check the range of examples

When feature zero lies far outside observed inputs, the intercept can still define the line but be unsuitable as a direct physical claim. See interpolation and fitting.[1]

Read the baseline and response per unit

The model \(y=7+2x\) predicts seven at zero and increases by two for every unit increase in \(x\). Between x three and five, predicted output rises from thirteen to seventeen. Each coefficient has units determined by the feature and target. See reading linear weights.

x=0 → y=7
x=3 → y=13
x=5 → y=17
Change in y ÷ change in x = 4÷2 = 2

Ask whether the intercept describes an observed case

If all measurements occur far from zero, the intercept can be outside observed support. Centering at a meaningful value changes interpretation without changing fitted predictions under the corresponding parameterization.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩