Freelancer:
kohleth
My solution
My solution is in pdf, which I can't upload here, but you can go to my link to download it. https://drive.google.com/file/d/0B2uBos7wDlj5QldqYm8xTTJTWmM/view?usp=sharing I have checked my solution my simulating Z in R.