Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2017 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4f6c546a776a8ab142235c861738a5bb to your computer and use it in GitHub Desktop.
Save anonymous/4f6c546a776a8ab142235c861738a5bb to your computer and use it in GitHub Desktop.
Results of random economic sim with and without growth
A simple (spherical cow) run:
0.54453301429749 seconds elapsed for 36500 rounds with 100 people.
Quartiles:
0%: $3.00
25%: $32.00
50%: $67.00
75%: $157.00
100%: $407.00
Standard Deviation: $87.81
Histogram:
$3.00 - $23.20 : 16
$23.20 - $43.40 : 18
$43.40 - $63.60 : 15
$63.60 - $83.80 : 7
$83.80 - $104.00 : 7
$104.00 - $124.20 : 4
$124.20 - $144.40 : 2
$144.40 - $164.60 : 12
$164.60 - $184.80 : 1
$184.80 - $205.00 : 4
$205.00 - $225.20 : 6
$225.20 - $245.40 : 2
$245.40 - $265.60 : 0
$265.60 - $285.80 : 2
$285.80 - $306.00 : 0
$306.00 - $326.20 : 1
$326.20 - $346.40 : 0
$346.40 - $366.60 : 2
$366.60 - $386.80 : 0
$386.80 - $407.00 : 1
Starting Population: 100
Final Population: 100
Starting Wealth: $10,000.00
Final Wealth: $10,000.00
Min: $3.00
Median: $67.00
Mean: $100.00
Max: $407.00
With growth:
1.2559499740601 seconds elapsed for 36500 rounds with 100 people.
Quartiles:
0%: $0.69
25%: $152.89
50%: $1,908.81
75%: $44,754.25
100%: $133,703.97
Standard Deviation: $34,036.67
Histogram:
$0.69 - $6,685.86 : 156
$6,685.86 - $13,371.02 : 11
$13,371.02 - $20,056.19 : 6
$20,056.19 - $26,741.35 : 9
$26,741.35 - $33,426.51 : 8
$33,426.51 - $40,111.68 : 8
$40,111.68 - $46,796.84 : 8
$46,796.84 - $53,482.01 : 3
$53,482.01 - $60,167.17 : 8
$60,167.17 - $66,852.33 : 12
$66,852.33 - $73,537.50 : 6
$73,537.50 - $80,222.66 : 9
$80,222.66 - $86,907.83 : 6
$86,907.83 - $93,592.99 : 6
$93,592.99 - $100,278.15 : 4
$100,278.15 - $106,963.32 : 3
$106,963.32 - $113,648.48 : 2
$113,648.48 - $120,333.65 : 2
$120,333.65 - $127,018.81 : 1
$127,018.81 - $133,703.97 : 2
Starting Population: 100
Final Population: 270
Starting Wealth: $10,000.00
Final Wealth: $6,515,960.78
Min: $0.69
Median: $1,908.81
Mean: $24,133.19
Max: $133,703.97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment