The Geometry of Chance: on the theory of non-equilibrium statistical mechanics