This is a question originating from some research I'm doing on the discovery of correlations in a mass of time-series data.
Suppose I have a random variable $X$ that is normally distributed with mean $\mu_X$ and variance $\sigma^2_X$. In addition, I have i.i.d. random variables $Y_i$ ($1 \leq i \leq n$) that are also normally distributed, but with mean $\mu_Y$ and variance $\sigma^2_Y$. Typically, $\mu_X > \mu_Y$, and we can assume that's the case in this question.
I'm interested in the distribution of $X$'s rank within the $Y_i$—effectively, the number of $Y_i$ that are greater than $X$. Is there a straightforward way of obtaining even an approximate expression for this?
There is this question, but I'm not sure that's really sufficiently close to the same question. For one thing, it concerns only two samples, one drawn from each distribution, and for another, it gives only the probability that $X > Y$. This is of limited use in determining the distribution of $X$'s rank, since the event $X > Y_i$ is not in general independent of the event $X > Y_j$. However, if someone can articulate why an answer to that question will give me the answer to mine (or if there is another, more related question and answer), I'd be satisfied with that.