How to generate zero-truncated negative binomial distribution?

3 visualizaciones (últimos 30 días)
iman0890
iman0890 el 28 de Feb. de 2013
we know that pk(truncated)=pk/(1-p0) so Fk(truncated)=p0(truncated)+p1(truncated)+p2(truncated)+...+pk(truncated) = 0 + [p1/(1-p0)] + [p2/(1-p0)] + ... + [pk/(1-p0)] = 0 + (p1+p2+...+pk)/(1-p0) Fk(truncated)= 0 + (p1+p2+...+pk+p0-p0)/(1-p0) = 0 + (Fk-p0)/(1-p0) we get [(1-p0)*Fk(truncated)]+p0 = Fk y=rand(100) so can we use nbininv([(1-p0)*y+p0],R,P)??

Respuestas (0)

Categorías

Más información sobre Descriptive Statistics and Visualization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by