Let $X_{1}, X_{2}, ..., X_{n}$ is i.i.d sample from $X$ and $Y_{1}, Y_{2}, ..., Y_{m}$ is i.i.d sample from $Y$. And both samples are independent each other.
Trying Mann-Whitney U-test then, $U =$ $\sum_{i=1}^{n}\sum_{j=1}^{m}S(X_{i}, Y_{j})$
While r.v. $S(X, Y)$ get value $1$ for case $X > Y$, $0.5$ for case $X = Y$ and $0$ for case $X < Y$.
With a quite a large number of samples, we can try normal approximation. So, $z = \frac{U - m_{U}} {\sigma_{U}}$
And $U = \sum_{i=1}^{n}T_{i}$ and $T_{1}, T_{2}, ..., T_{n}$ must be i.i.d from some kind of distribution to apply central limit theorem, as far as I know. But, I failed to find what $T$ is.
My first assumption is $ T_{i} = \sum_{j=1}^{m}S(X_{i}, Y_{j}) $. But I am not sure that $T_{i}$ s' are independent.
My intuition said it's not independent. Because if $T_{1} = \sum_{j=1}^m S(X_{1}, Y_{j}) = 5$, $X_{1} = 500$, and if we know that $X_{2} = 600$, anyhow we can find out directly that $T_{2}$ is bigger or same as $T_{1}$.
$T_{1}$ gives some information about $T_{2}$ so I think $T_{i}$ are not i.i.d.
So my question is,
(1) Are $T_{i}$ i.i.d or not? If they are independent, How they are independent and what is my mistake above?
(2) $T_{i}$ they are not independent, how can I represent $U$ as sum of some kind of r.v., which are i.i.d?