Bivariate Gamma Distribution (CDF, PDF, samples)
This zip contains functions that allow
- to draw random samples from any arbitrary bivariate Gamma distribution, with Gamma distributed marginals. The user should specify the shape and scale parameters of the marginals, as well as the linear correlation coefficient.
The algorithm is based on Schmeiser, B. W. and Lal, R. (1982), "Bivariate Gamma Random Vectors", Operations Research, Vol. 30, No. 2, pp. 355-374 (INFORMS)
- to evaluate <at (x, y)> the joint CDF and PDF of a pair of positively correlated Gamma random variables, with (user specified) shape and scale parameters and linear correlation coefficient ( > 0 ).
The code is based on Smith, Adelfang and Tubbs (1982): "A bivariate Gamma Probability Distribution with Application to Gust Model", NASA Technical Memorandum 82483, National Aeronautics and Space Administration.
引用格式
Geert Van Damme (2024). Bivariate Gamma Distribution (CDF, PDF, samples) (https://www.mathworks.com/matlabcentral/fileexchange/26682-bivariate-gamma-distribution-cdf-pdf-samples), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- MATLAB > Mathematics > Random Number Generation >
- MATLAB > Mathematics > Elementary Math > Special Functions > Gamma Functions >
- Engineering > Industrial Engineering > Operations Research >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.6.0.0 | Apparently the Bivariate Gamma random number generator requires the GaussLegendre_3.m file for performing a numerical integration step. The files has been added now. |
||
1.4.0.0 | A function was added to draw samples from an arbitrary bivariate gamma distribution, with gamma distributed marginals |
||
1.3.0.0 | Apparently the code couldn't handle a vector input for x (y). This has been corrected now. |
||
1.2.0.0 | - Added an .mfile for computing the bivariate PDF of positively correlated Gamma variates.
|
||
1.1.0.0 | The code has been adjusted, in order to be able to deal with both equal and unequal shape parameters. Also, for reasons of computational efficiency, some constant factors have been changed. |
||
1.0.0.0 |