Extreme events: dynamics, statistics and prediction