Using only the unirform number generator in R (runif), generate 500…

Question Using only the unirform number generator in R (runif), generate 500… Using only the unirform number generator in R (runif), generate 500 random sample X, where X follows a mixture distribution:           X ~0.3f1+0.7f2where f1 is a normal distribution with mean=5 and variance=2 and f2 is an exponetial distribution with rate lambda=2, i.e..,f2(x)=2e^-2x. Hint: If Z~N(0,1), Then aZ+ b ~ N(b,a^2), where a and b are fixed constants. step by step please  Math Statistics and Probability AMS 597 Share QuestionEmailCopy link Comments (0)