Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-1766 Misc. statistical functions
  3. IMPALA-11957

Implement Regression functions : regr_slope(), regr_intercept() and regr_r2()

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.3.0
    • None
    • None
    • ghx-label-8

    Description

      The linear regression functions fit an ordinary-least-squares regression line
      to a set of number pairs which can be used both as aggregate and analytic functions.

      • regr_slope() takes two arguments of numeric type and returns the slope of the line.
      • regr_intercept() takes two arguments of numeric type and returns the y-intercept of the regression line.
      • regr_r2() takes two arguments of numeric type and returns the coefficient of determination (also called R-squared or goodness of fit) for the regression.

      Attachments

        Activity

          People

            pranav.lodha Pranav Yogi Lodha
            pranav.lodha Pranav Yogi Lodha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: