A statistical treatment of biases affecting the estimation of mutation rates