Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement risky bet simulation #6

Closed
5 tasks done
rlskoeser opened this issue Jun 14, 2023 · 0 comments
Closed
5 tasks done

implement risky bet simulation #6

rlskoeser opened this issue Jun 14, 2023 · 0 comments
Assignees

Comments

@rlskoeser
Copy link
Contributor

rlskoeser commented Jun 14, 2023

Game for grid: RISKY-BET
Fixed agents with random fixed risk attitudes (same as in RISKY-FOOD)
Everyone starts with $1000
Each round, you can go for SAFE, which keeps your same amount of money, or RISKY, which either multiplies your money by 0.5 or multiplies your money by 1.5.
Each round, there is a p probably of the RISKY bet paying off
Each agent has a risk attitude r, and will take the RISKY bet if p > r

After every 10 rounds, look at your neighbors (4). If anyone has more money than you, adopt their risk attitude [other possibilities: you could average between your risk attitude and theirs]. And then reset at $1000 each?? OR not, try both

Collect how distribution of risk attitudes changes over time. Visualize a grid in two colors (or spectrum of colors) or bins.
0-0.2, 0.2-0.4, 0.4-0.6, 0.6-0.8, 0.8-1

revisions after discussion and review in 2023-06-21 meeting:

  • add unit tests to confirm logic is implemented correctly
  • revise language / add comments to make logic clearer (risk attitudes, payoff)
  • check edge neighbor behavior (risk attitude not adjusting?)
  • use 11 bins for colors, based on the 0.5s, since 0, 1, and 0.5 are special cases (0-.05, .05-.15, .15-.25, .25-.35…)
  • document the simulation in a readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant