Skip to content

Commit

Permalink
Add skew of chi.
Browse files Browse the repository at this point in the history
I'm not entirely convinced this is helpful as we do not make use of it
in the work.
  • Loading branch information
drvinceknight committed Jan 25, 2019
1 parent b929a88 commit dae8847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Binary file modified assets/img/sserror_in_stewart_plotkin/main.pdf
Binary file not shown.
12 changes: 4 additions & 8 deletions assets/img/sserror_in_stewart_plotkin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,10 @@ def main():
sorted_indices = summary_df.sort_values(column, ascending=False).index
data = [df[df["Player index"] == player_index][var] for player_index in sorted_indices]

if var == "chi":
ax.axhline(1, linestyle="--", color="black")
ax.scatter(X, list(map(np.mean, data)), color="black")
else:
ax.scatter(X, list(map(np.mean, data)), color="black", label="Mean")
ax.scatter(X, list(map(skew, data)), color="black", marker="+", label="Skew")
ax.axhline(0, color="black", linestyle="--")
ax.legend()
ax.scatter(X, list(map(np.mean, data)), color="black", label="Mean")
ax.scatter(X, list(map(skew, data)), color="black", marker="+", label="Skew")
ax.axhline(0, color="black", linestyle="--")
ax.legend()

sorted_players = [players[i].name for i in sorted_indices]
ax.set_xlabel("Strategies")
Expand Down

0 comments on commit dae8847

Please sign in to comment.