Let $f(x;\theta )=\frac{2x}{\theta }e^{\frac{-x^{2}}{\theta }}$ be a probability density function of sample $(X_{1},X_{2},...,X_{n})$ where $x\geq 0$. Find unbiased estimator for $\theta$.
Here is my solution : $E\left [ \bar{X} \right ] = E\left [ X \right ]=\frac{1}{\theta }\int_{0}^{\infty }2x^{2}e^{\frac{-x^{2}}{\theta }}dx=\frac{1}{\theta }\int_{0}^{\infty }xe^{\frac{-x^{2}}{\theta }}2xdx$
Let $$ t=\frac{x^{2}}{\theta } (t=\frac{x^{2}}{\theta }\Rightarrow \theta t=x^{2}\Rightarrow x=\sqrt{\theta t},x\geq 0) , dt=\frac{2x}{\theta }d\theta \Rightarrow \theta dt=2xdx$$
$=\frac{1}{\theta }\int_{0}^{\infty }(\theta )^{\frac{1}{2}}e^{-t}\theta dt=\frac{\theta ^{\frac{3}{2}}}{\theta }\int_{0}^{\infty }t^{\frac{1}{2}}e^{-t}dt=\sqrt{\theta }.\Gamma (\frac{3}{2})=\sqrt{\theta }.\frac{\sqrt{\pi}}{2}$
$\Rightarrow E\left ( \bar{X} \right )=\sqrt{\theta }.\frac{\sqrt{\pi}}{2}\Rightarrow E(\frac{4\bar{(X)}^{2}}{\pi})=\theta $
Hence unbiased estimator for $\theta$ is $\hat{\theta }=\frac{4\bar{(X)}^{2}}{\pi}$
Is my solution right? I am not sure the calculation. Any idea will be appreciated.
You correctly calculated that $E(x)=\frac{1}{2}\sqrt{\theta \pi}$. But as noted in the comments this does not allow you to compute $E(x^2)$. If you actually calculate that (wolfram alpha), you will find $$ E(x^2) = \int x^2\ f(x;\theta)\ dx=\theta.$$ which means that $x^2$ is an unbiased estimator of $\theta$.