How to find the change location is a series of data points

2 vues (au cours des 30 derniers jours)
Yong le 23 Oct 2021
Commenté : Ive J le 24 Oct 2021
I have sequences of data points such as the following:
x = [100.0 13.2 63.6 5.2 0.6 0.2 0.2 0.4 0.2 0.2 0.2 0 0.2 0 0]
I need to find the change point of the sequence. By examing the data sequence, it should be at location 5. However, the following command returns the change point location is 14:
idx = findchangepts(x, 'Statistic', 'rms')
My question: which is the better way to segment data points in a sequence like this?
1 commentaireAfficher -1 commentaires plus anciensMasquer -1 commentaires plus anciens
Ive J le 24 Oct 2021
There is no magic way to determine this point of interest, because it heavily depends on lots of variables (e.g. your research question, the nature of data, etc). findchangepts shows the point (assuming only one such a point exsits) at which there is a change based on the criteria defined in Statistic. You can also set MinDistance (by default it's 2 for rms).
x = [100.0 13.2 63.6 5.2 0.6 0.2 0.2 0.4 0.2 0.2 0.2 0 0.2 0 0];
idx = findchangepts(x, 'Statistic', 'rms', 'MinDistance', 3)
idx = 5

Connectez-vous pour commenter.

Catégories

En savoir plus sur Descriptive Statistics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by