# What is the distribution of maximum of a pair of iid draws, where the minimum is an order statistic of other minima?

Consider $n\cdot m$ independent draws from cdf $F(x)$, which is defined over 0-1, where $n$ and $m$ are integers. Arbitrarily group the draws into $n$ groups with m values in each group. Look at the minimum value in each group. Take the group that has the greatest of these minima. Now, what is the distribution that defines the maximum value in that group?
More generally, what is the distribution for the $j$-th order statistic of $m$ draws of $F(x)$, where the kth order of those m draws is also the pth order of the n draws of that kth order statistic?

All of that is at the most abstract, so here is a more concrete example.
Consider 8 draws of $F(x)$. Group them into 4 pairs of 2. Compare the minimum value in each pair. Select the pair with the highest of these 4 minima. Label that draw “a”. Label the other value in that same pair as “b”. What is the distribution $F_b(b)$? We know $b>a$. We know a is the maximum of 4 minimums of $F(x)$, of $F_a(a) = (1-(1-F(x))^2)^4$. What is $F_b(b)$?

I answer this: “Arbitrarily group the draws into n groups with m values in each group. Look at the minimum value in each group. Take the group that has the greatest of these minima. Now, what is the distribution that defines the maximum value in that group?”
Let $X_{i,j}$ the i-th random variable in group j and $f(x_{i,j})$ ($F(x_{i,j})$) its density (cdf) function.
Let $X_{\max,j}, X_{\min,j}$ the maximum and minimum in group $j$. Let $X_{final}$ the variable that results at the end of all process.
We want to calculate $P(X_{final} which is

Now, let $Y=\max_{j=2\ldots n} X_{min,j}$ and $W=X_{1,1}$.

A reminder: if $X_1,\ldots X_n$ are iid with pdf (cdf) $h$ ($H$), then $X_{\min}$ has pdf $h_{\min}=nh(1-H)^{n-1}$ and $X_{\max}$ has pdf $h_{max}=nhH^{n-1}$.
Using this, we get the pdf of $Y$ is

Note that $Y$ is a statistics that is independent of group 1 so its joint density with any variable in the group 1 is the product of densities.
Now the above probability becomes

By taking derivative of this integral wrt $x$ and using binomial formula we obtain the pdf of $X_{final}$.

Example: $X$ is uniform, $n=4$, $m=3$. Then

Mean of $X_{final}$ is $374/455=0.822$ and its s.d. is $0.145$ .