Skip to main content

simpleLinearRegression

Introduced in: v20.1.0 Performs simple (unidimensional) linear regression. Syntax
Arguments
  • x — Column with explanatory variable values. Float64
  • y — Column with dependent variable values. Float64
Returned value Returns constants (k, b) of the resulting line y = k*x + b. Tuple(Float64, Float64) Examples Perfect linear fit
Query
Response
Linear fit with offset
Query
Response
Last modified on July 2, 2026