A method for evaluating statistical errors associated with logarithmic velocity profiles