def bayeselo_to_probability(elo, draw_elo):
    """
    elo is expressed in BayesELO (relative to the choice draw_elo).
    Returns a probability, P['win'], P['loss'], P['draw']
    """
    probability = {
        'win': 1.0 / (1.0 + pow(10.0, (-elo + draw_elo) / 400.0)),
        'loss': 1.0 / (1.0 + pow(10.0, (elo + draw_elo) / 400.0)),
    }
    probability['draw'] = 1.0 - probability['win'] - probability['loss']
    return probability