Does the data agree with the model? Calculate the distance between data and model predictions. Apply …