I used differential evolution to determine the interatomic potential parameters of a model by minimizing a objective function that is the sum of the squared difference of experimental and calculated values of a set of properties. Now I'm trying to calculate the covariance matrix (and correlation matrix) for the fitted parameters. Is there a method for numerically calculate this matrix by probing the objective function? I've been able to numerically calculate the Hessian at the minimum and tried to use it's inverse as the covariance matrix, but the resulting correlation matrix has values that are outside the range (-1,1) so I'm no confident it is correct.