Any one can help with the code for drawing observations from Dagum distribution with parameters (a,b,p). Note that dagum is known also as Inverse Burr distribution and has the following relation to singh-maddala. if X is distributed as Dagum (a,b,p), then 1/x is distributed as Singh-Maddala (a,1/b,p), Also note that Singh-Maddala is another name for Burr 12 distribution.
What I know is that we draw from Singh-Maddala in Matlab as:
x=random('burr', a, b, p,n,1); where n is the number of observations.
Appreciate your help!!

 채택된 답변

Roger Stafford
Roger Stafford 2016년 5월 30일

0 개 추천

According to the Wikipedia site
https://en.wikipedia.org/wiki/Dagum_distribution
the cumulative distribution function of the Dagum distribution is:
F(x;a,b,p) = (1+(x/b)^(-a))^(-p)
Accordingly, taking the inverse of this and substituting rand(n,1) for F(x;a,b,p) gives:
x = b./((1./rand(n,1).^(1/p))-1).^(1/a);
This should produce samples with the Dagum distribution with parameters a, b, and p.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

질문:

2016년 5월 29일

댓글:

2016년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by