A list consists only of letters A and B arranged in a row. In the list, there are a letter As and b letter Bs, where a⩾2 and b⩾2, and a+b=n. Each possible ordering of the letters is equally probable. The random variable X1 is defined by
X1={10if the first letter in the row is A;otherwise. The random variables Xk (2⩽k⩽n) are defined by
Xk={10if the (k−1)th letter is B and the kth is A;otherwise. The random variable S is defined by S=i=1∑nXi.
- Find expressions for E(Xi), distinguishing between the cases i=1 and i=1, and show that E(S)=na(b+1).
Show that:
- for j⩾3, E(X1Xj)=n(n−1)(n−2)a(a−1)b ;
- i=2∑n−2(j=i+2∑nE(XiXj))=2n(n−1)a(a−1)b(b−1) ;
- Var(S)=n2(n−1)a(a−1)b(b+1) .