How to pick the j-th percentile of a distribution?
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
pietro
2014 年 6 月 6 日
0 投票
3 件のコメント
Star Strider
2014 年 6 月 6 日
My pleasure!
pietro
2014 年 6 月 7 日
Star Strider
2014 年 6 月 7 日
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.
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!