Ergodic Theory & Statistical Mechanics