In ecdf (empirical cumulative distribution function), how can I find the indices of corresponding data point used for any chosen cumulative probability?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matlabio
am 15 Jan. 2017
Kommentiert: Matlabio
am 19 Jan. 2017
Hi everyone, I'm trying to find the indices of data points used in the ecdf function. Apparently, the original data used gets sorted, and I'm trying to get the original unsorted data points and match them to the probabilities found. Suppose I have [f1,bi] = ecdf(minbi). Once ecdf is calculated, data in bi gets sorted in ascending order, and so are the probabilities obtained in f1. How can I can 'unsort' vector bi and match the obtained probabilities to the corresponding original data points bi? Thanks in advance.
0 Kommentare
Akzeptierte Antwort
the cyclist
am 15 Jan. 2017
I think you could do what you want with
[tf loc] = ismember(minbi,bi);
loc will be the indices you want.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Hypothesis Tests finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!