Some days ago I came across this question. You may notice that I tried to answer it being however really not sure about what I was saying. (Feel free to "-1" my post !). Not being satisfied by my answer, I've been playing around with this problem and came to an odd conclusion. I'm therefore asking you to check what's wrong in my proof. I repeat the setting here :
Let N∈N, N≥1, let also x1,...,xn, xi≥1, ∑ixi=N. Note also that n may vary 1≤n≤N
(In the original post the OP possibly specified xi∈N but I relaxed this constraint here)
We are interessed in the following quantity on which I manage to extract a lower and upper bound: n∑i=1logNxi
Lowerbound :
n∑i=1logNxi=nlogN−n∑i=1logxi(∗)≥nlogN−nlog(1nn∑i=1xi)=nlogN−nlogNn=nlognUpperbound :
n∑i=1logNxi(∗)≤nlog(1nn∑i=1Nxi)=nlogN−nlogn+nlog(n∑i=11xi)(∗∗)≤nlogN−nlogn+nlog(n∑i=1nN)=nlogN−nlogn+nlog(n2N)=nlogN−nlogn+2nlogn−nlogN=nlogn
(∗) Jensen's inequality, precisely nlog(1n∑ixi)≥∑logxi
(∗∗) Setting xi=N/n which maximize the sum.
This therefore would prove that ∑ni=1logNxi=nlogn which sounds totally wrong to me however I'm not sure where this proof fails. Could you help me ? :)
EDIT : After seeing the comments, it is now clear that (∗∗) is wrong. The setting that maximizes the sum, I think, is x1=N−n+1, x2=...=xn=1. Remember that xi must be ≥1 in the statement.
Answer
Let's examine first this problem: Given A with 0<A≤1/n, find the extrema of L=−n∑i=1logxi
since L and the conditions are symmetric in their treatment of the xi, any permutation of their values will have no affect on L. In particular, we can restrict our attention to the region where xn≥xi for i<n. Any extremum that occurs elsewhere must also occur in this region.
In the special case where A=1/n, there is only one point within the region of interest: (A,A,...,A), which is therefore both maximum and minimum. So assume that A<1/n. Therefore the largest coordinate xn>A.
Now $x_n = 1 - \sum_{i
If xi<xn, then it can increase. But because the partial derivative is negative in that case, this causes L to decrease. Conversely if xn>xi>A, then decreasing xi will cause L to increase (by the 2nd derivative test, this is also true when xn=xi).
Hence, the maximum of L occurs when all of the xi with $i
Now your problem is to find the extrema of K=−∑ilog(xiN)
given
1≤xi,∑ixi=N
Make the substitution yi=xiN, and we get
K=−∑ilogyi
given
1/n≤yi,∑iyi=1
By the above work, the extrema are
maxK=nlogN−log(N+1−n)
minK=nlogn
If we allow n to vary from 1 to N, then maxK=NlogN
No comments:
Post a Comment