For $X_i \sim$ iid random variables:
For $1\le r_1 < ..<r_k \le n$ integers, I am trying to find the joint pdf of: $$ (X_{(r_1)},...,X_{(r_n)}) $$ where $X_{(r_1)}$ is the $r_1$th largest observation. I am wondering if anyone has seen the solution to this problem somewhere online? My current attempt:
Choosing $\epsilon$ small enough such that only one observation falls in an interval of width $\epsilon$
\begin{align*} &P(X_{(r_1)} \in (x_1 - \epsilon,x_1+\epsilon),.......,X_{(r_k)}\in (x_k - \epsilon,x_k+\epsilon))\\ &=P( n-k ~\text{of}~ X_1,....,X_n \in (-\infty, x_1-\epsilon),\\ &1 ~\text{of}~ X_1,....,X_n \in (x_1-\epsilon,x_1+\epsilon),\\ &....\\ &1 ~\text{of}~ X_1,....,X_n \in (x_k-\epsilon,x_k+\epsilon),)\\ &+\\ &P( n-k-1 ~\text{of}~ X_1,....,X_n \in (-\infty, x_1-\epsilon),\\ &1 ~\text{of}~ X_1,....,X_n \in (x_1-\epsilon,x_1+\epsilon),\\ &....\\ &1 ~\text{of}~ X_1,....,X_n \in (x_k-\epsilon,x_k+\epsilon),\\ &1 ~\text{of}~ X_1,....,X_n \in (x_k+\epsilon + \infty),\\ &+.... \end{align*} and so on and so forth accounting for all distributions of the remaining n-k observations between the area before $r_1$ and the area after $r_k$.
Each one of these is a multinomial, and has corresponding expressions in terms of the CDFs (dividing and taking epsilons to zero). After all the working, I get to the point:
$$ f_{(X_(r_1),....,X_(r_k)} (x_1,...,x_k)= $$ $$ n! \prod_{i=1}^{k} f(x_i) \left[ \frac{F(x_1)^{n-k}}{(n-k)!} +\frac{F(x_1)^{n-k-1} (1-F(x_k))}{(n-k-1)!} +......+\frac{ (1-F(x_k))^{n-k}}{(n-k)!} \right] $$
Not sure if I am on the right track, if anyone has seen this distribution before could you let me know if my attempt is so far correct?