Predictability: Definition, Analysis and Optimization