Live data from Hacker News

Building an economy simulator from scratch

thomassimon.dev

11–20 of 217 posts

Re: Building an economy simulator from scratch

#11

OT: I see economists of various ideological tilts constantly arguing about how macroeconomic variables will respond to specific government policies. You know: "this new tax will increase inflation; no it will not, it will increase unemployment". What I don't get is why there are no readily available online macroeconomic simulators with real world data that make these sort of predictions. For a lot of countries, up-to…

but but ... you cannot have data get in the way of good theory.

Re: Building an economy simulator from scratch

#13

OT: I see economists of various ideological tilts constantly arguing about how macroeconomic variables will respond to specific government policies. You know: "this new tax will increase inflation; no it will not, it will increase unemployment". What I don't get is why there are no readily available online macroeconomic simulators with real world data that make these sort of predictions. For a lot of countries, up-to…

Why do you think economics is as deterministic as particle physics? Why should a simulation be any more informative than an economist's assumptions?

Re: Building an economy simulator from scratch

#14

OT: I see economists of various ideological tilts constantly arguing about how macroeconomic variables will respond to specific government policies. You know: "this new tax will increase inflation; no it will not, it will increase unemployment". What I don't get is why there are no readily available online macroeconomic simulators with real world data that make these sort of predictions. For a lot of countries, up-to…

>[1] Much like the standard model of particle physics or of cosmology. Fairly dirty and complicated models with lots of tunable parameters.

Anyone capable of making models that can predict the future with a reasonable degree of accuracy is probably in finance, making 5-10x what they could in economics. The economy is an incredibly complex system, subject to emergent behaviour and chaotic effects, much more so than in physics. You'll see papers from the large hadron collider where they prove stuff to within p=0.000001; it's impossible to prove anything to that degree of confidence in economics. Especially because it's not possible to create true controlled experiments: you can't have two otherwise identical societies that differ by just one factor, rather there will always be other ways in which they differ to, and how these are accounted for can have a big effect on the output of models.

Re: Building an economy simulator from scratch

#15

Simulation 16 is hilarious. By the state dynamically scaling how much they print money in order to support government workers, government workers accumulate more wealth than the producers of goods.

Sounds like state workers in California

Re: Building an economy simulator from scratch

#16

OT: I see economists of various ideological tilts constantly arguing about how macroeconomic variables will respond to specific government policies. You know: "this new tax will increase inflation; no it will not, it will increase unemployment". What I don't get is why there are no readily available online macroeconomic simulators with real world data that make these sort of predictions. For a lot of countries, up-to…

> What I don't get is why there are no readily available online macroeconomic simulators with real world data that make these sort of predictions.

You aren't the first person to have this thought. It just turns out to be incredibly difficult.

Re: Building an economy simulator from scratch

#17
post #13

OT: I see economists of various ideological tilts constantly arguing about how macroeconomic variables will respond to specific government policies. You know: "this new tax will increase inflation; no it will not, it will increase unemployment". What I don't get is why there are no readily available online macroeconomic simulators with real world data that make these sort of predictions. For a lot of countries, up-to…

Why do you think economics is as deterministic as particle physics? Why should a simulation be any more informative than an economist's assumptions?

Particle physics isn't that deterministic either. It uses a lot of statistical tricks and hard engineering to reach its results. That's why there are so many physicists working as quants.

Re: Building an economy simulator from scratch

#18

Simulation 16 is hilarious. By the state dynamically scaling how much they print money in order to support government workers, government workers accumulate more wealth than the producers of goods.

Sounds like state workers in California

See LA lifeguards making $300k/yr https://lamag.com/news/the-highest-paid-lifeguard-in-l-a-mak...

Re: Building an economy simulator from scratch

#19
post #6

Is the source code for this simulator available anywhere? The post's code itself is minimized/obfuscated: https://thomassimon.dev/assets/cashloss.1fca21f6.js I couldn't find anything on the author's GitHub. I'm mostly just curious how it's built.

Author here, if there is enough interest I can clean the code up and put it on GitHub. It is basically a state machine.
Post reply on HN