I need some help with calculating cumulative distribution.
lets say I have data like that:
data = abs(randn(1000,1));
I have to calculate probability cumulative distribution and bin it to reduce amount of points. I am doing it like that (lets take bin = 50):
[n, x] = hist(data, 50);
y = cumsum(n);
y = y./max(y);
The problem is, that now I have a lot of points close to y=1, but only few close to zero. I’d like to have kind of equal distribution distribution of points (additional binning on y axis?). I hope you know what I mean 🙂 How I can do that?
Thanks!
So, it actually means that in your
datavector many points are close to 0. The usual procedure is to transform the data using log: log2 or log10, depending on the nature of the data.Try
You can also try
sqrtinstead oflogor other functions.UPDATE
Reviewing the question after your comment I think you want to use something like this: