Question: Suppose X has a Poisson distribution whose parameter value is the outcome of an independent exponential random variable with parameter . (i) Write an R
Suppose X has a Poisson distribution whose parameter value is the outcome of an independent exponential random variable with parameter μ.
(i) Write an R function exppois(k,μ) for simulating k copies of such a random variable.
(ii) Use your function to estimate E[X] for the case μ = 1 and match up with the result of Example 8.7.
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
Solution a To simulate an x from ... View full answer
Get step-by-step solutions from verified subject matter experts
