Question

For any discrete random variable XX, with probability mass function

P(X=j)=pj,pj≥0,j∈{0,…,N},and∑j=0Npj=1P(X = j) = p_j, \quad p_j \ge 0, \quad j \in \{0, \dots, N\}, \quad \text{and} \quad \sum_{j=0}^N p_j = 1

define the polynomial function gX(z)=∑j=0Npjzjg_X(z) = \sum_{j=0}^N p_j z^j. For a certain discrete random variable YY, there exists a scalar β∈[0,1]\beta \in [0, 1] such that gY(z)=(1−β+βz)Ng_Y(z) = (1 - \beta + \beta z)^N. The expectation of YY is

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2017 answer key

Solution

Recall that the expectation of a discrete random variable can be obtained by taking the first derivative of its probability generating function evaluated at z=1z = 1.

For any discrete random variable YY taking values in {0,1,…,N}\{0, 1, \dots, N\} with probability generating function gY(z)=∑j=0NP(Y=j)zjg_Y(z) = \sum_{j=0}^N P(Y = j) z^j:

gY′(z)=∑j=0Nj⋅P(Y=j)zj−1g_Y'(z) = \sum_{j=0}^N j \cdot P(Y = j) z^{j-1}

Evaluating at z=1z = 1:

gY′(1)=∑j=0Nj⋅P(Y=j)=E[Y]g_Y'(1) = \sum_{j=0}^N j \cdot P(Y = j) = E[Y]

Given gY(z)=(1−β+βz)Ng_Y(z) = (1 - \beta + \beta z)^N, differentiate with respect to zz:

gY′(z)=N(1−β+βz)N−1⋅ddz(1−β+βz)=Nβ(1−β+βz)N−1g_Y'(z) = N (1 - \beta + \beta z)^{N-1} \cdot \frac{d}{dz}(1 - \beta + \beta z) = N \beta (1 - \beta + \beta z)^{N-1}

Evaluate at z=1z = 1:

gY′(1)=Nβ(1−β+β⋅1)N−1=Nβ(1)N−1=Nβg_Y'(1) = N \beta (1 - \beta + \beta \cdot 1)^{N-1} = N \beta (1)^{N-1} = N\beta

Alternatively, notice that gY(z)=(q+pz)Ng_Y(z) = (q + pz)^N is the exact probability generating function of a Binomial random variable with parameters NN and success probability p=βp = \beta, whose expected value is well-known to be NβN\beta.

Final answer

B

Common trap

Confusing the expectation E[Y]=NβE[Y] = N\beta with the variance Var(Y)=Nβ(1−β)\text{Var}(Y) = N\beta(1 - \beta).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 2
Question
31 of 65, printed as CS Q.31
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.