Normalise multivariate probability density
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have some multivariate data of dimension 4. I have used mvnpdf to compute their densities.
However, I would like to normalise the densities by using a partition function. I wish to calculate:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152196/image.png)
where pi_l is some constant and N(v;mean;covariance) is the mvnpdf and v is a data point.
How would i go about this?
0 个评论
回答(1 个)
Dave Behera
2015-12-2
To compute the integral above, you can use the Multivariate normal cumulative distribution function 'mvncdf' described here:
Also, you may need to multiply the constant pi_l (present within the integral above) to the output of 'mvncdf' function to get the correct result.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!