Comment puis-je prouver analytiquement que la division aléatoire d'un montant entraîne une distribution exponentielle (de revenu et de richesse, par exemple)?


36

Dans cet article actuel de SCIENCE, on propose ce qui suit:

Supposons que vous divisez au hasard 500 millions de revenus sur 10 000 personnes. Il n'y a qu'un moyen de donner à chacun une part égale, 50 000 actions. Donc, si vous distribuez vos gains au hasard, l’égalité est extrêmement improbable. Mais il y a d'innombrables façons de donner à quelques personnes beaucoup d'argent et un peu ou rien à beaucoup de gens. En fait, compte tenu de tous les moyens possibles de diviser le revenu, la plupart d’entre eux produisent une distribution exponentielle du revenu.

Je l'ai fait avec le code R suivant qui semble confirmer le résultat:

library(MASS)

w <- 500000000 #wealth
p <- 10000 #people

d <- diff(c(0,sort(runif(p-1,max=w)),w)) #wealth-distribution
h <- hist(d, col="red", main="Exponential decline", freq = FALSE, breaks = 45, xlim = c(0, quantile(d, 0.99)))

fit <- fitdistr(d,"exponential")
curve(dexp(x, rate = fit$estimate), col = "black", type="p", pch=16, add = TRUE)

entrez la description de l'image ici

Ma question
Comment puis-je prouver analytiquement que la distribution résultante est effectivement exponentielle?

Addendum
Merci pour vos réponses et vos commentaires. J'ai réfléchi au problème et ai développé le raisonnement intuitif suivant. En gros, voici ce qui se passe (attention: simplification excessive à l’avance): vous montez en quelque sorte le montant et lancez une pièce (biaisée). Chaque fois que vous recevez par exemple des têtes, vous divisez le montant. Vous distribuez les partitions résultantes. Dans le cas discret, le tirage au sort suit une distribution binomiale, les partitions sont distribuées géométriquement. Les analogues continus sont la distribution de poisson et la distribution exponentielle respectivement! (Par le même raisonnement, on comprend aussi intuitivement pourquoi la distribution géométrique et la distribution exponentielle ont la propriété d'être sans mémoire - parce que la pièce n'a pas de mémoire non plus).


3
Si vous donnez l'argent un par un, il y a plusieurs façons de le distribuer également et beaucoup d'autres pour le distribuer presque également (par exemple, une distribution presque normale avec une moyenne de et un écart type proche de 224 )50000224
Henry

@ Henry: Pourriez-vous s'il vous plaît décrire cette procédure un peu plus. Surtout qu'entendez-vous par "un à un"? Peut-être pourriez-vous même fournir votre code. Merci.
vonjd

vonjd: Commencez avec 500 millions de pièces. Attribuez chaque pièce indépendamment et au hasard entre 10 000 individus avec une probabilité égale. Additionnez le nombre de pièces que chaque individu obtient.
Henry

@ Henry: La déclaration initiale indiquait que la plupart des moyens de distribuer l'argent rapportent une distribution exponentielle. Les méthodes de distribution de l'argent et les méthodes de distribution des pièces ne sont pas isomorphes, car il n'y a qu'une seule manière de distribuer 500 000 000 $ de manière uniforme sur 10 000 personnes (donnez 50 000 $ chacune ), mais il existe 500 000 000! / ((50 000!) ^ 10 000) de distribuer 50 000 pièces à chacune des 10 000 personnes.
Supercat

1
@ Henry Dans le scénario que vous avez décrit dans le commentaire le plus élevé, il est défini dès le début que chaque personne a une probabilité égale d'obtenir la pièce. Cette condition attribue effectivement un poids énorme à la distribution normale, plutôt que de considérer également différentes manières de distribuer les pièces.
higgsss

Réponses:


27

Pour simplifier le problème, considérons le cas où les valeurs autorisées de la part de chaque personne sont discrètes, par exemple, des entiers. De manière équivalente, on peut également imaginer de diviser "l'axe des revenus" en intervalles réguliers et d'approximer toutes les valeurs comprises dans un intervalle donné par le point milieu.

En désignant le revenu total par , la s -th valeur autorisée par x s , le nombre total de personnes par N et enfin le nombre de personnes possédant des actions de x s en tant que n s , les conditions suivantes doivent être remplies: C 1 ( { n d' } ) Σ de la n s - N = 0 , et C 2 ( { n s } ) Σ s n sXsxsNxsns

C1({ns})snsN=0,
C2({ns})snsxsX=0.

Notez que de nombreuses manières différentes de diviser le partage peuvent représenter la même distribution. Par exemple, si nous envisagions de diviser 4 dollars entre deux personnes, donner 3 dollars à Alice et 1 dollar à Bob et vice-versa donnerait des distributions identiques. Comme la division est aléatoire, la distribution avec le nombre maximal de manières correspondantes de diviser le partage a la meilleure chance de se produire.

Pour obtenir une telle distribution, on doit maximiser sous les deux contraintes données ci-dessus. La méthode des multiplicateurs de Lagrange est une approche canonique pour cela. De plus, on peut choisir de travailler aveclnWau lieu dewlui-même, car "ln" est une fonction croissante monotone. C'est, lnW

W({ns})N!sns!,
lnWWlnλ1,2sont des multiplicateurs de Lagrange. Remarquez que selonla formule de Stirling, lnn! nlnn-n, conduisant à dlnn!
lnWns=λ1C1ns+λ2C1ns=λ1+λ2xs,
λ1,2
lnn!nlnnn,
Ainsi, lnW
dlnn!dnlnn.
lnWnslnns.
nsexp(λ1λ2xs),
N=snssexp(λ1λ2xs)1Δx0exp(λ1λ2x)dx=1λ2Δxexp(λ1),
Δx
X=snsxssxsexp(λ1λ2xs)1Δx0xexp(λ1λ2x)dx=1λ22Δxexp(λ1).
Therefore, we have
exp(λ1)=N2ΔxX,
and
λ2=NX.
That this is really a maximum, rather than a minimum or a saddle point, can be seen from the Hessian of lnWλ1C1λ2C2. Because C1,2 are linear in ns, it is the same as that of lnW:
2lnWns2=1ns<0,
and
2lnWnsnr=0(sr).
Hence the Hessian is concave, and what we have found is indeed a maximum.

The function W({ns}) is really the distribution of distributions. For distributions we typically observe to be close to the most probable one, W({ns}) should be narrow enough. It is seen from the Hessian that this condition amounts to ns1. (It is also the condition that Stirling's formula is reliable.) Therefore, to actually see the exponential distribution, partitions in the income axis (corresponding to bins in OP's histogram) should be wide enough so that number of people in a partition is much greater than unity. Towards the tail, where ns tends to zero, this condition is always destined to fail.

Note: This is exactly how physicists understand the Boltzmann distribution in statistical mechanics. The exponential distribution is essentially exact for this case, as we consider N1023.


1
Thank you, please have a look at Glen_b's answer. Is this consistent with your answer?
vonjd

2
@vonjd You're welcome! I think that his answer is consistent with mine. To me it seems that he is making an analogy to the Poisson process in the following sense: Consider a Poisson process with the "average time interval" of 50,000, and count 10,000 events. Then, on average, the "total time interval" is 50,000 x 10,000 = 500 million.
higgsss

2
@vonjd I updated my answer. Most notably, I added the discussion on the condition that the distribution we typically observe is something close to the most probable distribution.
higgsss

2
When considering discrete cases, would it be helpful to observe that T things can be divided among N people ((N+T-1) choose (N-1)) ways? If the first person receives f things, the number of ways one can distribute the remainder is ((N+T-f-2) choose (N-2)); the sum of that for values of f from 0 to N is the total number of ways of distributing everything.
supercat

1
@supercat It looks like another way to derive the exponential distribution to me. Suppose that TN,f (we consider the values of f that are not close to the tail of the distribution). Then, (N+Tf2) choose (N2)=(N+Tf2)!/(N2)!/(Tf)! (N+Tf2)!/(Tf)!(Tf)N2TN2e(N2)f/T.
higgsss

17

In fact you can prove it's not actually exponential, almost trivially:

Compute the probability that a given share is greater than 500 million. Compare with the probability that an exponential random variable is greater than 500 million.

However, it's not too hard to see that for your uniform-gap example that it should be close to exponential.

Consider a Poisson process - where events occur at random over along some dimension. The number of events per unit of the interval has a Poisson distribution, and the gap between events is exponential.

If you take a fixed interval then the events in a Poisson process that fall within it are uniformly distributed in the interval. See here.

[However, note that because the interval is finite, you simply can't observe larger gaps than the interval length, and gaps nearly that large will be unlikely (consider, for example, in a unit interval - if you see gaps of 0.04 and 0.01, the next gap you see can't be bigger than 0.95).]

So apart from the effect of restricting attention to a fixed interval on the distribution of the gaps (which will reduce for large n, the number of points in the interval), you would expect those gaps to be exponentially distributed.

Now in your code, you're dividing the unit interval by placing uniforms and then finding the gaps in successive order statistics. Here the unit interval is not time or space but represents a dimension of money (imagine the money as 50000 million cents laid out end to end, and call the distance they cover the unit interval; except here we can have fractions of a cent); we lay down n marks, and that divides the interval into n+1 "shares". Because of the connection between the Poisson process and uniform points in an interval, the gaps in the order statistics of a uniform will tend to look exponential, as long as n is not too small.

More specifically, any gap that starts in the interval placed over the Poisson process has a chance to be "censored" (effectively, cut shorter than it would otherwise have been) by running into the end of the interval.

enter image description here

Longer gaps are more likely to do that than shorter ones, and more gaps in the interval means the average gap length must go down -- more short gaps. This tendency to be 'cut off' will tend to affect the distribution of longer gaps more than short ones (and there's no chance any gap limited to the interval will exceed the length of the interval -- so the distribution of gap size should decrease smoothly to zero at the size of the whole interval).

In the diagram, a longish interval at the end has been cut shorter, and a relatively shorter interval at the start is also shorter. These effects bias us away from exponentiality.

(The actual distribution of the gaps between n uniform order statistics is Beta(1,n). )

So we should see the distribution at large n look exponential in the small values, and then less exponential at the larger values, since the density at its largest values will drop off more quickly.

Here's a simulation of the distribution of gaps for n=2:

enter image description here

Not very exponential.

But for n=20, it starts to look pretty close; in fact as n grows large it will be well approximated by an exponential with mean 1n+1.

enter image description here

If that was actually exponential with mean 1/21, then exp(21x) would be uniform... but we can see it isn't, quite:

enter image description here

The non-uniformity in the low values there corresponds to large values of the gaps -- which we'd expect from teh above discussion, because the effect of the "cutting off" the Poisson process to a finite interval means we don't see the largest gaps. But as you take more and more values, that goes further out into the tail, and so the result starts to look more nearly uniform. At n=10000, the equivalent display would be harder to distinguish from uniform - the gaps (representing shares of the money) should be very close to exponentially distributed except at the very unlikely, very very largest values.


2
So just to understand you correctly: You are saying that it is not exponential?!? higgsss proves above that it is exponential!
vonjd

3
Let me quote my answer: (i) "you can prove it's not actually exponential" BUT (ii) for the uniform gaps you looked at "...it must be close to exponential" ... "as long as n is not too small." ... What's unclear?
Glen_b -Reinstate Monica

5
I outlined the (trivial, obvious) proof that it isn't actually exponential in my answer. higgss doesn't prove that it is exponential. That (excellent) answer is completely consistent with my statements. In it, higgsss proves that it will be approximately exponential: nsexp(λ1λ2xs)
Glen_b -Reinstate Monica

2
I think that this answer is a great way to look at the problem, and deserves more upvotes. Yet I'm afraid that how the analogy to the Poisson process works (e.g., what "time" corresponds to) may appear unclear. Would you be willing give some more details?
higgsss

3
@higgsss I've reworded slightly (removing reference to time), added a little detail and a link. I may add some more discussion later. If you have any specific suggestions, I'd be interested in improving my answer further.
Glen_b -Reinstate Monica

8

Let's suppose the money is infinitely divisible so we can deal with real numbers rather than integers.

Then the uniform distribution of t=500000000 partitioned across n=10000 individuals will give a marginal density for each individual

p(x)=n1t(1xt)n2
for 0xt, and a marginal cumulative probability for each individual of
P(Xx)=1(1xt)n1.

If you want to apply this then use the marginal distribution to allocate a random amount X to any of the individuals, then reduce t to tX and n to n1 and repeat. Note that when n=2, this would give each individual a uniform marginal distribution across the remaining amount, much as one might expect; when n=1 you give all the remaining money to the single remaining person.

These expressions are polynomial rather than exponential, but for large n you will probably find it hard to distinguish their effects from an exponential distribution with a parameter close to nt. The distribution is asymptotically exponential because (1ym)mexp(y) as m.


8

To say, "suppose you randomly divide 500 million in income among 10,000 people" is insufficiently specific to answer the question. There are many different random process that could be used to allocate a fixed amount of money to a fixed number of people, and each will have its own characteristics for the resulting distribution. Here are three generative processes I could think of, and the distributions of wealth each creates.

library(MASS)

w <- 500000000 #wealth
p <- 10000 #people

Method 1, posted by OP:

Choose 'p' numbers from [0,w) uniformly at random. Sort these. Append '0' to the front. Hand out dollar amounts represented by the differences between successive elements in this list.

d <- diff(c(0,sort(runif(p-1,max=w)),w)) #wealth-distribution
h <- hist(d, col="red", main="Exponential decline", freq = FALSE, breaks = 45,
     xlim = c(0, quantile(d, 0.99)))
fit <- fitdistr(d,"exponential")
curve(dexp(x, rate = fit$estimate), col = "black", type="p", 
      pch=16, add = TRUE)

uniform interval breaks

Method 2:

Chose 'p' numbers from [0, w) uniformly at random. Consider these 'weights', so 'w' doesn't actually matter at this stage. Normalize the weights. Hand out dollar amounts represented by the fraction of 'w' corresponding to each weight.

d <- runif(p,max=w) #weigh-distribution
d <- d/sum(d)*w #wealth-distribution
h <- hist(d, col="red", main="pretty uniform", freq = FALSE, breaks = 45, 
          xlim = c(0, quantile(d, 0.99)))

rescaled weights

Method 3:

Start with 'p' 0s. w times, add 1 to a one of them, selected uniformly at random.

d <- rep(0, p)
for( i in 1:5000000){ ## for-loops in R are terrible, but this gives the idea.
    k <- floor(runif(1, max=p)) + 1    
    d[k] = (d[k] + 1)
}
h <- hist(d, col="red", main="kinda normalish?", freq = FALSE, breaks = 45,
          xlim = c(0, quantile(d, 0.99)))

iterative dollars


4

Let me add something regarding your addendum.

In the continuous case, as pointed out by Glen_b and Henry, the exact PDF for the amount each person receives is

p(x)=N1X(1xX)N2,
where N is the number of people, and X is the total amount of money.

In the discrete case, assuming that there are M coins to distribute, the probability for a particular person to receive m coins is

p(m)=N1M+1j=0N3(1mMj)N2.
When MN, two cases agree with each other. For sufficiently large N and as long as we stay away from the tail, they look like exponential distributions.

In both cases, as we are sampling N times from this true probability distribution, there will be error associated with the finite sample size.

However, performing the error analysis does not seem to be straightforward because different samplings in this case are not independent. They have to sum up to the total amount, and how much the first person receives affects the probability distribution for the second person, and so on.

My previous answer does not suffer from this issue, but I think it would be helpful to see how it can be resolved in this approach.


3

Good theoretical analysis done by the upvoted answers. However, here's my simple, empirical view on why the distribution is exponential.

When you distribute the money randomly, let's consider you do it one-by-one. Let S be the original sum.

For the first man, you must choose a random amount between 0 and S. Thus, on average, you will choose S/2 and remain with S/2.

For the second man, you would choose randomly between 0 and, on average, S/2. Thus, on average, you'll choose S/4 and remain with S/4.

So, you would basically be splitting the sum in half each time (statistically speaking).

Although in a real-life example you will not have continuously halved values, this shows why one should expect the distribution to be exponential.


3
Your algorithm tens to give more money to the first person than to any of the others. There are other approaches which do not have this bias.
Henry

@Henry How else would you begin sharing the money? You must start with someone. And when you do, you have the whole amount in front of you. Giving him a random fraction literally means selecting at random from the entire sum. One cannot say that the assumption of having a "first man" is wrong, because otherwise the one who shares the money would simply divide the sum by the number of men since he knows in advance how many people there are. That's just my point of view: when you say you split the money "randomly", there will simply be one man getting more money
Bogdan Alexandru

Bogdan Alexandru: My algorithm (another answer) has the feature that the distribution for each individual is the same no matter whether they are chosen first, in the middle or last. It also corresponds to a uniform density across the space constrained by the total amount being allocated.
Henry
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.