Skip to main content
Skip to main content

simpleLinearRegression

Performs simple (unidimensional) linear regression.

Parameters:

  • x — Column with explanatory variable values.
  • y — Column with dependent variable values.

Returned values:

Constants (k, b) of the resulting line y = k*x + b.

Examples