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 food simulation #3

Closed
rlskoeser opened this issue May 25, 2023 · 1 comment
Closed

implement risky food simulation #3

rlskoeser opened this issue May 25, 2023 · 1 comment
Assignees

Comments

@rlskoeser
Copy link
Contributor

rlskoeser commented May 25, 2023

Game: risky food source is 3 if N, 1 if C; safe source is 2

(non-contaminated / contaminated)

Every agent gets a parameter r between 0 and 1.  [or DISCRETE: 8 buckets etc.]

EACH ROUND:
Nature selects a probability p for N
For each agent: if r > p, then they choose RISKY; else SAFE
Nature flips a coin with bias p for N, and announces N or C
If N: everyone who chose RISKY gets 3, everyone who chose SAFE gets 2
If C: everyone who chose RISKY gets 1, everyone SAFE 2
Reproduce in proportion to payoff
Either agent gets # of offspring = payoff [they replace–original “dies off”]
OR: take the total payoff for RISKYs over total for everyone, there are that proportion of RISKYs in the new population

END ROUND

SEE: We’ll see what are the risk attitudes that are replicated more and less over time

@rlskoeser
Copy link
Contributor Author

initial implementation completed in #4

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