Suppose X is a continuous random variable with cdf F, where F is invertible with inverse function F-1 Let U~Unif(0,1).Then the distribution of F-1(U is equal to the distribution of X.This means that X can be simulated as F-1(u) where u is a simulated value from the Unif(0,1) distribution.
(2e-2x x 0 1. Consider the continuous random variable X with pdf given by fx(x) = otherwise
(a) What is the cdf of X? (b) Find E(X). Be sure to show your steps. (c) Determine F-1(U) and use R to simulate 10,000 observations from this pdf by the inverse transform method. (d) Compute the mean of the generated observations and compare the result with E(X) that was obtained in part(b)
(c(2 - y, 2.Suppose Y has pdf fy(y)= 0, otherwise following. Be sure to show your steps.
(a) c (b) F(y) (c) P(1 < Y 2) (d) Mean of Y (e) Variance of Y