Given the probability density function:
f(x;sigma) = 1/sigma if 0<= x <=2 ;
or 0, otherwise.
Where X is a continous random variable,
a. Generate 6 random numbers drawn from [0, 2]. Let this set by a random sample of size n=6.
b. Determine the 1st moment of X.
c. Determine the 2nd moment of X.
d. Obtain an estimator of sigma using the method of moments and then compute the estimate for the data.