A Computational Approach to Statistical Learning