Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Later
    • 3.0.0
    • None
    • SQL
    • None

    Description

      Function Argument Type Return Type Partial Mode Description
      corr(YX) double precision double precision Yes correlation coefficient
      covar_pop(YX) double precision double precision Yes population covariance
      covar_samp(YX) double precision double precision Yes sample covariance
      regr_avgx(YX) double precision double precision Yes average of the independent variable (sum({{X)/N}})
      regr_avgy(YX) double precision double precision Yes average of the dependent variable (sum({{Y)/N}})
      regr_count(YX) double precision bigint Yes number of input rows in which both expressions are nonnull
      regr_intercept(YX) double precision double precision Yes y-intercept of the least-squares-fit linear equation determined by the (XY) pairs
      regr_r2(YX) double precision double precision Yes square of the correlation coefficient
      regr_slope(YX) double precision double precision Yes slope of the least-squares-fit linear equation determined by the (XY) pairs
      regr_sxx(YX) double precision double precision Yes sum({{X^2) - sum(X)^2/N}} (“sum of squares” of the independent variable)
      regr_sxy(YX) double precision double precision Yes sum({{X*Y) - sum(X) * sum(Y)/N}} (“sum of products”of independent times dependent variable)
      regr_syy(YX) double precision double precision Yes sum({{Y^2) - sum(Y)^2/N}} (“sum of squares” of the dependent variable)

      https://www.postgresql.org/docs/11/functions-aggregate.html#FUNCTIONS-AGGREGATE-STATISTICS-TABLE

      Attachments

        Activity

          People

            Unassigned Unassigned
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: