panjer

Approximate the distribution of a compound random variable by Panjer recursion.
2.8K Downloads
Updated 17 Mar 2009

View License

Example: plot distribution of compound Poisson/Lognormal

n = 1e4;
xmax = 100;
lam = 10; mu = 0; sig = 1;
[gl,gu,xp,GL,GU]=panjer(@(x)logncdf(x,mu,sig),0,lam,xmax/n,n);
plot(xp,GL,'b-',xp,GU,'r-');

See help for more details.

Cite As

Ben Petschel (2026). panjer (https://uk.mathworks.com/matlabcentral/fileexchange/23313-panjer), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.1.0.0

updated comments

1.0.0.0