Standard deviation does not work as expected

Moved from GitHub dgraph/5339

Posted by sleto-it:

What version of Dgraph are you using?


Have you tried reproducing the issue with the latest release?

What is the hardware spec (RAM, OS)?

Steps to reproduce the issue (command/config used to run Dgraph).

See Standard Deviation and comment from Pawan

Expected behaviour and actual result.