Probability & Statistics
![Question 31, GATE 2017: For a discrete random variable X with probabilities p_j on j=0,…,N, define g_X(z)=Σ(j=0 to N)p_j z^j. Suppose g_Y(z)=(1−β+βz)^N with β∈[0,1]. Find E[Y]. A:Nβ(1−β). B:Nβ. C:N(1−β). D:not expressible from N and β alone.](../../assets/questions/CS-2017-S2-Q41-1.webp)
Answer & solution
Official answer: B
1. Differentiate the definition of the probability generating function: g′_Y(z)=Σ(j=1 to N)j pj zj-1. Evaluating at z=1 leaves Σj pj, exactly E[Y].
2. By the chain rule, differentiating the supplied polynomial gives g′_Y(z)=Nβ(1−β+βz)N-1. At z=1 the parenthesized expression is 1, so g′_Y(1)=Nβ.
3. Therefore B is correct. The generating function also identifies a binomial distribution, whose variance is Nβ(1−β), the distractor A. The mean formula remains valid for β=0 or 1 and for the degenerate N=0 case.