A Probabilistic Theory of Deep Learning