def deriv2(self, p):
    "\n        Second derivative of the logit function.\n\n        Parameters\n        ----------\n        p : array_like\n            probabilities\n\n        Returns\n        -------\n        g''(z) : ndarray\n            The value of the second derivative of the logit function\n        "
    v = (p * (1 - p))
    return (((2 * p) - 1) / (v ** 2))
Second derivative of the logit function.

Parameters
----------
p : array_like
    probabilities

Returns
-------
g''(z) : ndarray
    The value of the second derivative of the logit function
def deriv2(self, p):
    "\n        Second derivative of the logit function.\n\n        Parameters\n        ----------\n        p : array_like\n            probabilities\n\n        Returns\n        -------\n        g(z) : ndarray\n            The value of the second derivative of the logit function\n        "
    v = (p * (1 - p))
    return (((2 * p) - 1) / (v ** 2))