Ergodic theory investigates the statistical and qualatitive behaviour of a system. It originated in the study of statistical mechanics but now has applications in many other fields.