Functions for linear regression

The linear regression algorithm is implemented in the LINEAR_REGRESSION stored procedure and the PREDICT_LINEAR_REGRESSION stored procedure. To print a linear regression model, use the PRINT_MODEL procedure.

Note: This feature is available starting from Db2® version 11.5.4.

All stored procedures consist of a mandatory one-string parameter that contains pairs of <parameter>=<value> entries. These entries are separated by a comma. The data type of the parameter is VARCHAR(any).

Valid <parameter>=<value> entries are listed in the parameter descriptions for each stored procedure.