Stochastic Models for Learning