def collate_acceptance_ratios(acceptance_list):
    """
    Collate the running proportion of all runs that have been accepted from an MCMC chain.
    """

    count, n_total, ratios = 0, 0, []
    for n_accept in acceptance_list:
        n_total += 1
        if n_accept:
            count += 1
        ratios.append(count / n_total)
    return ratios