Q.4.34

Question

From a set of n elements, a nonempty subset is chosen at random in the sense that all of the nonempty subsets are equally likely to be selected. Let X denote the number of elements in the chosen subset. Using the identities given in Theoretical Exercise 12 of Chapter1, show that

E[X]=n212n1

Var(X)=n22n2n(n+1)2n22n12

Show also that for n large,

Var(X)~n4

in the sense that the ratio Var(X) ton/4 approaches 1 as n approaches q. Compare this formula with the limiting form of Var(Y) when P{Y =i}=1/n,i=1,...,n. 

Step-by-Step Solution

Verified
Answer

For comparing this formula with the limiting form of Var(Y) when P{Y =i}=1/n,i=1,...,n use combinatoric identities to confirm needed equalities.

1Step 1: Given in the question that

E[X]=n2(12)n1

Var(X)=n22n2n(n+1)2n2(2n1)2

2Step 2: Solution

We know that X{1,..., n}. What is P(X=k) ?. In total, there exist 2n1 non-empty subsets. On the other hand, there exist (nk) subsets with exactly k elements. Hence

P(X=k)=(nk)2n1

 So, using the definition of expectation, we have that 

E(X)=k=1nk(nk)2n1

    Now, we have combinatoric identity k=0nk·nk=n·2n-1. Using that, we have that 

E(X)=n2n12n1=n2(12)n1

Which had to be shown.

3Step 3: Solution

Let's calculate Var(X). For the beginning, let's find the second moment. We have that 

E(X2)=k=1nk2(nk)2n1

Now, we use the identityk=0nk2(nk)=2n2n(n1), so we have that

E(X2)=2n2n(n1)2n1

Finally, we have that

Var(X)=E(X2)EX2=n22n22n2n(n+1)(2n1)2

For large n, the variance asymptotically goes to 


n22n22n2n(n+1)(2n1)2~n22n222nn4

Now, let's compare these results with the mean and variance of Y ~DUnif(1, ..., n). We knot that Var(Y)=n212, so we see that the variance of discrete uniform rises quadratically as n rises. On the other hand, we see that the variance of X rises linearly as n goes to infinity.

4Step 4: Final Answer

For comparing this formula with the limiting form of Var(Y) when P{Y =i}=1/n,i=1,...,n use combinatoric identities to confirm needed equalities.