A continuous random variable X has a Rayleigh distribution if and only if its probability density function is
f(x)= 2kxe^(-kx^2), for x>0
0 elsewhere
where k>0 is a parameter.
a) Find E(X). (Hint: Use the propeties of the gamma function)
b) Prove that E(X^2)=1/k
How to do these two questions?
Thank you!