A Geometrical Version of Bayes' Theorem