Predicting Extreme Events in Finance, Internet Traffic, and Weather