Skip to content

would like AvgWeighted, var*Weighted, and stddev*Weighted functions #2014

Closed

Description

@bubaflub

Hi,

I'd like to request some new functions. There are quantile*Weighted functions but no Weighted functions for simple statistics like average, variance, and the standard deviation. I can do the weighting calculation in the query but I think functions would be easier to use, read, and understand.

Thanks!

Activity

  1. bubaflub commented on Mar 9, 2018

    @bubaflub
    Author

    If folks think it is a good idea I can put a PR up that implements what I'm suggesting.

  2. alexey-milovidov commented on Mar 9, 2018

    @alexey-milovidov
    Member

    I think, it is good idea!
    Looking forward for PR.

  3. bubaflub commented on Mar 12, 2018

    @bubaflub
    Author

    Great. I'm thinking about implementing:

    • CountWeighted
    • SumWeighted
    • AvgWeighted
    • varSampleWeighted
    • varPopWeighted
    • stddevSampleWeighted
    • stddevPopWeighted

    I can add tests and documentation in English as well.

  4. alexey-milovidov commented on Mar 12, 2018

    @alexey-milovidov
    Member

    Ok.

    Please be careful with naming. As we have function sum, the weighted should be named sumWeighted, and as we have varSamp, the weighted should be named varSampWeighted.

  5. Slind14 commented on Sep 8, 2018

    @Slind14

    At this point one could also consider adding a function for a T-Test (mean, std. dev., count, confidence) as well as T-Test(x, confidence)

  6. leif-larsen commented on Oct 23, 2018

    @leif-larsen

    Has this been implemented yet?

  7. alexey-milovidov commented on Oct 23, 2018

    @alexey-milovidov
    Member

    No.

  8. deleted a comment from stale on Dec 13, 2019
  9. added
    not planned
    on Nov 7, 2023
  10. added a commit that references this issue on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    not planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions