Random Processes and learning