Any alternative to "quantile" function?

조회 수: 8 (최근 30일)
Meshooo
Meshooo 2016년 1월 14일
댓글: Meshooo 2016년 1월 18일
Dear all,
I want to run a software that requires the quantile function from the Statistics and Machine Learning Toolbox.
I only have the image processing toolbox. Is there any alternative way or function to the quantile function?
Meshoo

채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 14일
The crude method would be to sort() the data, and divide up the resulting vector into equal chunks and look at the values there to determine appropriate boundaries.
This obviously has difficulties with duplicate entries that happen to fall at the boundaries. I have no idea how that is normally dealt with. Consider for example that bimodal distributions (only two distinct values) cannot be divided up into distinct quartiles, and even if you toss in a small number of other values so that you have at least as many distinct values as quantiles, clearly you cannot promise that you will get bins of the same width.
But sort and divide up might be good enough for your purposes.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by