Economics Simulation
nbviewer.jupyter.org
nbviewer.jupyter.org
I like to say if your income is consistently growing at ~10% every year, when the economy is growing at 2-3%, you're likely making someone worse off. (Although that someone might be some billionaire in which case have at it).
That is like saying, "The average age of the country is growing at 0.1% per year while my age is growing at 4% per year, therefore I must be making someone else younger." Income usually increases over the course of a career, but in the end, people retire or die and stop contributing to the average.
Similarly, your hypothetical individual who 'makes someone worse off' must by definition be inheriting some scarce asset, be lucky, deceptive, coercive or inflicting negative externalities. Otherwise why would anyone trade with him?
This is not to say that inequality isn't a problem or greater redistribution would not be desirable. But you need to frame the problem correctly.
I know you're into finance. Are you familiar with the concept of a long-short hedge fund? If so, you should be comfortable with the idea of focusing on relative movement of two assets within an asset class, hedging against the absolute movement of the asset class as a whole.
Compare list of countries by net mean and median wealth.
https://en.wikipedia.org/wiki/List_of_countries_by_wealth_pe...
Net median wealth per adult.
Australia 219,505
Luxembourg 182,768
Belgium 148,141
France 141,850
Italy 138,653
United Kingdom 111,524
Japan 110,294
Iceland 104,733
Switzerland 95,916
Finland 95,095
Norway 92,859
Canada 90,252
Netherlands 83,631
New Zealand 76,607
Ireland 75,573
Spain 63,306
Denmark 57,675
Austria 57,450
Greece 53,937
Sweden 52,677
Germany 49,370
Slovenia 44,932
United States 44,911
...PS: US only has high wealth if you ignore debt. Owing 200k on a 200k house is not wealth.
Edit: Also the mean probably isn't defined for whatever power law is generating wealth distribution in each country anyway
Inequality seems to have a negative impact on economic growth.
http://www.oecd.org/els/soc/trends-in-income-inequality-and-...
2. To some degree, people do migrate to poorer areas and countries, including those of retirement age, to improve their perceived quality of life which is solely due to greater difference in wealth.
The greater difference in wealth may in fact hold them back, for fear of criminals with even less to lose than the criminals in their home country.
Of course they do. Retiring abroad in low cost locales is very common these days.
Wealth can be created or destroyed. Relative wealth has to operate in a sea of transactions that can either create wealth, destroy wealth, or, very rarely, maintain wealth.
In such a frothy environment how does the wealth of one entity hope to balance against all other wealth?
> How do you reckon?
... Basic mathematics? By definition, there's only and always 100% of the current-wealth to subdivide. Never 101%.
Your gain of +1% always means -1% somewhere else.
It is like saying you have 100% of the talent.
What can be said is that in most transactions both parties walk away with more value. It is guaranteed to be a positive sum game -- value is guaranteed to be created.
The violation of this rule tends to happen if one or both parties will lose some value if they do not make the transaction, in which case they will try to minimize loss rather than maximize gain as measured by the value they entered the transaction with. This is the essence of exploitation.
These more varied classes of transactions can be a positive sum game -- where one party gets more value than the other loses, a zero sum game where they cancel out or a negative sum game where one gains less value than the other loses or they both lose but less than they would without the transaction having taken place. It is not guaranteed to be a positive sum game and value could be destroyed overall.
This simulation, where wealth is maintained at a steady state not only overall but within every transaction, is not really possible.
Sure, money can't buy happiness, humans are weird about non-transitive preferences (if a is preferred to b and b is preferred to c, it turns out that sometimes c is preferred to a), and some things like ethics end up at infinite dollar value... but whatever, this is just a model. You can make it as complex/realistic as you think is necessary.
I would say that the simulation is actually generous. Wealth is correlated with power. Power creates opportunities for exploitation. I know of very few examples where this is not the case.
Wealth is correlated with power but that power is not necessarily only directed against other rational actors but the environment and circumstance, too. So it makes sense to see power as an increasing or decreasing value overall with time.
100% power in 1500 A.D. is very different than 100% power now (if percentage of power makes sense at all considering how dependent it is on circumstance).
The other thing about power is that there are power singularities. If I can cause the death or pain of another as part of a transaction either actively (gun to the head) or passively (they will starve without the transaction taking place), that person will spend almost any amount of value to avoid that fate. This kind of exploitation should be taken into account.
Power does not always, or even most of the time, create opportunities for exploitation. If someone has some base level of power to avoid the singularities as described above they can have transactions with more powerful entities that are not exploitative at all but of mutual value gained benefit.
Hitting a perfect zero sum game is a very simplified case and only useful as a rough approximation because most transactions are merely /close/ to zero sum with some value add otherwise the market would rush in to narrow the gap.
So, a more interesting model would take both the creation and destruction of wealth into account as well as the opportunities for exploitation (since, while those are not the bulk of transactions, in today's world they are still incredibly common).
This would be more interesting because it would show 1) how various levels power changes over time beyond the relative measure and 2) how prone each group is to exploitation.
If certain conditions lead to the lowest tier group having increasing power over time and reduce their exploitation potential but lead to large increases in the gap of relative power, that would be a much better outcome than if they have less overall power and are in more exploitable conditions but their gap of relative power is smaller, for example.
Your summary seems to focus too much on early thinkers, and doesn't address the full development of classical theory which took until the 1950's.
But there's no reason to assume the degree of benefit is the same for each participant, and intuitively I think a more realistic net-positivr transaction rule with the gain randomly distributed would have distributionally similar results.
A good simulation tries to pare down the system, not getting distracted by other mechanisms that don't change the basic dynamics. For example, it'd be more realistic if the transactions were partially parallelized, but that wouldn't change the analysis much.
This is a teaching tool to show a general approach for economic modelling.
The context is http://norvig.com/ipython/README.html - it's part of Peter Norvig's continual exploration of machine learning and AI approaches.
It isn't intended to me a comprehensive economic simulation.
A few months ago, I started looking into simulating economics while researching the housing situ in the Bay Area. I found that the NetLogo package is commonly used to simulate economics by sociologists.
NetLogo https://ccl.northwestern.edu/netlogo/
An example implementation:
NetLogo: Economic Disparity http://ccl.northwestern.edu/netlogo/models/UrbanSuite-Econom...
Other questions: would it make sense to use the level of a basic income to stimulate the economy, rather than the fiscal stimulus to banks? Does a basic income or a progressive tax put a max on the wealthys' income in some non-obvious way, or just reduce it? Is there an economist who has applied control theory (i.e. the Kalman filter) to economics?
I sure hope more economists study these methods because the standard models in Public Economics/Taxation are hopelessly inadequate, if not negligent.
A Nobel Memorial Prize winning economist by the name of James Mirrlees came up with a theory for optimum income taxation in the 1970s that is still used by governments today. It suggested that a relatively flat tax would be optimal rather than the progressive rates then in vogue. Unfortunately, his model is hopelessly incorrect as it essentially assumes that the general shape of the (pre-tax) income distribution is constant. Its starting point is that if you tax people too much, they will just work less than their untaxed income earning potential, hindering your ability to raise taxes.
In reality, progressive tax rates alter the ability of the wealthy to accumulate capital, which alters the Pareto coefficient (power-law constant) of the high-income tail, drastically changing the number of very-wealth individuals and benefiting the bottom 90%. If you tax too regressively, wealth can concentrate and even "condense" in the wealthy -- essentially shifting all earning capacity to a few. This happens because there exist power-law coefficients for high incomes that are not integrable. Beyond a tipping point, wealth will just continue to "condense" in the wealthiest actors.
You can find detailed tax schedules and inequality data for the US for the last century. The details of the actor-interactions are not that important, much like molecular interactions do not make a qualitative difference in statistical mechanics. In fact, analytical stochastic models may be easier to calculate, although they are less flexible.
Income tax progression can explain a large part of the variation, but not all. There are other important factors such as union participation, war-time expropriation, and lending terms. Nevertheless, the income tax schedule is important and easy to change.
The "transactions" might not have to be purely monetary for things to work out this way. We could include interactions where the winner gets privileges and status, later to be translated into economic wealth.
Btw Jupyter Notebook is so cool for things like this.
In the common case: Two people come together and trade because each feels they get more value after the transaction than before the transaction. Positive sum.
In a less common case: Two people get come together and trade because without the trade one of them would lose more than the value they spend on the transaction and the other one gains value. For example, if you have a gold watch but you are hungry and have no cash and I have food you might trade that watch for a sandwich. Also not a zero sum game. In this example a negative sum but I could imagine a positive sum where the one party gains more value than the other stands to lose after the transaction is complete. Say, you need to pay some workers on your construction crew and you have a generator that is normally worth about $50K and you sell it to me for cash at $40K. I, in turn, use that generator to do my job worth $100K that I wouldn't be able to complete without it..etc. It can get complicated.
A zero sum transaction would have one person losing the exact value the other person gains. A very odd and rare case I would guess.
Theft or armed robbery are transactions. They typically reduce overall wealth.
There are numerous highly persistent behaviors, including play, entertainment, sleep, drugs consumption, recreational physical activity in excess of all training response stimulus requirements, etc., which nonetheless continue.
While I'm not certain that all are beneficial, and I have a difficult time myself accepting certain of these, I suspect they play a useful and possibly even vital psychological role for those undertaking them.
Even explaining these as coping mechanisms for underlying pathologies isn't particularly satisfying.
<sarcasm>There is also financial capital (fancy word for money) and it's primary purpose is getting more financial capital. Buying land, labor or physical capital are secondary.</sarcasm>
Economic theory suggests that agents would not willingly consent to transactions with negative expected returns and there are plenty of examples of mutually beneficial transactions in the real world (most goods I buy I would have been happy to pay more and the shop makes a profit).
In this context, it would be interesting to see the tradeoff between efficiency and equality with different allocation rules (and resulting transaction frequencies). This could in some way relate to the optimal taxation literature....
Economists understand the theories behind money and wealth creation much better than us but--as far as I've seen--they aren't richer than average university-educated people.
Isaac Asimov was trained as a chemist before becoming a science fiction writer. He relates the story where someone asked him what kind of glue to use for gluing together certain materials. Asimov said he had no idea, and the person walked away shaking his head and presumably thinking "some chemist this guy is".
Understanding glues and adhesion is at least one level of abstraction higher than knowing fundamentals of chemistry.
Richard Feynman also had a great essay about how understanding quantum physics doesn't allow you to figure out everyday physics questions (eg., At what temperature does gold melt?). In theory it should be possible to derive the melting point of gold from quantum physics, but it's impossibly difficult to do so.
Likewise, creating wealth (doing business, trading stocks, etc.) is probably several levels of abstraction higher than knowing the theories behind wealth creation.
Building abstractions when your foundation is questionable is building a house a house on sand. Don't be surprised when it collapses, as it did in 2008, and the spectre of wealth you perceive reveals itself as an illusion.
Says economics majors have 4th highest starting salary. Computing is 1st.
It's hypocritical too, because institutions like Bard and UMKC are home to a lot of heterodox economists who rant and rave against the neoclassical orthodoxy for making unrealistic assumptions, and then they pull off rigged pseudo-Paretian chicanery like this. An economy of zero transaction cost spot-exchanging automatons without so much as a capital stock.
This is nothing but a political provocation.
Don't read too much politics into it.
There's no way I can encode a dynamic disequilibrating market process in this, and it'd be a fool's errand to treat models like this as having to say anything about real-world policy. Capital accumulation is far too dynamic a process to lead to rich-get-richer outcomes, anyway. See Capital and Its Structure (1956).
Then what kind of models should have something to say about policy? Simulations tend to emulate the observed phenomena of economies much better than traditional systems-of-equations models.
> There's no way I can encode a dynamic disequilibrating market process in this
Have you tried? There are plenty of easy examples in complex systems literature. We could probably find a simple non-linear mechanism to add to Norvig's model to make the equilibrium unstable. He's already got a bit of randomness, so the two combined would create dynamic disequilibrium. One of my favorite additions would be the possibility of catastrophic loss. Check out what happens to the dynamics when a transaction periodically results in the loss of all assets involved.
> Capital accumulation is far too dynamic a process to lead to rich-get-richer outcomes
That's a strange sort of statement. Are you saying this rich-get-richer phenomenon is an illusion or that because we can observe some counter examples one shouldn't make the rich-get-richer claim despite the general tendency? If the latter, that's like saying the stock market doesn't exhibit momentum because it sometimes changes direction.
Please let me know your thoughts:
I agree that the concentration of wealth reflected in the charts shows that, at any point of time, the person at the 1st percentile owns an increasing fraction of the total wealth. However, this same person is very likely to be almost immediately spoliated by the subsequent transaction, and give all its wealth to someone (maybe the poorest person).
In summary, there is a lot of social mobility, as can be revealed by commenting out the following line in the code (essentially, we now track the financial path of specific individuals, rather than the wealth of various percentiles):
def record_percentiles(population, percentiles): #population = sorted(population, reverse=True) N = len(population) return [population[int(p*N/100.)] for p in percentiles]
So, it seems to me that, on average, everyone is equal over time, but each instant offers every participant dramatic ups and downs.
Not sure if I am missing something.
I guess it's interesting to simulate this to get a feel for how such a market system would work. It would be interesting to play around with a rudimentary system of taxation. Maybe something as simple as "take 10% from each pot and evenly distribute it among the poorest actors currently around" as a starting point.
Maybe it's because I randomly got interested in the French Liberals and am reading through "Economic Harmonies" but I'd be very interested in a model of "island economics". With a number of actors that have a list of preferences of items and only exchange if both are better of according to their list. In my mind it escalates quickly because I want to add the need to eat, production etc.
Here's another paper on the subject, if anyone's interested:
Doran & Parberry - Emergent Economies for Role Playing Games
https://larc.unt.edu/techreports/LARC-2010-03.pdf
I wrote an open source implementation of it once, was pretty fun.
I once tried to run a tabletop RPG at a convention based on an agent-based economic simulation.
I ended up coding all night on the night before the game, not managing to get my simulation not to diverge, and running a great game anyway :)
This is not econometrics.