The Mathematics of Mistake