Rearrangement inequality

From testwiki
Jump to navigation Jump to search

Template:Short description In mathematics, the rearrangement inequality[1] states that for every choice of real numbers x1xn and y1yn and every permutation σ of the numbers 1,2,n we have Template:NumBlk Informally, this means that in these types of sums, the largest sum is achieved by pairing large x values with large y values, and the smallest sum is achieved by pairing small values with large values. This can be formalised in the case that the x1,,xn are distinct, meaning that x1<<xn, then:

  1. The upper bound in (Template:EquationNote) is attained only for permutations σ that keep the order of y1,,yn, that is, yσ(1)yσ(n), or equivalently (y1,,yn)=(yσ(1),,yσ(n)). Such a σ can permute the indices of y-values that are equal; in the case y1==yn every permutation keeps the order of y1,,yn. If y1<<yn, then the only such σ is the identity.
  2. Correspondingly, the lower bound in (Template:EquationNote) is attained only for permutations σ that reverse the order of y1,,yn, meaning that yσ(1)yσ(n). If y1<<yn, then σ(i)=ni+1 for all i=1,,n, is the only permutation to do this.

Note that the rearrangement inequality (Template:EquationNote) makes no assumptions on the signs of the real numbers, unlike inequalities such as the arithmetic-geometric mean inequality.

Template:TOC right

Applications

Many important inequalities can be proved by the rearrangement inequality, such as the arithmetic mean – geometric mean inequality, the Cauchy–Schwarz inequality, and Chebyshev's sum inequality.

As a simple example, consider real numbers x1xn: By applying (Template:EquationNote) with yi:=xi for all i=1,,n, it follows that x1xn++xnx1x1xσ(1)++xnxσ(n)x12++xn2 for every permutation σ of 1,,n.

Intuition

The rearrangement inequality can be regarded as intuitive in the following way. Imagine there is a heap of $10 bills, a heap of $20 bills and one more heap of $100 bills. You are allowed to take 7 bills from a heap of your choice and then the heap disappears. In the second round you are allowed to take 5 bills from another heap and the heap disappears. In the last round you may take 3 bills from the last heap. In what order do you want to choose the heaps to maximize your profit? Obviously, the best you can do is to gain 7100+520+310 dollars. This is exactly what the upper bound of the rearrangement inequality (Template:EquationNote) says for the sequences 3<5<7 and 10<20<100. In this sense, it can be considered as an example of a greedy algorithm.

Geometric interpretation

Assume that 0<x1<<xn and 0<y1<<yn. Consider a rectangle of width x1++xn and height y1++yn, subdivided into n columns of widths x1,,xn and the same number of rows of heights y1,,yn, so there are n2 small rectangles. You are supposed to take n of these, one from each column and one from each row. The rearrangement inequality (Template:EquationNote) says that you optimize the total area of your selection by taking the rectangles on the diagonal or the antidiagonal.

Proofs

Proof by contradiction

The lower bound and the corresponding discussion of equality follow by applying the results for the upper bound to yny1, that is, let υ be any permutation of the numbers 1,2,n we have x1(yυ(1))++xn(yυ(n))x1(yn)++xn(y1). Then, x1yn++xny1x1yυ(1)++xnyυ(n) for every permutation υ of 1,,n.

Therefore, it suffices to prove the upper bound in (Template:EquationNote) and discuss when equality holds. Since there are only finitely many permutations of 1,,n, there exists at least one σ for which the middle term in (Template:EquationNote) x1yσ(1)++xnyσ(n) is maximal. In case there are several permutations with this property, let σ denote one with the highest number of integers i from {1,,n} satisfying yi=yσ(i).

We will now prove by contradiction, that σ has to keep the order of y1,,yn (then we are done with the upper bound in (Template:EquationNote), because the identity has that property). Assume that there exists a j{1,,n1} such that yi=yσ(i) for all i{1,,j1} and yjyσ(j). Hence yj<yσ(j) and there has to exist a k{j+1,,n} with yj=yσ(k) to fill the gap. Therefore, Template:NumBlk which implies that Template:NumBlk Expanding this product and rearranging gives Template:NumBlk which is equivalent to (Template:EquationNote). Hence the permutation τ(i):={σ(i)for i{1,,n}{j,k},σ(k)for i=j,σ(j)for i=k, which arises from σ by exchanging the values σ(j) and σ(k), has at least one additional point which keeps the order compared to σ, namely at j satisfying yj=yτ(j), and also attains the maximum in (Template:EquationNote) due to (Template:EquationNote). This contradicts the choice of σ.

If x1<<xn, then we have strict inequalities in (Template:EquationNote), (Template:EquationNote), and (Template:EquationNote), hence the maximum can only be attained by permutations keeping the order of y1yn, and every other permutation σ cannot be optimal.

Proof by induction

As above, it suffices to treat the upper bound in (Template:EquationNote). For a proof by mathematical induction, we start with n=2. Observe that x1x2 and y1y2 implies that Template:NumBlk which is equivalent to Template:NumBlk hence the upper bound in (Template:EquationNote) is true for n=2. If x1<x2, then we get strict inequality in (Template:EquationNote) and (Template:EquationNote) if and only if y1<y2. Hence only the identity, which is the only permutation here keeping the order of y1<y2, gives the maximum.

As an induction hypothesis assume that the upper bound in the rearrangement inequality (Template:EquationNote) is true for n1 with n3 and that in the case x1<<xn1 there is equality only when the permutation σ of 1,,n1 keeps the order of y1,,yn1.

Consider now x1xn and y1yn. Take a σ from the finite number of permutations of 1,,n such that the rearrangement in the middle of (Template:EquationNote) gives the maximal result. There are two cases:

  • If σ(n)=n, then yn=yσ(n) and, using the induction hypothesis, the upper bound in (Template:EquationNote) is true with equality and σ keeps the order of y1,,yn1,yn in the case x1<<xn.
  • If k:=σ(n)<n, then there is a j{1,,n1} with σ(j)=n. Define the permutation τ(i)={σ(i)for i{1,,n}{j,n},kfor i=j,nfor i=n, which arises from σ by exchanging the values of j and n. There are now two subcases:
  1. If xk=xn or yk=yn, then this exchange of values of σ has no effect on the middle term in (Template:EquationNote) because τ gives the same sum, and we can proceed by applying the first case to τ. Note that in the case x1<<xn, the permutation τ keeps the order of y1,,yn if and only if σ does.
  2. If xk<xn and yk<yn, then 0<(xnxk)(ynyk), which is equivalent to xkyn+xnyk<xkyk+xnyn and shows that σ is not optimal, hence this case cannot happen due to the choice of σ.

Generalizations

Three or more sequences

A straightforward generalization takes into account more sequences. Assume we have finite ordered sequences of nonnegative real numbers 0x1xnand0y1ynand0z1zn and a permutation yσ(1),,yσ(n) of y1,,yn and another permutation zτ(1),,zτ(n) of z1,,zn. Then x1yσ(1)zτ(1)++xnyσ(n)zτ(n)x1y1z1++xnynzn.

Note that, unlike the standard rearrangement inequality (Template:EquationNote), this statement requires the numbers to be nonnegative. A similar statement is true for any number of sequences with all numbers nonnegative.

Functions instead of factors

Another generalization of the rearrangement inequality states that for all real numbers x1xn and every choice of continuously differentiable functions fi:[x1,xn] for i=1,2,,n such that their derivatives f'1,,f'n satisfy f'1(x)f'2(x)f'n(x) for all x[x1,xn], the inequality i=1nfni+1(xi)i=1nfσ(i)(xi)i=1nfi(xi) holds for every permutation fσ(1),,fσ(n) of f1,,fn.[2] Taking real numbers y1yn and the linear functions fi(x):=xyi for real x and i=1,,n, the standard rearrangement inequality (Template:EquationNote) is recovered.

See also

References

Template:Reflist

  1. Template:Citation, Section 10.2, Theorem 368
  2. Template:Citation