Bayes theorem, the geometry of changing beliefs