def normal_log_deriv(x, mu, sig):
    """
    Derivative of the log of the normal distribution with respect to x
    :param x: value to be tested
    :param mu: mean
    :param sig: variance
    :return: d/dx
    """
    return (-2.0 * x + mu) / (2 * sig ** 2)