Learning and statistical inference