If F=G,
Then, Xj
is equally likely to be in any of the m+n
positions in the ordered list.
E(R)=m∑j=1E(Rj)=m∑j=1(m+n)(m+n+1)21m+n=mm+n+12.
(b)
Rj=(∑nk=1IYk+∑k≠jIXk+1)
where IYk
are the indicator random variables for Xj
being larger than Yk
and IXk
are the indicator random variables for Xj
being larger than Xk.
Note that E(IYk)=p
for all k since the Ys are iid, and E(IXk)=1/2
- Xj
and Xk
are iid and never equal, so they are equally likely to be bigger or smaller
than the other. Then E(Rj)=np+(m−1)/2+1.Thus,
E(R)=m(np+(m−1)∕2+1).