120 points · by nabla9 · 10y ago · 88 comments
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.
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.
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.
Inequality seems to have a negative impact on economic growth.
http://www.oecd.org/els/soc/trends-in-income-inequality-and-...
Compare list of countries by net mean and median wealth.
https://en.wikipedia.org/wiki/List_of_countries_by_wealth_pe...
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.
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.
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.
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.
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.
<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.