Skip to content

intercept

Y-intercept of a linear regression line.

v = intercept(knownys, knownxs)

Returns the y-intercept of the least-squares regression line through (x, y) points — the b0 coefficient in y = b0 + b1*x.

intercept([3 5 7 9], [1 2 3 4]) % 1
  • slope — Slope of a linear regression line.
  • linest — Linear regression coefficients (with optional statistics).
  • trend — Linear-trend predictions.