Dynamic Process: Single-Peaked Profiles (C.1)
[1]:
from poisson_approval import *
[2]:
N_SAMPLES = 10000
N_MAX_EPISODES = 1000
[3]:
RANKINGS_SP = ['abc', 'acb', 'bac', 'cab']
[4]:
rand_profile = RandProfileHistogramUniform(n_bins=1, orders=RANKINGS_SP)
Condorcet consistency:
[5]:
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_FREQUENCY_CW_WINS
],
file_save='sav/single_peaked_profiles.sav',
)
[6]:
float(results[APPROVAL]['mean_frequency_cw_wins'])
[6]:
0.9924
[7]:
float(results[PLURALITY]['mean_frequency_cw_wins'])
[7]:
0.6608
[8]:
float(results[ANTI_PLURALITY]['mean_frequency_cw_wins'])
[8]:
0.7468768805486792