Suppose we have $X_1, ..., X_n$ are iid N(0,1), and the rank is defined as below $$ r(X_i) = \sum_{i \neq j} I(X_j \geq X_i) $$ What is the expected rank?
I get that it is $(n-1)/2$ but Mood in "On the Asymptotic Efficiency of Certain Nonparametric Two-Sample Tests" states it to be (n+1)/2.
Am I missing something here?