Dynamic Process: With Some Expressive Voters (C.7)
[1]:
from matplotlib import pyplot as plt
from poisson_approval import *
[2]:
N_SAMPLES = 10000
N_MAX_EPISODES = 1000
[3]:
rand_profile = RandProfileHistogramUniform(n_bins=1, ratio_fanatic=0.5)
[4]:
results = monte_carlo_fictitious_play(
factory=rand_profile,
n_samples=N_SAMPLES,
n_max_episodes=N_MAX_EPISODES,
voting_rules=VOTING_RULES,
init='random_tau',
monte_carlo_settings=[
MCS_WELFARE_LOSSES,
],
file_save='sav/with_expressive_voters_0.5.sav',
)
[5]:
plot_welfare_losses(results, 'utilitarian_welfare_losses')
plt.savefig('img/fUWelfareF5.png', dpi=600, bbox_inches="tight")
[6]:
plot_welfare_losses(results, 'plurality_welfare_losses')
plt.savefig('img/fPLWelfareF5.png', dpi=600, bbox_inches="tight")
[7]:
plot_welfare_losses(results, 'anti_plurality_welfare_losses')
plt.savefig('img/fAPLWelfareF5.png', dpi=600, bbox_inches="tight")