Simple Linear Regression (LINE)

line(x, y)

Calculate slope and intercept of the linear regression line that best fits the data.

syse.line(x, y)

Calculate slope and intercept of the linear regression line that best fits the data.

Parameters:
  • x – list of x-values

  • y – list of y-values

Returns:

(slope, intercept)

Return type:

tuple

Notes

Examples: