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!