Machine learning and statistical methods for physical systems