I made cdf and pdf for Poisson-Pascal distribution and then find your file. You have one more input argument called "nmax"; and whatever value you enter for "nmax" does not change the result. I think it is redundant. At least my code worked without that auxiliary argument:

The Gauss Hypergeom function pfq works pretty fast , compared with the one of MATLAB. But the performance may not be satisfactory, especially when integration is involved.

With time, and some improvements, this could be a File Exchange treasure. Here is some good documentation on how to share data between workspaces, creating guis, program development.

Dear James,
Thank you very much for such a great work!
I made cdf and pdf for Poisson-Pascal distribution and then find your file. You have one more input argument called "nmax"; and whatever value you enter for "nmax" does not change the result. I think it is redundant. At least my code worked without that auxiliary argument:
y=3;
r=3;
p=0.5;
lambda=1.25;
w=(exp(-lambda)*p^y)/factorial(y);
syms j;
c=symsum(factorial(r*j+y-1)/(factorial(r*j-1)*factorial(j))*((lambda*((1-p)^r)).^j),1,Inf);
u=w*c
Maybe this comment will help you to improve the distribution treasure :)
BR,
Yashar

How about Distribution of sum of non-identically but independly distrubuted uniform RV, is there anyone who have function for this distrubution.
Thanks

The Gauss Hypergeom function pfq works pretty fast , compared with the one of MATLAB. But the performance may not be satisfactory, especially when integration is involved.

With time, and some improvements, this could be a File Exchange treasure. Here is some good documentation on how to share data between workspaces, creating guis, program development.
http://www.mathworks.com/help/techdoc/matlab_prog/f10-60729.html
http://www.mathworks.com/help/techdoc/matlab_prog/f0-38068.html#f0-38470
http://www.mathworks.com/help/techdoc/creating_guis/f13-998449.html
http://www.mathworks.com/help/techdoc/creating_guis/f10-998580.html
http://www.mathworks.com/help/techdoc/matlab_prog/f10-60481.html
http://www.mathworks.com/help/techdoc/matlab_prog/f10-60352.html

Comment only