I computed CDF of my empirical distribution using ecdf() function in Matlab for a distribution with 10,000 values. However, the output that I get from it contains only 9967 values. How can I get total 10,000 values for my CDF? Thanks.
I computed CDF of my empirical distribution using ecdf() function in Matlab for a
Share
From a distribution with 10’000 values you’d expect an output of length 10’001. Most likely, your distribution contains 44 NaNs, or duplicate values. The former you check with
sum(isnan(data(:)), the latter withlength(unique(data(:)).