Why and how to predict the probability of collapse of buildings