1-Use the invers transform method, write an algorithm to generate a random variable from binomial distribution with n trails and p probability of success (i.e. X~B (n, p)). Hint: p(X=i+1)=(n-i)/(i+1)...


1-Use the invers transform method, write an algorithm to generate a random variable from binomial distribution with n trails and p probability of success (i.e. X~B (n, p)).


Hint:


p(X=i+1)=(n-i)/(i+1) p/(1-p) p(X=i)


2- use R program code to write this algorithm





Code with comments and output screenshot. Thank you!!



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here