The Mathematics of Human Misery