- 58 2 Random Variable Generation B The Negative Binomial Distribution With Parameters And P Has Mass Function Ry P Y 1 (29.64 KiB) Viewed 55 times
58 2 Random Variable Generation b. The negative binomial distribution, with parameters and p, has mass function ry- P(Y
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
58 2 Random Variable Generation b. The negative binomial distribution, with parameters and p, has mass function ry- P(Y
58 2 Random Variable Generation b. The negative binomial distribution, with parameters and p, has mass function ry- P(Y = y) = (*+-) p*(1 –p)". y=0,1,..., with mean r(1-P)/p and variance r(1 - p)/p. For = 10 and p = .01, .1,.5, generate 1000 random variables and draw their histograms. Compare the histograms with the probability functions and your generator with rnegbin (which is in the MASS package) c. The logarithmic series distribution has mass function P(X = ) = -(1 - p)* 1=1,2,..., 0<p<1. I logp For p= .001,.01,.5. generate 1000 random variables and draw a histogram. Com- pare the histograms with the probability functions.