Answer to Question #102347 in Statistics and Probability for Peter Gemayel

Question #102347
Consider the target p.d.f. f(x) =((2/π)√1−x2, −1 ≤ x ≤ 1, 0, otherwise.
(a) (3 marks). Show that f(x) is a p.d.f. (b) (5 marks). Write down an algorithm for generating X ∼ f by the simple accept-reject method expressing your results in terms of i.i.d. U1,U2 ∼ U[0,1]. (c) (3 marks). On average, how many uniform random numbers Ui ∼ U[0,1] are needed to generate one X ∼ f by this method? (d) (3 marks). Using the free software R, generate a sample from X ∼ f using the simple accept-reject method. In particular, use the statement set.seed(12345) and 10,000 iterations. At the same time, verify part(b) by constructing a histogram with f(x) superimposed on it, and also verify part(c).
1
Expert's answer
2020-02-06T13:49:15-0500
Dear Peter Gemayel, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS