def calc_com_probs(messages, rollouts):
    """
    This function will calculate the empirical communication probabilities.
    :param messages: The messages that were sent.
    :param rollouts: The number of rollouts that were performed.
    :return: The communication probabilities for each agent.
    """
    com = sum(message is not None for message in messages)
    no_com = (rollouts - com)
    return [com/rollouts, no_com/rollouts]