Add calculation of error matrix and covariance to probability model.