Calculating the expected value of the maximum of some RVs

204 Views Asked by At

I am working on the following exercise:

Let $X_1,\ldots,X_n$ be a sample from a uniform distribution $U [0,\theta]$. Consider $$A_n = \frac{n+1}{n} \cdot \max\{X_1,\ldots,X_n\}.$$ Prove that $E(A_n) = \theta$.

I think we may just assume that our RVs are iid, otherwise I would really not know what to do.

W.L.O.G. we assume that the maximum RV is $X_n$. Now we calculate the CDF of $\max\{X_1,\ldots,X_n\}$ :

$$F_{X_n} = P(X_{n} \le x) = P(X_i \le x \text{ for all } i = 1,\ldots,n) = \prod_{i=1}^{n} P(X_i \le x) = x^n$$

And therefore the PDF is $f(x) = n x^{n-1}$.

Now the expected value is:

$$E(X) = \frac{n+1}{n} \int_0^\theta x \cdot n x^{n-1}\,\mathrm dx = \frac{n+1}{n} \cdot \frac{n \cdot\theta^{n+1}}{n+1} = \theta^{n+1}$$

This is obviously not $\theta$. What am I doing wrong?

2

There are 2 best solutions below

1
On BEST ANSWER

If $X$ is uniformly distributes on $[0,\theta]$ then $P\{X\leq x\}=\frac x {\theta}$ (for $0 \leq x \leq \theta$) and not $x$ ; the density is $\frac 1 {\theta}$ on $(0,\theta)$. Once you make this correction you will get the right answer.

0
On

Alternative route:

In general if $X$ is a nonnegative random variable then it can be shown that $$\mathbb EX=\int_0^{\infty}1-F_X(x)dx$$

Applying that for $\theta=1$ we find:$$\mathbb E\max(X_1,\dots,X_n)=$$$$\int_0^11-x^ndx=\left[x-\frac1{n+1}x^{n+1}\right]^1_0=\frac{n}{n+1}$$

Then in the general case we find $\frac{n\theta}{n+1}$ (every $X_i$ is multiplied with $\theta$) for the expectation of the maximum and consequently: $$\mathbb EA_n=\frac{n+1}{n}\frac{\theta n}{n+1}=\theta$$