by Max Barry

Latest Forum Topics

Advertisement

3

DispatchMetaGameplay

by The City-State of Rho Ophiuchi. . 38 reads.

A treatise on the mathematical modeling of income inequality

Income inequality is one of the most confusing gameplay statistics. We know the average income, and we know the average incomes of the bottom 10% and the top 10%, but we do not know about anything in the middle. This is important, as the median income is much more important than the average in determining the quality of life in your nation. First, it should be noted that this is a statistical examination based on a mathematical model. This is not a guide on how to raise or lower income inequality in your country.

[b]The Model[/b]

Here, we will be using an income inequality model described by two parameters, χ and α. The model is I = χ/(1-P)^α, where I is income, P is proportion of the population are below you in income level, χ is the minimum income for a full-time worker, and α is the inequality parameter. It is closer to 1 with higher inequality, and closer to zero with lower inequality. Using this equation, we can calculate many of the parameters shown in NationStates, and some not shown, but that are important, using χ and α, by applying or integrating the formula shown above. It should be noted that this formula assumes a minimum income level, which is simply the constant χ. These derived formulas are shown in appendix A.

This model comes from a Stanford paper on modelling inequality (see references), the description of which is as follows. "It is well known that the upper tail of the income distribution follows a power law. One way of thinking about this is to note that income inequality is fractal in nature, as we document more carefully below. In particular, the following questions all have essentially the same answer: What fraction of the income going to the top 10 percent of earners accrues to the top 1 percent? What fraction of the income going to the top 1 percent of earners accrues to the top 0.1 percent? What fraction of the income going to the top 0.1 percent of earners accrues to the top 0.01 percent? The answer to each of these questions - which turns out to be around 40 percent in the United States today - is a simple function of the parameter that characterizes the power law." (Jones and Kim, 1786)

[b]Applications[/b]

As formulas for the average income (which we will call μ) and the average income of the rich (top 10%) divided by the average income of the poor (bottom 10%) (we will call this massive number ι) can be derived, and these formulas are the ones provided by NationStates, we can use them to derive the values of χ and α, and thus the rest of the formulas in appendix A can be expressed in terms of ι and μ. Unfortunately, the only way to compute these numbers is using numerical methods (such as newton's method), as the system of equations generated cannot be inverted using ordinary mathematical functions. The code required to do this is in appendix C.

[b]Results[/b]

As an example, Rho Ophiuchi has an average income of 88,084, and has ι, the "inequality score" equal to 14.2647. Using newton's method, we can calculate that χ = 28,383.9 and α = 0.677764. In contrast, the Municipalities of Antarctica has an average income of 199,607, and an "inequality score" equal to 1.20169. Using newton's method, we can calculate that χ = 177,408 and α = 0.111211. Found in appendix B are the other parameters, calculated form the derived χ and α values.

Notice how both the average income of the poor and the average income of the rich calculated using this model are higher than the displayed value in NationStates, when calculated from the income inequality and mean income. This is due to much less complex modelling being used in the internals of NationStates itself, and the values displayed here are likely more realistic.

[b]References[/b]

Jones, Charles, and Jihee Kim. [i]"A Schumpeterian Model of TopIncome Inequality."[/i] Journal of Political Economy, 2018, vol. 126, no. 5. https://web.stanford.edu/~chadj/inequality.pdf.

[b]Appendix A[/b]

[table]
[tr][td]Value Type[/td][td]Formula using χ and α[/td][td]Formula using ι and μ[/td][/tr]
[tr][td]Average income[/td][td]χ/(1-α)[/td][td]μ[/td][/tr]
[tr][td]Average income of poor (bottom 10%)[/td][td](1-0.9^(1-α))∙10χ/(1-α)[/td][td]N/A[/td][/tr]
[tr][td]Average income of rich (top 10%)[/td][td]10χ∙0.1^(1-α)/(1-α)[/td][td]N/A[/td][/tr]
[tr][td]Lowest income for a full-time job[/td][td]χ[/td][td]N/A[/td][/tr]
[tr][td]10th percentile income[/td][td]χ/0.9^α[/td][td]N/A[/td][/tr]
[tr][td]Median income[/td][td]χ/0.5^α[/td][td]N/A[/td][/tr]
[tr][td]90th percentile income[/td][td]χ/0.1^α[/td][td]N/A[/td][/tr]
[tr][td]99th percentile income[/td][td]χ/0.01^α[/td][td]N/A[/td][/tr]
[tr][td]Income of rich divided by income of poor[/td][td](0.1^(1-α))/(1-0.9^(1-α))[/td][td]ι[/td][/tr]
[/table]

[b]Appendix B[/b]

[table]
[tr][td]Value Type[/td][td]Rho Ophiuchi: (ι, μ) = (14.2647, 88,084)[/td][td]The Municipalities of Antarctica: (ι, μ) = (1.20169, 199,607)[/td][/tr]
[tr][td]α[/td][td]0.677764[/td][td]0.111211[/td][/tr]
[tr][td]χ[/td][td]28,383.9[/td][td]177,408[/td][/tr]
[tr][td]Average income[/td][td]84,084.2[/td][td]199,606[/td][/tr]
[tr][td]Average income of poor (bottom 10%)[/td][td]29,403.5[/td][td]178,433[/td][/tr]
[tr][td]Average income of rich (top 10%)[/td][td]419,432[/td][td]257,861[/td][/tr]
[tr][td]Lowest income for a full-time job[/td][td]28,383.9[/td][td]177,408[/td][/tr]
[tr][td]10th percentile income[/td][td]30,484.9[/td][td]179,499[/td][/tr]
[tr][td]Median income[/td][td]45,404.5[/td][td]191,624[/td][/tr]
[tr][td]90th percentile income[/td][td]135,156[/td][td]229,184[/td][/tr]
[tr][td]99th percentile income[/td][td]643,576[/td][td]296,090[/td][/tr]
[tr][td]Income of rich divided by income of poor[/td][td]14.2647[/td][td]1.20169[/td][/tr]
[/table]

[b]Appendix C[/b]

i = 14.2647#this is inequality
m = 88084.0#this is average income

import numpy as np

def f1x(x,y):
    f1x = 0
    return f1x
def f1y(x,y):
    f1y = (((0.1**(1-y)) + (0.1**(1-y) * y * np.log(10))) / (1-(9/10)**(1-y))) + (((0.09**(1-y) * y * np.log(10 / 9))) / (1-(9/10)**(1-y)) ** 2)
    return f1y
def f1(x,y):
    f1 = (0.1**(1-y))/(1-0.9**(1-y)) - i
    return f1
def f2(x,y):
    f2 = x/(1-y) - m
    return f2
def f2x(x,y):
    f2x = 1/(1-y)
    return f2x
def f2y(x,y):
    f2y = x/(1-y)**2
    return f2y
def j(x,y):#jacobian
    j = np.array([[f1x(x,y),f1y(x,y)],[f2x(x,y),f2y(x,y)]])
    return j
def fv(x,y):#vector function
    fv2 = np.array([f1(x,y),f2(x,y)])
    return fv2
def newton_i(xn,j,fv):# iteration of multivariable newton method
    x = xn[0]
    y = xn[1]
    x1 = x - np.matmul(np.linalg.inv(j(x,y)),fv(x,y))[0]
    y1 = y - np.matmul(np.linalg.inv(j(x,y)),fv(x,y))[1]
    xn1 = np.array([x1,y1])
    return xn1
xn = np.array([0.5,0.5])#starting point
x = [xn]# all x
xnm1 = [0,2]#previous estimate of x
iteration = 0
while iteration < 500:
    xnm1 = xn
    xn = newton_i(xn,j,fv)
    iteration += 1
    x.append(xn)
    error = np.linalg.norm(xn-xnm1)
print('The solution is',xn[0],xn[1],', which took',iteration,'iterations to produce. The 2-norm of the residual is',np.linalg.norm(fv(xn[0],xn[1])),'.')

The City-State of Rho Ophiuchi

Edited:

Report