def compute_grad(data):
    """
    Computes the Error Gradient Drop for any arbitrary error vector

    Args:
    data (list): error vector

    Returns: error_drop (float)
    """

    error_grad_drop = data[0] / data[-1]
    return error_grad_drop