Тёмный

Robust Anomaly Detection + Seasonal-Trend Decomposition : Time Series Talk 

ritvikmath
Подписаться 161 тыс.
Просмотров 33 тыс.
50% 1

Using the popular seasonal-trend decomposition (STL) for robust anomaly detection in time series!
Code used in this video : github.com/rit...
Data used in this video : github.com/rit...

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@YYLC
@YYLC 4 года назад
Agree with everyone else, absolute gold. Keep it on, cheers!
@ritvikmath
@ritvikmath 4 года назад
Thanks!
@aakuthotaharibabu8244
@aakuthotaharibabu8244 Год назад
very few teachers can be addictive and u r one among them... completed the whole playlist in just 2 days... kudos to u...
@MsKakashi2012
@MsKakashi2012 4 года назад
I've watched the whole 36 videos of this playlist and they were really really helpful..THANK YOU SO MUCH SIR !!
@amitgupta4759
@amitgupta4759 5 месяцев назад
As a data scientist, these techniques I found very helpful, because in real data you need to deal these issues, i would request him to add more videos from machine laerning from his experince , because his way is explain to so simple, I binge watched complete playlist.
@ritvikmath
@ritvikmath 5 месяцев назад
Glad it was helpful!
@sibusisomani1746
@sibusisomani1746 3 года назад
This is Gold GOLD, I take it back it's Platinum
@michealhall7776
@michealhall7776 2 года назад
You are actually the man, I wish you good fortune my friend
@Asparuh.Emilov
@Asparuh.Emilov Год назад
my favorite video about outliers. Absolutely simple, amazingly useful and so easy to implement! Thank you so much!
@vps071
@vps071 3 года назад
I've watched tons of math/data science videos before but always find something missing..finally settled on this channel! continue the great work Ritvik!
@Pidamoussouma
@Pidamoussouma 3 года назад
Lovely small video but worth a million likes
@ritvikmath
@ritvikmath 3 года назад
thanks!
@piercebartine8153
@piercebartine8153 4 года назад
Big fan of your videos! Keep it up~
@ritvikmath
@ritvikmath 4 года назад
Thanks!
@hpix123
@hpix123 11 месяцев назад
Nice video! In this example it might be best to do a multiplicative decomposition by taking a log first, which should get rid of the heteroscedasticity you see in the seasonal and residual components.
@BhuvaneshSrivastava
@BhuvaneshSrivastava 4 года назад
Absolute Gold content.. Thank you for making this video. Also, can you please make a video on how LOESS work? It will help me in understanding what is going on behind the scene. Thanks, Bhuvanesh
@ritvikmath
@ritvikmath 4 года назад
Thanks! And yes I am planning to make that LOESS video soon.
@razielamadorrios7284
@razielamadorrios7284 Год назад
Such a great video, thanks for sharing it! It would be lovely if you can continuing creating this content, and explain LOESS.
@ritvikmath
@ritvikmath Год назад
Thank you! Will do!
@andreluispereira7507
@andreluispereira7507 3 года назад
Man… you are amazing! Please never stop teaching this way… this is pure didactic… Could you explore more videos on how to treat the outliers after detection as you showed with the mean approach from the previous video? Or the mean calc would be just enough to remove the outlier?
@patricka0196
@patricka0196 Год назад
A quick search shows Ben and Jerry's released a limited batch of Chocolate Cherry Garcia ice cream in late 2016.
@Shikamaru23
@Shikamaru23 2 года назад
Great video. One clarification - When creating the lower and upper limit thresholds, wouldn't you want to use the mean and standard deviation of the residuals UP TO (but not including) each point. Otherwise you are using future information, which wouldn't allow you to determine if an event is an outlier in real time.
@ritvikmath
@ritvikmath 2 года назад
yes great point !
@chobblegobbler6671
@chobblegobbler6671 Год назад
@Shikamaru23... Can you explain how to do this
@charlie3k
@charlie3k 4 года назад
Great video! Would love to see a LOESS explanation :)
@missing409
@missing409 8 месяцев назад
i need this video but done in R, great video thank you
@newbie8051
@newbie8051 2 года назад
Amazing explanation !!
@sagardesai1253
@sagardesai1253 3 года назад
Great video, great information, appreciate your help
@bernsbuenaobra3665
@bernsbuenaobra3665 3 года назад
You are a genius! Thanks for the insight.
@RajendraVenkata
@RajendraVenkata 3 года назад
Woow its so clear now!!!!. THANK YOU!!!
@ChristianGarcia-ey9kj
@ChristianGarcia-ey9kj 3 года назад
Hello RitvikMath. Those thing seems so easy for you ..I envy you!! I have one big question for you. Is there a way to use Time series to pick the most "suitable" outcome in a set of finite possible outcomes we have. Not predict but find.
@rajarams3722
@rajarams3722 11 месяцев назад
Excellent
@user-fo9tr3yp4m
@user-fo9tr3yp4m 3 года назад
This video is amazing...
@marceloribeiro916
@marceloribeiro916 3 года назад
Thanks for the video, especially the visuals. Though, do you know any similar command in Stata?
@mustafahadid157
@mustafahadid157 2 года назад
Good video, make one for cyclic decomposition
@user-pe9zx3cp6t
@user-pe9zx3cp6t 2 года назад
Thank you so much for the video! But I have a question on this. What if I want to make a daily anomaly detection check program? Should I calculate the standard deviation for the entire period every time? Or should I set a window size to calculate for the specific amount of time period?
@ananava254
@ananava254 2 года назад
Amazing, thank you so much
@kindjacket
@kindjacket 3 года назад
Once you've identified these anomalies would you consider doing anything with them as they could affect your forecast? Would you consider removing the data points? Or maybe replacing them with something else?
@srilamaiti
@srilamaiti 3 года назад
Crystal clear...thanks for the video...can you please make a video of LOESS theory part? Thanks in advance
@jarahconway7700
@jarahconway7700 3 года назад
Amazing work bro! I got a quick question. If you want to account for future data, and you want to set an anomaly detection threshold, how can you do it? You can't really use lower and upper from the code as lower gives u a negative value. How can we get the actual numbers from the data? Thx!
@user-fs8vl4yi5w
@user-fs8vl4yi5w Год назад
Briliant. I am new to data science and timeseries analysis in general, and i find this video very useful. My question is, how can I quantify or assess the 'strength' of my data's seasonality? more specifically, I want to write a code that automatically detects if my data is seasonal or not. an example of a dataset i want to work on is hourly temperature fluctuations (high temp during the day, low temp during the night). How can I automate a test that checks whether this data follows a seasonal trend or not, and if so at what frequency? Thanks!
@channel_SV
@channel_SV 3 года назад
Can't find any info on how to set "sesonal" and "period" parameters
@ajaysharma-dk3vr
@ajaysharma-dk3vr 2 года назад
Thanks for wonderful Video on STL . I just want to ask you, I am working on real world dataset.When I try to decompose time series into trend and seasonal components, I need to specify period value, but you didn't do that. what is that?
@mrchief3383
@mrchief3383 2 года назад
I often get confuse when interpreting the seasonal_decompose plot. How can we certainly know if the seasonality is daily, weekly, monthly or yearly? I would appreciate a lot your answer
@xuantungnguyen9719
@xuantungnguyen9719 3 года назад
is small residuals (remainder) a good thing? I sometimes found stl, x11, seats retrurn different scalse of seasonality and remainders. How to evaluate a decomposition model? Thanks
@FlaviusAspra
@FlaviusAspra Год назад
How about time series in which the more general trend changes, goes up for 6 months, goes down for 4 months, then up again for 5 months, etc?
@pdrobautista
@pdrobautista 3 года назад
I used it in a production delivery, lol
@pdrobautista
@pdrobautista 3 года назад
@@komalsaini5668 I used my own dataset so so I skip this part, but maybe you could calculate the frequency with a groupby().count() instead of infer_freq
@chobblegobbler6671
@chobblegobbler6671 2 года назад
How do we configure to detect the Anomalies in real time (as soon as possible).. Will there be a delay in identifying if say yesterday's data had an anomaly for a daily frequency dataset
@chobblegobbler6671
@chobblegobbler6671 2 года назад
Bro.. Any help would be great!
@roeiohayon4501
@roeiohayon4501 4 года назад
Hi @ritvikmath, do you trade stocks using time series analysis?
@ritvikmath
@ritvikmath 4 года назад
Yes! I'm planning to soon make some videos on how I choose stocks.
@roeiohayon4501
@roeiohayon4501 4 года назад
@@ritvikmath awesome!
@prakashd842
@prakashd842 4 года назад
@@ritvikmath hi Ravikant , I really learnt good stuff from your previous videos. I really love watching time series .
@charlie3k
@charlie3k 4 года назад
@@ritvikmath Can't wait!
@kenn756
@kenn756 3 года назад
This is cool thanks. Is there a way to get the cyclicity as well in this package?
@luizscheuer670
@luizscheuer670 3 года назад
bro your videos are super easy to understand pls marry me no homo
@iravatidole7181
@iravatidole7181 3 года назад
could u pls cover robust pca for anomaly detection in timeseries, heard its really effective at large scale
@ajaysharma-dk3vr
@ajaysharma-dk3vr 2 года назад
Does STL decomposition works as an additive model ?
@alteshaus3149
@alteshaus3149 3 года назад
Hahaha nice event called "ice cream is gay"
@anduiy
@anduiy 3 года назад
Ice-cream is gay )))) . Not the central point of the video but anyways, also an anomaly.
@user-bf2qy9yb8s
@user-bf2qy9yb8s 2 года назад
can I make my data stationary by removing the trend part for instance? I mean if my data is a called df the do: df - df.trend (in a pseudo code)
@shashwatshekhar6867
@shashwatshekhar6867 Год назад
when i use plt.plot() to print the base plot it says unhashable type: 'numpy.ndarray'
@johnysmith1375
@johnysmith1375 2 года назад
Hey, ice_cream_interest = ice_cream_interest.asfreq(pd.infer_freq(ice_cream_interest.index)) this set the column `interest` to NaN Do not know what I'm doing wrong.
@somyatripathi6164
@somyatripathi6164 Год назад
Hi, I am facing the same issue. Did you find a solution?
@miaqiu208
@miaqiu208 Год назад
@@somyatripathi6164 Try loading the csv with "ice_cream_interest = pd.read_csv('ice_cream_interest.csv',parse_dates=[0], index_col=0)".
@piscolero43
@piscolero43 Год назад
@johnysmith1375 , this will work: ice_cream_interest = pd.read_csv('./data/ice_cream_interest.csv') ice_cream_interest["month"] = pd.to_datetime(ice_cream_interest["month"]) # add this line ice_cream_interest.set_index('month', inplace=True) ice_cream_interest = ice_cream_interest.asfreq(pd.infer_freq(ice_cream_interest.index))