Useful statistics helper functions