Divided Preferences: Plurality (5.2.3)

[1]:
from matplotlib import pyplot as plt
from poisson_approval import *
[2]:
SCALE = 25
SAMPLES_PER_POINT = 1000
N_MAX_EPISODES = 1000
[3]:
divided_majority_pl = SimplexToProfile(
    ProfileHistogram,
    right_type=('cab', (1, )),
    top_type=('abc', (1, )),
    left_type=('bac', (1, )),
    d_type_fixed_share={('cba', (1, )): 0.2},
    voting_rule=PLURALITY
)
[4]:
ternary_plot_winning_frequencies(
    divided_majority_pl,
    scale=SCALE,
    init='random_tau',
    samples_per_point=SAMPLES_PER_POINT,
    n_max_episodes=N_MAX_EPISODES,
    title='',
    legend_title='Winners',
    file_save_data='sav/DM_PL.sav',
)
plt.savefig('img/fDM_PL.png', dpi=600, bbox_inches="tight")
../_images/notebooks_article_Divided_Preferences_PL_(5.2.3)_4_0.png