I know that there are several but I want to ask if this approach is correct:
Given $X_1,X_2... X_n$ iid continuous RVs
The objective is to find the joint pdf $f(Z,W)$ where $Z=Min(X_i's)$ and $W=Max(X_i's)$
$Pr(Z<z,W<w)=Pr(X_i>z\forall i,X_i<w \forall i)=Pr(z<X_i<w \forall i)=[Pr(z<X<w)]^n$
and the pdf is just the derivative of $[Pr(z<X<w)]^n$
With the input from the comment below, I revised my approach to as follows:
$Pr(Z<z,W<w)=P(W<w)-Pr(Z>z,W<w)$
Where $Pr(Z>z,W<w)=Pr(X_i>z\forall i,X_i<w \forall i)=Pr(z<X_i<w \forall i)=[Pr(z<X<w)]^n$
So,
$Pr(Z<z,W<w)=P(W<w)-[Pr(z<X<w)]^n$
I worked on it using the corrected relationship in my post and then checked my answer using the wikipedia link provided and ended up with 2 slightly different answers:
My work:
$f(z,w)=\frac{n(n-1)}{\theta^n}(w-z)^{n-2}$
Plugging in values in the wikipedia expression
$f(z,w)=\frac{n(n-1)}{\theta^n}(w-z+2-\theta)^{n-2}$
Are any of these two correct?