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!