“Why do bad things happen to good people?”
There are various answers, and Christian and Griffiths book ‘Algorithms to Live By’ is one of them.
Algorithms to Live By answers for instance, why good people marry badly: because the best chance they have at finding the right partner, under some strict assumptions, is 37%; why is, what is right for the whole not necessarily right for the individual and in fact considered irrational; why trying new things and giving others the benefit of the doubt is the right thing to do, but will most likely turn out ‘bad’.
In life good people make what they consider to be good decisions only to find their decisions go against them, often to ridicule. By knowing the chances we had for a better result, we may come to a more realistic realisation about what decisions we could have made rather than a utopia where we expect to be 100% right 100% of the time.
If you are one of those people, and are interested in Computer Science and Math, then I recommend Algorithms to Live By by Christian and Griffiths.