Source: https://www-elec.inaoep.mx/~rogerio/ComputationalStatistics.pdf