statsmodels.tools.numdiff.approx_hess2
statsmodels.tools.numdiff.approx_hess2(x, f, epsilon=None, args=(), kwargs={}, return_grad=False) [source]
Calculate Hessian with finite difference derivative approximation Parameters:
x : array_like value at which function derivative is evaluated f : function function of one array f(x, *args, **kwargs) epsilon : float or array-like, optional Stepsize used, if None, then stepsize is automatically chosen according to EPS**(1/3)*x. args : tuple Ar