Code covered by the BSD License  

Highlights from
panjer

Be the first to rate this file! 15 Downloads (last 30 days) File Size: 2.92 KB File ID: #23313

panjer

by Ben Petschel

 

17 Mar 2009 (Updated 17 Mar 2009)

Approximate the distribution of a compound random variable by Panjer recursion.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
17 Mar 2009

updated comments

Tag Activity for this File
Tag Applied By Date/Time
panjer Ben Petschel 17 Mar 2009 15:17:59
compound distribution Ben Petschel 17 Mar 2009 15:17:59
panjer recursion Ben Petschel 18 Mar 2009 10:52:50

Contact us at files@mathworks.com