A few useful functions for statisticians