Asking for help in approaching a question from a Statistics textbook:
Let $X_1, X_2, ..., X_n$ independent and identically distributed with density function $f_ {\theta}(x)$ and $T_n(X_1,X_2,...X_n)$ a sufficient statistic for $\theta$ that is a continuous random variable. Let $g_{\theta}(t)=F_{T_n,\theta}(t)=\mathbb{P}_{\theta}(T_n\leq t)$ be the cumulative distribution function of $T_n$, and $Y_n=g(T_n)$. Show that $Y_n\sim U(0,1)$ and thus $Y_n$ is a pivot.
My initial thoughts were to somehow find the distribution of $T_n$ using a change of variables, but $T_n$ is not the same dimension as the probability space of the sample $X_1,..X_n$. Or to somehow use the sufficiency to write $f_{\theta}(x)=h(x)g_{\theta}(T_n(x))$, not sure though how to proceed from here.