How to pick the j-th percentile of a distribution?
Ältere Kommentare anzeigen
Hi all,
I have some data and I want to pick the j-th percentile of the distribution.
Here an example:
a=2000;
b=300;
c=a+(b)*randn(100,1);
cdfval = fitdist(arg_1, 'normal');
So how can I get the 50° percentile of the distribution, that it is 2000?
thanks
Akzeptierte Antwort
Weitere Antworten (1)
pietro
am 6 Jun. 2014
0 Stimmen
3 Kommentare
Star Strider
am 6 Jun. 2014
My pleasure!
pietro
am 7 Jun. 2014
Star Strider
am 7 Jun. 2014
If you know the distribution, then estimate its parameters from your experimental data (the fitdist function is probably best here) and calculate the percentiles from the cumulative distribution function for that distribution. Use the icdf function for the appropriate distribution, Don’t use prctile in that situation.
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!