Let $X_1,X_2,\ldots,X_n$ be a collection of independent uniformly distributed random variables on the interval from $0$ to $\theta$. The question has three parts.
Find the CDF of $F_{x_n}$(x) of $X_n = \max{\{X_1,\ldots,X_n}\}$ I know that distribution for the uniform distribution is $\frac{1}{b-a}$. In this case $b=\theta$ and $a=0$. So the pdf is $\frac{1}{\theta}$. Then the pdf for $X_n$ should be $\left(\frac 1 \theta \right)^n$.
The PDF is then $n\left(\frac 1 \theta \right)^{n-1}$ .
Part c asks to calculate the mean and variance for $X_n$. I'm confused on how to do this. Since it is a uniform distribution should I just use the uniform distribution pdf to calculate the expectation and variance?