Ecological context and the probability of mistakes underlie speed choice