How can I calculate the empircal CDF from an empirical PDF when dimensions are greater than 2?
5 次查看(过去 30 天)
显示 更早的评论
I would like to calculate the empirical cumulative distribution of a data set with more than 2 dimensions. The only examples I have been able to find are for bivariate data (using hist3 and cumsum). Below is an example 3 dimensional PDF. I would like a robust solution that can accommodate any number of dimensions, if possible. Any help would be very much appreciated. Thank you.
sPDF(1,1,1) = 1;
sPDF(2,1,1) = 2;
sPDF(1,2,1) = 3;
sPDF(2,2,1) = 4;
sPDF(1,1,2) = 5;
sPDF(2,1,2) = 6;
sPDF(1,2,2) = 7;
sPDF(2,2,2) = 8;
0 个评论
采纳的回答
Star Strider
2014-7-28
10 个评论
Peter Mills
2018-2-23
What if I want to calculate the empirical cdf from an empirical pdf. Basically the question above but with data containing NaN's. I've tried cumsum but I get NaN's for every value after the first NaN value
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!