Statistics for The determination of structured Hessian matrices via automatic differentiation