You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/04/05 08:37:19 UTC

[GitHub] [pinot] richardstartin commented on issue #3851: Support variance and stddev aggregation

richardstartin commented on issue #3851:
URL: https://github.com/apache/pinot/issues/3851#issuecomment-1088426263

   You'll probably run into problems with numerical stability but you can compute the variance with 
   
   ```sql
   select avg(pow(expression, 2)) - pow(avg(expression), 2)) 
   ```
   
   and the standard deviation 
   
   ```sql
   select sqrt(avg(pow(expression, 2)) - pow(avg(expression), 2))) 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org