Danny
Danny

Reputation: 203

CDF for a truncated poisson distribution

Hi Iam looking for the cumulative distribution function for truncated poisson random variable. I can find it for the regular "poisson cdf", MATLAB gives this:

p = poisscdf(x,lambda) returns the Poisson cdf at each value in x using the corresponding mean parameters in lambda

Is there an analogue to a truncated poisson poisson distribution ?

Upvotes: 0

Views: 1166

Answers (1)

GameOfThrows
GameOfThrows

Reputation: 4510

I would suggest first using the Matlab truncate function to adjust your distribution:

pd = makedist('poiss')
trunc = truncate(pd,1,3) 

for Poisson, it can only be positive.

set a discrete range:

x = 0:.1:4;
distribution = pdf(trunc,x);
cummulative = cdf(trunc,x);

alternatively, you could integrate the pdf function using matlab integrate

Upvotes: 2

Related Questions