Page 1 of 1

58 2 Random Variable Generation b. The negative binomial distribution, with parameters and p, has mass function ry- P(Y

Posted: Thu Feb 17, 2022 10:59 am
by answerhappygod
58 2 Random Variable Generation B The Negative Binomial Distribution With Parameters And P Has Mass Function Ry P Y 1
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 56 times
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.