Qudrivariate and pentavariate normal orthant probabilities

版本 1.0.0.0 (3.7 KB) 作者: Khaled Hamed
Evaluate the qudrivariate and pentavariate normal distribution orthant probabilities
355.0 次下载
更新时间 2010/2/9

查看许可证

Two functions are included. The first is 'quadriorth.m' which calculates the orthants probabilities of the quadrivariate normal distribution. Imagine a 4-dimensional space divided into sub-spaces according to the sign of each variable, which results in 2^4 = 16 orthants, say + + + +, + + + –, + + – +, + – + +, ..., and – – – –. This function gives the probability content in each of these 16 orthants. The method is based on a recent paper by Sinn and Keller (2010) which reduces the 4-dimensional integral to the sum of four one-dimensional ones (which can be treated numerically as one integral).

Similarly, the function 'pentaorth.m' calculates the orthant probabilities of the pentavariate normal distribution. In this case we have 2^5 = 32 orthants, say + + + + +, + + + + –, + + + – +, ..., etc. The calculations are based on a simple formula due to Kendall and Stuart (1976) which express the pentavariate orthant probabilities in terms of lower dimension orthants (quadrivariate, trivariate, bivariate, and univariate). Note that 'pentaorth.m' issues multiple calls to 'quadriorth.m'.

The orthant probabilities in both cases above can be calculated by using the multivariate normal cumulative distribution function 'mvncdf' in the Matlab statistics toolbox. However, the provided two functions are much faster, especially if high accuracy of the results is considered. The code may benefit from some vectorization and consideration of symmetries, which will hopefully be achieved in upcoming versions to further enhance speed.

引用格式

Khaled Hamed (2024). Qudrivariate and pentavariate normal orthant probabilities (https://www.mathworks.com/matlabcentral/fileexchange/26634-qudrivariate-and-pentavariate-normal-orthant-probabilities), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0