Understanding how the brain predicts could make treating autism easier

Our brains make our lives easier by predicting what will happen next based on previous experiences. But what happens when those predictive powers don't work like they should?