The geometric random variable is defined as the number of co
Solution
X~Geometic(p),where X is the no of trials required to get the first head and p is the probability of getting head.
The pmf of X is given by,
f(x)=q(x-1) *p ,q=1-p ,x=1,2,3,......................
The cdf of X is given by
F(x)=P(X<=x)=sum(t=1(1)x)(f(t))=p*(1-qx)/(1-q)=(1-qx) ,x=1,2,3,...............
P(X(u)=k)=P(at least u-1 Xi\'s are less than or equal to k)=P(Z>=u-1)=sum(k=u-1(1)n)[nCk*{F(u-1)}k *(1-F(u-1))(n-k)
where Z follows binomial(n,F(x)) and Z is the no of Xi\'s which are less than or equal to x.
2.31.
Mean=E(X)=sum(x=1(1))(x*q(x-1) *p)=p(1+2*q+3*q2+4*q3 +............... )=p*S
where S=(1+2*q+3*q2+4*q3 +............... )
S-q*S=1+q+q2+q3+...............=1/(1-q)
therefore,S=1/(1-q)2 =1/p2
Therefore E(X)=1/p
E(X2)=sum(x=1(1))(x2*q(x-1) *p)=2/p2
Therefore V(X)=1/p2
