Functions for Computational Statistics