Let $X_1,...,X_n$ be iid as $U \sim [0,1]$ with pdf $f(x) = 1(0 <x< 1)$. Determine the range distribution.
I have managed to determine the distribution of the minimum and the maximum, however I cannot/do not know how to determine the distribution of range.
Minimum: $f_N = n(1-x)^{n-1}$ and maximum $f_M= nx^{n-1}$
I am aware that the calculation of range distribution is based on convolution: $f_R=\int f_{N,M}(x,x-r)dx$, However I cannot get the correct result, which according to my lecture slides is : $f_R= n(n-1)r^{n-2}(1-r)$
Could someone break this down for me ? My math background is not great
Suppose $U=\min (X_1,\cdots,X_n)$ and $V=\max (X_1,\cdots,X_n)$.
Start from the fact that the joint density of $(U,V)$ is given by $$f_{U,V}(u,v)=n(n-1)(v-u)^{n-2}\mathbf1_{0<u<v<1}$$
If you are not familiar with the above result, check your textbook or notes. It is a standard result in order statistics.
Transforming $(U,V)\to (R,S)$ such that $R=V-U$ and $S=U$. The jacobian is unity as it is a linear transformation. Observe that $0<u<v<1\implies 0<s<r+s<1\implies 0<r<1, 0<s<1-r$.
So you get the joint density of $(R,S)$ as
\begin{align}f_{R,S}(r,s)&=f_{U,V}(s,r+s)\\&=n(n-1)r^{n-2}\mathbf1_{0<s<r+s<1}\end{align}
Finally the marginal pdf of $R$ would be
\begin{align}f_R(r)=\int_0^{1-r}f_{R,S}(r,y)\,\mathrm{d}y\,\mathbf1_{0<r<1}\end{align}
Thus you end up with the required answer, which says that the sample range $R\sim \mathcal B(n-1,2)$, the beta distribution of the first kind with parameters $(n-1,2)$.