Showing that Y has a uniform distribution if Y=F(X) where F is the cdf of continuous X
Solution 1:
Let $F_Y(y)$ be the CDF of $Y = F(X)$. Then, for any $y \in [0,1]$ we have:
$F_Y(y) = \Pr[Y \le y] = \Pr[F(X) \le y] = \Pr[X \le F^{-1}(y)] = F(F^{-1}(y)) = y$.
What distribution has this CDF?
Solution 2:
$$ Prob(Y\leq x)=P(F(X)\leq x)=P(X\leq F^{-1}(x))=x \\ $$ The last equality is from the definition of the quantile function.
Solution 3:
Let $y=g(x)$ be a mapping of the random variable $x$ distributed according to $f(x)$. In the mapping $y=g(x)$ you preserve the condition of probability density (namely you counts the same number of events in the respective bins)
$$ h(y)dy=f(x)dx $$
where h(y) is the probability distribution of $y$
if $h(y)=1$ (uniform distribution) we have
$$ dy=g'(x)dx=f(x)dx $$
This means that $$ g(x)=\int f(x)dx $$
namely the function $g(x)$ that maps the random variable $x$ distributed according $f(x)$, into a random variable $y$ distributed uniformly is his own cumulative distribution function $\int f(x) dx$.
Solution 4:
Here is an approach that does not use the quantile function whatsoever - the only property used is that independent copies of $X$ have zero probability of being equal. (The main ingredient in my argument is conditional expectation.)
Consider the cumulative distribution function of $X$, namely $$ F(t)=\mathbb P(X\leq t). $$ Your random variable - which I will suggestively call $U$ instead of $Y$ - can be described by starting with two independent and identically distributed random variables $X,Z$ and considering the conditional probability $$ U=\mathbb P(X\leq Z\mid Z). $$ Then, for all integers $n\geq 1$, we can represent $U^n$ as follows. Let $X_1,X_2,\ldots,X_n,Z$ be independent and identically distributed. By independence, $$ \mathbb P\bigl(X_1\leq Z,X_2\leq Z,\ldots, X_n\leq Z\bigm\vert Z\bigr)=U^n, $$ and thus by the tower property $$ \mathbb EU^n=\mathbb P(X_1\leq Z,X_2\leq Z,\ldots, X_n\leq Z)=\mathbb P\bigl(Z=\max(X_1,X_2,\ldots,X_n,Z)\bigr). $$ Since $X_1,\ldots,X_n,Z$ are iid, each of them is equally likely to be the maximum and therefore $$ \mathbb EU^n=\frac{1}{n+1}. $$ Thus $U$ has the same moments as a uniformly distributed random variable on $[0,1]$. Since $U$ is supported in $[0,1]$ as well, it follows (by the uniqueness of the Hausdorff moment problem) that $U$ is uniformly distributed, as desired.
Solution 5:
Let $y\in(0,1)$. Since $F$ is continuous, there exists $x\in\mathbb{R}$ s.t. $F(x)=y$. Thus, $$ \mathsf{P}(Y\le y)=\mathsf{P}(F(X)\le F(x))=F(x)=y, $$ i.e., $Y\sim\text{U}[0,1]$. In order to see the first equality we don't need continuity. Specifically, since any cdf is right-continuous, \begin{align} \{F(X)\le F(x)\}&=\{\{F(X)\le F(x)\}\cap\{X\le x\}\}\cup \{\{F(X)\le F(x)\}\cap\{X>x\}\} \\ &=\{X\le x\}\cup \{\{F(X)=F(x)\}\cap\{X>x\}\}, \end{align} and $\mathsf{P}(\{F(X)=F(x)\}\cap\{X>x\})=0$.