Compound Poisson simulation

버전 1.1.0.0 (4.82 KB) 작성자: Ben Petschel
benchmarks several versions of code for generating Compound Poisson random variables
다운로드 수: 2.5K
업데이트 날짜: 2009/12/10

라이선스 보기

Compound Poisson random variables are of the form S=X1+...+XN where the Xj are iid random variables and N is random with the Poisson distribution. Compound Poisson variables have many applications in physics and finance.

This file benchmarks several codes for generating 1 million random samples from a Compound Poisson distribution where the terms are Lognormal with mu=0 and sigma=1 and the Poisson frequency is 10.

The run times vary by a factor of more than 200 between the fastest and slowest versions (in R2009b). Interestingly, the fastest code is 10 times faster than the neat 1-liner that uses ARRAYFUN.

Requires POISSRND (Statistics Toolbox) and RANDRAW (FEX #7309).

인용 양식

Ben Petschel (2024). Compound Poisson simulation (https://www.mathworks.com/matlabcentral/fileexchange/26042-compound-poisson-simulation), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

받음: RANDRAW

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

updated comments

1.0.0.0