Statistical functions

There’s now a way to do this, see here for an example.