-
Hi Sean, As I shared earlier I have BEA data on Personal Consumption Expenditure. I ran stumpy on one series with date range from 2000 t0 2010 and the following was found:
When I extended the timelines: 2000 to 2020 (additional 10 years) the following was found:
The question is: Why earlier motif was not found when the data existed? Regards Sammeer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@Samraw003 This suggests that as you added more data, the global minima (motif) has changed. I recommend that you plot the matrix profile and see how it changes as you add one more year at a time. What you'll likely see is that the global minima will drop lower as one particular year gets added. Having said that, the original motif (located at index 70) may still be there if plot the data. It's just not the global motif (i.e., the one that has the smallest distance to its nearest neighbor). |
Beta Was this translation helpful? Give feedback.
-
@seanlaw . Thanks for the prompt clarifications. This makes sense as with the current code (your example) we are just picking the lowest values of distance. In one of your videos, you demoed a code that displayed all the motifs on button click. Will it be possible to get that piece of code? Regards Sammeer |
Beta Was this translation helpful? Give feedback.
@Samraw003 This suggests that as you added more data, the global minima (motif) has changed. I recommend that you plot the matrix profile and see how it changes as you add one more year at a time. What you'll likely see is that the global minima will drop lower as one particular year gets added.
Having said that, the original motif (located at index 70) may still be there if plot the data. It's just not the global motif (i.e., the one that has the smallest distance to its nearest neighbor).