Statistics for Failure Prediction - An Application in the Railway Industry