Calc expected value of 5 random number with uniform distribution Assume we have a random numbers $\sim U(0,100)$.
Then the expected value of that number will be: $\int_{0}^{100} \frac{x}{100}$ = 50.5
Now assume we have 5 random numbers $\sim U(0,100)$.
How can I calculate what would be the expected value of the maximal number?
Thanks.

Suppose $X_1, X_2, \dots, X_n$ form a random sample of size $n$ from some distribution with p.d.f. $f$, and c.d.f. $F$, then let:
$$
Y = max\{X_1, X_2, \dots, X_n\}
$$
Then the c.d.f. of $Y$ is given by
\begin{align*}
   G(y) & =  \text{Pr}(Y \le y) = \text{Pr}(X_1 \le y, X_2 \le y, \dots, X_n \le y)\\
   & = \text{Pr}(X_1 \le y)\text{Pr}(X_2 \le y)\dots\text{Pr}(X_n \le y) \\
   & = F(y)F(y)\dots F(y) = [F(y)]^n
\end{align*}
The first line says $y$ must be greater or equal to all $n$ samples. The second line follows from the independence of each sample. Then the p.d.f. of $Y$ is
$$
g(y) = n[F(y)]^{n - 1}f(y)
$$
which is just the derivative of $F$.
