I am doing a practice problem in preparation for an exam, but I have hit a dead end.
Let $X_1, \dots, X_n$ be i.i.d. observations from Unif$(0,\theta)$ distribution. Use the joint distribution of $(X_{(1)}, X_{(n)})$ to show that $V=\frac{X_{(1)}}{X_{(n)}}$ is independent of $W=X_{(n)}$.
Let $Y_i=X_{(i)}$. For the joint p.d.f. of $Y_1, Y_n$ I get $$ f_{Y_1, Y_n}(y_1, y_n)=n^3(n-1)\frac{y_n^{n-1}}{\theta^{n+1}}(1-\frac{y_1}{\theta})^{n-1}\bigg[\frac{y_n^{n}}{\theta^{n}}-1 +(1-\frac{y_1}{\theta})^n\bigg]^{n-2}. $$
From here I tried to find $f_{V,W}(v,w)$ and show it factors into $f_V(v)f_W(w)$. The later p.d.f. is easy to find, but $f_V(v)$ is not so easy. I tried to use the fact that $$ f_V(v)=\int_{\mathcal{W}}f_{V,W}(v,w) \, dw=\int_0^{\theta}n^3(n-1) \frac{w^{n-1}}{\theta^{n+1}}(1-\frac{vw}{\theta})^{n-1}\bigg[\frac{w^{n}}{\theta^{n}}-1 +(1-\frac{vw}{\theta})^n\bigg]^{n-2} \, dw, $$ but I can't figure out how to integrate this. I was thinking a clever substitution would let me lean on the Beta function, but if it exists, I can't find it. Is there a way to circumvent the need to find $f_V(v)$ (I can't use Basu's theorem for this)?
Easy answer:
$X\sim U(0;\theta)$ belongs to a scale family
$W=X_{(n)}$ is CSS (Complete and Sufficient Statistic) for $\theta$
$V=\frac{X_{(1)}}{X_{(n)}}$ is scale invariant thus it is ancillary for $\theta$
Now you can apply Basu's Theorem concluding that $V\perp\!\!\!\perp W$
If you want to use the hint of the exercise, a further easy way to proceed is the following.
To simplify the notation, let's set $x<y$ the minimum and the maximum of the $n$ observations, thus
$$f_{XY}(x,y)=n(n-1)\frac{(y-x)^{n-2}}{\theta^n}\cdot\mathbb{1}_{(0<x<y<\theta)}$$
Now set the following system
$$ \left\{ \begin{array}{c} v=\frac{x}{y} \\ w=y \end{array} \right. \rightarrow \left\{ \begin{array}{c} x=vw\\ y=w \end{array} \right. $$
being the jacobian $|J|=w$ you get
$$f_{VW}(v,w)=n(n-1)\frac{[w(1-v)]^{n-2}}{\theta^n}\cdot w=$$
$$=\frac{n(n-1)}{\theta^n}w^{n-1}(1-v)^{n-2}=$$
$$=\frac{nw^{n-1}}{\theta^n}\cdot\mathbb{1}_{(0;\theta)}(w)\times (n-1)(1-v)^{n-2}\cdot \mathbb{1}_{(0;1)}(v)=f_W(w)\cdot f_V(v)$$
which is exactly independence's definition