'Second derivative of the logit function.
Parameters
p : array-like
probabilities
Returns
g\'\'(z) : array
The value of the second derivative of the logit function'

def deriv2(self, p):

    v = (p * (1 - p))
    return (((2 * p) - 1) / (v ** 2))
