# Finding the percentile of a time series

10 Ansichten (letzte 30 Tage)
John Doe am 22 Mär. 2018
Bearbeitet: the cyclist am 23 Mär. 2018
Dear all,
I hope this finds you well.
I had a question concerning quantiles/percentiles. I want to know the 90th percentile of my time series, because I want to use that value as a threshold later on.
Is it enough to use the quantile() or the prctile() commands on my data set, or do I have to go with a different approach that involves sorting my data, finding the standard deviation, etc. or Find the distribution of my data then look at the tails?
Also my time series has NaNs in them. Not sure if that affects the commands.
This is a dropbox link to my data:
https://www.dropbox.com/s/k838d1ww0wj5s38/Help-Data.mat?dl=0
Thank You!!
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

the cyclist am 22 Mär. 2018
The order of the inputs will not affect the value of the quantile (using either of those functions). You should not need to do any kind of sorting, or "manually" calculate the quantile.
##### 2 KommentareKeine anzeigenKeine ausblenden
John Doe am 23 Mär. 2018
So using those input functions should give me that 90th percentile value for my time series, right?
the cyclist am 23 Mär. 2018
Bearbeitet: the cyclist am 23 Mär. 2018
Yes.
prctile(Signal,90)
will give the value that 90% of your values are below. The output of that is zero, because about 94% of the values in Signal are zero.

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Descriptive Statistics 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!

Translated by