def processAndersonDarlingResults(ad_results):
    """ Return a nice string of Anderson-Darling test results

    Parameters
    ----------
    ad_result : tuple or namedtuple
        The packed output from scipy.stats.anderson

    Returns
    -------
    result : str
        A string representation of the confidence in the result.

    """

    AD, crit, sig = ad_results
    try:
        ci = 100 - sig[AD > crit][-1]
        return "%0.1f%%" % (ci,)
    except IndexError:
        ci = 100 - sig[0]
        return "<%0.1f%%" % (ci,)