Question: stuck with homework problem Problem 1: Please use composition methods introduced in class to answer the following subproblems. Assume we are only allowed to generate

 stuck with homework problem Problem 1: Please use composition methods introduced

stuck with homework problem

in class to answer the following subproblems. Assume we are only allowedto generate u N Uni f (0, 1) (use runif() only). Write

Problem 1: Please use composition methods introduced in class to answer the following subproblems. Assume we are only allowed to generate u N Uni f (0, 1) (use runif() only). Write R code to generate 10,000 random samples from tdistribution with 10 degrees of freedom and plot a histogram. Hint 1: Note if U ~ Unif[0, 1] and V ~ Unif[0, 1] are independent random variables, then ZI = V(-2log(U))cos(2x V) and Zz = V(-2log(U))sin(2x V) are independent standard normals. Hint 2: Note the following identity If Z ~ N(0, 1), then V = Zz ~~ x? Hint 3: Note the following identity S = )_ Z ~ xm Hint 4: Note the following identity If Z ~ /(0, 1) and V ~ x7 are independent, then T = - Z V(Vin) is a t distribution with n df. Hint 5: Compare your results to that of rt(10000,10). If the distribution looks similar (it is probably going to look very slightly different), then you've done the problem correctly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!