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!!
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here