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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to