Stochastic Gradient Descent, Clearly Explained!!!

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • Even though Stochastic Gradient Descent sounds fancy, it is just a simple addition to "regular" Gradient Descent. This video sets up the problem that Stochastic Gradient Descent solves and then shows how it does it. Along the way, we discuss situations where Stochastic Gradient Descent is most useful, and some cool features that aren't that obvious.
    NOTE: There is a small typo at 9:03. The values for the intercept and slope should be the most recent estimates, 0.86 and 0.68, instead of the original random values, 0 and 1.
    NOTE: This StatQuest assumes you already understand "regular" Gradient Descent. If not, check out the 'Quest: • Gradient Descent, Step...
    When I was researching Stochastic Gradient Descent, I found a ton of cool websites that provided lots of details. Here are some of my favorites:
    Sebastian Ruder has a nice write-up: ruder.io/optimizing-gradient-d...
    ...as the Usupervised Feature Learning and Deep Learning Tutorial: deeplearning.stanford.edu/tuto...
    For a complete index of all the StatQuest videos, check out:
    statquest.org/video-index/
    If you'd like to support StatQuest, please consider...
    Buying The StatQuest Illustrated Guide to Machine Learning!!!
    PDF - statquest.gumroad.com/l/wvtmc
    Paperback - www.amazon.com/dp/B09ZCKR4H6
    Kindle eBook - www.amazon.com/dp/B09ZG79HXC
    Patreon: / statquest
    ...or...
    TH-cam Membership: / @statquest
    ...a cool StatQuest t-shirt or sweatshirt:
    shop.spreadshirt.com/statques...
    ...buying one or two of my songs (or go large and get a whole album!)
    joshuastarmer.bandcamp.com/
    ...or just donating to StatQuest!
    www.paypal.me/statquest
    Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
    / joshuastarmer
    Corrections:
    9:03. The values for the intercept and slope should be the most recent estimates, 0.86 and 0.68, instead of the original random values, 0 and 1.
    9:33 the slope should be 0.7.
    #statquest #sgd

ความคิดเห็น • 538

  • @statquest
    @statquest  4 ปีที่แล้ว +53

    Corrections:
    9:03. The values for the intercept and slope should be the most recent estimates, 0.86 and 0.68, instead of the original random values, 0 and 1.
    9:33 the slope should be 0.7.
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

    • @yifanzhu8999
      @yifanzhu8999 4 ปีที่แล้ว +3

      Nice to see this upon getting confused XD. Great Job!

    • @louislesage3856
      @louislesage3856 3 ปีที่แล้ว +1

      At 9:40, in the top right corner : ...and the new line ... slope 0.07 is a typo too. Should be 0.7!

    • @statquest
      @statquest  3 ปีที่แล้ว

      @@louislesage3856 You are correct. Dang, I hate typos. ;)

    • @adelsalaheldeen
      @adelsalaheldeen 3 ปีที่แล้ว

      I came down to the comments to check if I am right and thanks god I am right :)
      I have another question regarding the new data sample
      what if this new data sample is an outlier?
      the step will make the line fit to this new point only and the old samples will be ignored
      Do we need to add a check for the outliers before we apply the stochastic gradient descent?

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      @@adelsalaheldeen You should always check for outliers, no matter what you are doing.

  • @letranminhkhoa7492
    @letranminhkhoa7492 7 หลายเดือนก่อน +44

    I love it that you only go slow, and really slow, and do not assume people have understood everything and skip steps at all. Truly a wonderful explanation for a seemingly hard-to-grasp stuff! Keep up your good work!!

    • @statquest
      @statquest  7 หลายเดือนก่อน +1

      Thank you!

  • @rrrprogram8667
    @rrrprogram8667 5 ปีที่แล้ว +387

    Without this channel... Machine learning is incomplete...
    MEGAAAA BAMMMMM

    • @dani123456785
      @dani123456785 4 ปีที่แล้ว

      Can u tell me about batch gradient descent

    • @dani123456785
      @dani123456785 4 ปีที่แล้ว

      Any video ?????????

    • @Ertihan
      @Ertihan 4 ปีที่แล้ว +1

      Pretty sure you mean... MECHA BAM! I’ll see myself out...

    • @sandyjust
      @sandyjust 4 ปีที่แล้ว

      @@dani123456785 ruder.io/optimizing-gradient-descent/index.html#batchgradientdescent

  • @Privacy-LOST
    @Privacy-LOST 4 ปีที่แล้ว +93

    Every time I type some notion and one of your videos pops out, I know the probability of understanding that notion is 100%, and that the effort function is already minimized so I quickly converge towards optimal comprehension :D
    Hail to great JS !

    • @statquest
      @statquest  4 ปีที่แล้ว +23

      This is awesome!!! Can I quote you on my website?

  • @xfadl
    @xfadl 2 ปีที่แล้ว +34

    this video is so much better than what we have in university. Thank you man, you are a legend

    • @statquest
      @statquest  2 ปีที่แล้ว +3

      Thank you!

    • @walterpinkmantanay1577
      @walterpinkmantanay1577 ปีที่แล้ว +2

      Our University's professor just screenshoted the whole gradient descent and stochastic gardient descent video and that was our notes for the topic😶‍🌫😶‍🌫, should've just pasted the link to Josh's video tbfr😮‍💨😮‍💨

  • @danmartin7198
    @danmartin7198 5 ปีที่แล้ว +166

    Best explanation ever. at first I was sceptical but the BAMs kinda grow on you after a while :)

  • @khadajhin4019
    @khadajhin4019 4 ปีที่แล้ว +25

    This is like my second video on your channel and holy moly everything you explain is so clear and just clicks in my head. I truly appreciate this, you are a blessing to the learners

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      Awesome! Thank you very much! :)

  • @insanaprilian8184
    @insanaprilian8184 4 ปีที่แล้ว +4

    Just leave a mark here to appreciate every work you did Mr. Josh, thank you very much

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you! :)

  • @vuphong2003
    @vuphong2003 4 ปีที่แล้ว +23

    Super helpful, taught me more than my uni prof, your teaching method is effective and hilarious at the same time.

    • @statquest
      @statquest  4 ปีที่แล้ว +2

      Thanks! :)

    • @vuphong2003
      @vuphong2003 4 ปีที่แล้ว +1

      @@statquest Btw, what is the criteria for the mini-batch stochastic gradient descent.
      Like if I have a number of data, should I group the ones whose values are closely related
      E.g.: 10 , 30, 69, 38, 59, 16
      Then I need to group them into groups --> (10, 16) (30, 38) (59, 69) and randomly select an element in a group then do the math
      Or I just go with three random data point and do the math?
      Thanks!

  • @shivujagga
    @shivujagga 4 ปีที่แล้ว +9

    Bro, I don't know how you did it. You are gooood!
    Your subscribers increased like crazzy since the last time I came here too!

    • @statquest
      @statquest  4 ปีที่แล้ว +4

      Thank you very much! Hooray! The channel is growing and that is very exciting for me. It's an inspiration to keep making videos. :)

  • @user-lw8zw5lq8l
    @user-lw8zw5lq8l 3 หลายเดือนก่อน +2

    This man should be awarded !!
    I feel ML is a simple math putted out it in a complicated way, and people like Josh exactly pop in there and makes the math simply understandable....!
    And ofc his teachings are BAAAAAAAAAAM!
    Cant belive taking his wisdom which was made past 4 years!

    • @statquest
      @statquest  3 หลายเดือนก่อน +1

      Thanks!

  • @pavanvamsitadikonda3843
    @pavanvamsitadikonda3843 3 ปีที่แล้ว +6

    Thank you Mr. Josh. Your videos are really game changers. I love them and your songs even more. I will buy so much of your merchandise when I am employed

  • @orioncloud4573
    @orioncloud4573 3 ปีที่แล้ว +2

    You are great. I'm glad I found you. Whenever I get stuck with the theory of something, you're there to help.

  • @tekkkkkkkkkkk
    @tekkkkkkkkkkk 3 ปีที่แล้ว +6

    I am sooo sad that I did not find this channel sooner, but now I know what I'm going to do the next weeks or month :) Great job! Really informative videos!

  • @gmayank32
    @gmayank32 4 ปีที่แล้ว +2

    Thank you for explaining this clearly. Your videos are easy to understand. Thank you so much. Please make a video on SGD with momentum and issues of SGD with saddle points.

  • @gilao
    @gilao หลายเดือนก่อน +1

    Another great and simple video. It's always a pleasure to see that there is a stat-quest video about a thing I'm looking for. Thank you!

    • @statquest
      @statquest  หลายเดือนก่อน +1

      Glad you enjoyed it!

  • @ramankumar41
    @ramankumar41 11 หลายเดือนก่อน +3

    You are the best ML instructor I have so far come across !!!

    • @statquest
      @statquest  11 หลายเดือนก่อน +1

      Wow, thanks!

  • @tostupidforname
    @tostupidforname 4 ปีที่แล้ว +2

    I gotta say this channel is amazing. Its especially nice as an amazing complement to the math side i learn in university.

  • @Pwaing
    @Pwaing 5 หลายเดือนก่อน +2

    This is gold, appreciate it! I really like how you take things one step at a time. It helps me understand better!! BAM!!!

    • @statquest
      @statquest  5 หลายเดือนก่อน +1

      BAM! :)

  • @samanehkhakbaz8815
    @samanehkhakbaz8815 5 ปีที่แล้ว +3

    Thanks for these amazing videos and especially for the smile you bring on my face with each BAM :)

    • @statquest
      @statquest  5 ปีที่แล้ว

      Thank you so much! :)

  • @Beenum1515
    @Beenum1515 4 ปีที่แล้ว +2

    Brilliant explanantion. I was forgetting one little thing which was bugging me about SGD. This helped alot!

  • @abigailbarton195
    @abigailbarton195 2 ปีที่แล้ว +2

    I am super dunked off of vodka and coffee right now and I feel like I just understood every complex maths class I've ever taken before. I understand now! THANK YOU! even my impaired mind can comprehend this at X2 speed.

  • @eulerthegreatestofall147
    @eulerthegreatestofall147 ปีที่แล้ว +2

    Josh, you make everything easy to understand! Many Thanks!

  • @thegt
    @thegt ปีที่แล้ว +1

    Thanks for your work! Your explanation is well thought, clear, and entertaining.

    • @statquest
      @statquest  ปีที่แล้ว

      You're very welcome!

  • @charlinemontial9217
    @charlinemontial9217 5 ปีที่แล้ว +3

    I am here to study for an exam I'll have soon, and you are saving me lots of time. Plus, it's so much more entertaining than my incomprehensible slides ! THANK YOU !

    • @statquest
      @statquest  5 ปีที่แล้ว +2

      Good luck on your exam! :)

    • @charlinemontial9217
      @charlinemontial9217 5 ปีที่แล้ว +2

      @@statquest Thank you so much !! Please keep it up with your amazing videos !

    • @statquest
      @statquest  5 ปีที่แล้ว +2

      How did the exam go?

    • @charlinemontial9217
      @charlinemontial9217 5 ปีที่แล้ว +1

      @@statquest you are the nicest person in this world! It is on Thursday so we will see :oo

    • @charlinemontial9217
      @charlinemontial9217 4 ปีที่แล้ว +4

      @@statquest I passed my exam and got my bachelor this year!! Thank you so much!

  • @SarcasticOnion
    @SarcasticOnion 2 ปีที่แล้ว +1

    I'm writing my thesis, and you are my hero

    • @statquest
      @statquest  2 ปีที่แล้ว

      Good luck! :)

  • @Yangselw
    @Yangselw 4 ปีที่แล้ว +7

    Dude you’re just freakin good at explaining this stuff

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you! :)

    • @mohammedouallal2
      @mohammedouallal2 3 ปีที่แล้ว +1

      Man, when you love something you could achieve great things. This lecture is for Garduate and Doctorants level. I would say even a high school student can understand this, and this is the trick! Sorry but not everyone can do it... Joshua, congratulations!

    • @statquest
      @statquest  3 ปีที่แล้ว

      @@mohammedouallal2 Thank you very much! :)

  • @thebiggerpicture__
    @thebiggerpicture__ ปีที่แล้ว +1

    I'm literally liking this video and commenting after the intro song. Well done!!

  • @giuliocipriani4659
    @giuliocipriani4659 4 ปีที่แล้ว +6

    Very helpful! Everything is clear and well explained: super BAM!

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you! :)

  • @manasatallam108
    @manasatallam108 5 ปีที่แล้ว +1

    Your videos are simply amazing. A big thank you!!!

  • @abhisheksaxena6413
    @abhisheksaxena6413 4 ปีที่แล้ว +2

    best channel for machine learning with quality content

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      Thank you! :)

  • @philrobinson2924
    @philrobinson2924 5 ปีที่แล้ว +10

    I'm not sure what I like more: the clear examples or Josh's silly smooth voice on the "double bam"

  • @yulinliu850
    @yulinliu850 5 ปีที่แล้ว +1

    Great job! Thanks Josh!

  • @hungrywaffle123
    @hungrywaffle123 2 ปีที่แล้ว +1

    This channel is a GEM

  • @SurrenderPink
    @SurrenderPink 5 ปีที่แล้ว +6

    Triple BAM!? 💥 My heart can’t take it! Quest on. 👍

  • @barankaplan4308
    @barankaplan4308 4 ปีที่แล้ว +1

    you are born to explain ML !

  • @riteish01
    @riteish01 2 ปีที่แล้ว +1

    One word ! Revolutionary
    Lots of love from India 🇮🇳
    Bam 💥

    • @statquest
      @statquest  2 ปีที่แล้ว

      Thank you! :)

  • @parvathyprathap4344
    @parvathyprathap4344 2 ปีที่แล้ว +1

    Short and Clear explanation. Thanks a lot!!!

  • @stevenicholes5649
    @stevenicholes5649 4 ปีที่แล้ว +4

    This + bandcamp?? Dude you are my hero

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      Thanks! :)

  • @ibanguniverse811
    @ibanguniverse811 5 ปีที่แล้ว +2

    please upload every day, you R my Machine Learning Hero

  • @alihaider2655
    @alihaider2655 2 ปีที่แล้ว +2

    Best explanation in the shortest time possible

  • @thomasbates9189
    @thomasbates9189 8 หลายเดือนก่อน +1

    You're a special kind of awesome! I have learned so much from your videos! Thank you!

    • @statquest
      @statquest  8 หลายเดือนก่อน +1

      Thanks!

  • @j8ahmed
    @j8ahmed 3 ปีที่แล้ว +1

    Another solid video. Thanks a million!! I had to go through a bit of problem solving to neatly wrap my functions and compare the execution times in Python. But yeah, I found that on the same data set (small in size) regular gradient descent (batch gradient descent) was faster but was less accurate than Stochastic gradient descent in calculating the slope & intercept for the line of best fit.
    My Example:
    - 13 data points
    - Solved for Slope & Intercept using both types of gradient descent
    - Used Sum of squared residuals derivative
    Batch Gradient Descent Time = 0.0967 s
    Stochastic Gradient Descent Time = 1.2740 s
    Linear Regression function from scipy stats = 0.0015 s

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      Very cool! :)

  • @89rmehra
    @89rmehra 4 ปีที่แล้ว +1

    Thank you.. Your video is very helpful in breaking down the concepts to basics :)

    • @statquest
      @statquest  4 ปีที่แล้ว

      Glad it was helpful!

  • @danielromero-alvarez5392
    @danielromero-alvarez5392 5 ปีที่แล้ว +2

    Your channel is super incredible, it has helped me a lot and I always recommended to everybody! What about a statquest of time series analysis? Pleaseeeeeee! thanks! :) Triple BAAAAAM!!!

    • @statquest
      @statquest  5 ปีที่แล้ว +3

      Time series is on the to-do list. It will still be awhile before I get to it, but I'll do my best.

    • @danielromero-alvarez5392
      @danielromero-alvarez5392 5 ปีที่แล้ว

      @@statquest Super BAAAAM! thanks for the answer! It will be life changing! :) keep up the amazing work!

  • @pat4rush
    @pat4rush 5 ปีที่แล้ว +3

    Great videos. Suggestions for future videos: Kernel / Support Vector Machines. ICA (Independent Component Analysis). SOM (Self-Organizing Map). Convolutional Nets. Backpropagation algs for NN training.

    • @TheAbhiporwal
      @TheAbhiporwal 5 ปีที่แล้ว +2

      Yes, eagerly waiting for the video on Support vector machines.

  • @apurvasingh3630
    @apurvasingh3630 4 ปีที่แล้ว +1

    Thank you so much!! Could you please do a video on normal equations?? Subbed!!!

  • @jaelbutler7966
    @jaelbutler7966 4 ปีที่แล้ว +1

    Thank you for such a good explanation!!

  • @petercummings5230
    @petercummings5230 3 ปีที่แล้ว +1

    I love your channel! Could you make videos on reinforcement learning?

  • @GauravSingh-ku5xy
    @GauravSingh-ku5xy 3 ปีที่แล้ว +1

    Thanks man. It looks easy when learned from your channel.

  • @shelo1747
    @shelo1747 ปีที่แล้ว +1

    brief and clear explanation, great

    • @statquest
      @statquest  ปีที่แล้ว

      Glad you liked it!

  • @trevorfedyna1155
    @trevorfedyna1155 3 ปีที่แล้ว +11

    5 seconds into the intro: *smashes subscribe*

  • @JtotheAKOB
    @JtotheAKOB 3 ปีที่แล้ว +2

    dude....you are funny....honestly.....i didnt think i would laugh while learning about SGD....i was suprised, entertained and amazed by your video. thanks for that. now i go back to writing my stuff :D

    • @statquest
      @statquest  3 ปีที่แล้ว

      Glad you enjoyed it!

  • @isseym8592
    @isseym8592 ปีที่แล้ว

    I would love if you make a series/a playlist of all the basics of Machine Learning videos. Found the best channel for ML

    • @statquest
      @statquest  ปีที่แล้ว

      See: statquest.org/video-index/#machine

    • @isseym8592
      @isseym8592 ปีที่แล้ว +1

      @@statquest 0.o you are a savior!!!

  • @chyldstudios
    @chyldstudios 5 ปีที่แล้ว +1

    The musical intro was LIT

  • @toxic_narcissist
    @toxic_narcissist 3 ปีที่แล้ว +1

    Clearly explained indeed! Great video!

    • @statquest
      @statquest  3 ปีที่แล้ว

      Thank you! :)

  • @pranitadas3479
    @pranitadas3479 4 ปีที่แล้ว

    I loved the way you explain the concepts in a very simple and cool way. Can you please explain how the leaning rate is calculated for each iteration?

    • @statquest
      @statquest  4 ปีที่แล้ว

      I'll consider it.

  • @whaysdsdsd973
    @whaysdsdsd973 2 ปีที่แล้ว +1

    Thank you. It's very very very clear and helpful.

  • @maheshjayaraman6856
    @maheshjayaraman6856 4 ปีที่แล้ว +1

    super , super ,super explanation...till watching this video , I was very much confused with GD.Thanks alot

  • @nataliebogda6554
    @nataliebogda6554 4 ปีที่แล้ว +2

    Better than any stats class I’ve ever taken

  • @meghnanatarajan6355
    @meghnanatarajan6355 4 ปีที่แล้ว +1

    Great tutorial,loved it!

  • @kiran082
    @kiran082 4 ปีที่แล้ว +1

    Excellent Explanation.Thank You

  • @ReikaTAKANO
    @ReikaTAKANO 4 ปีที่แล้ว +2

    Am I correct that you can use stochastic Gradient Descent when updating new entry of data into a dataset that were being calculated with just regular Gradient Descent with its last used slope and intercept?

  • @professorg000
    @professorg000 4 ปีที่แล้ว +1

    Super effective instructional approach...best wishes

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you very much! :)

  • @winniexu
    @winniexu 4 ปีที่แล้ว +2

    Love your videos! Will you consider doing some on stochastic variational inference and stochastic processes? ;)

    • @statquest
      @statquest  4 ปีที่แล้ว +3

      One day I will, but not for a while. I want to cover neural networks first.

    • @amitjadhav6209
      @amitjadhav6209 4 ปีที่แล้ว

      @@statquest Can't wait for your take on Neural Nets!

  • @snarsule
    @snarsule 5 ปีที่แล้ว +1

    I think I am addicted to ML after following your channel

  • @Lj-zn6ej
    @Lj-zn6ej 4 ปีที่แล้ว +1

    Thanks for the great video Josh!
    Just a quick question, why is it so that at 9:02, the values for the intercept and slope in the derivatives are the original random values of 0 and 1 instead of the most recent estimates of 0.86 and 0.68?

    • @statquest
      @statquest  4 ปีที่แล้ว +2

      That's just a typo. I've not included a note about this in the video's description. Unfortunately TH-cam will not let me edit videos after they are posted.

  • @muhammadumarsotvoldiev8768
    @muhammadumarsotvoldiev8768 ปีที่แล้ว +1

    Thank u very much. Really clear explanation!

    • @statquest
      @statquest  ปีที่แล้ว

      Glad you liked it!

  • @darceysinclair8929
    @darceysinclair8929 ปีที่แล้ว +1

    Hi Mr. Stramer, i hope you have a wonderful day.

  • @adityatrivediii
    @adityatrivediii 4 ปีที่แล้ว +1

    Very Cool JOHN !
    Thank You !

  • @hemaswaroop7970
    @hemaswaroop7970 4 ปีที่แล้ว +1

    Fantastic explanation, Man!!👍👍

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you! :)

  • @AbedMotasemi
    @AbedMotasemi 5 ปีที่แล้ว +1

    Hey Man you are awesome. Please make videos about more sophisticated deep learning models, CNN, RNN, and Reinforced learning

    • @statquest
      @statquest  5 ปีที่แล้ว

      Thank you! I'm always working on new stuff and excited about what's coming up.

  • @zhiyuzhang7096
    @zhiyuzhang7096 5 หลายเดือนก่อน +1

    bro is a savior

    • @statquest
      @statquest  5 หลายเดือนก่อน

      :)

  • @dekroplay5373
    @dekroplay5373 2 ปีที่แล้ว +1

    Thanks for clearly explaining stochastic gradient descent. :)

  • @doodlmyr7512
    @doodlmyr7512 4 ปีที่แล้ว +1

    These are amazing thank you

  • @benphua
    @benphua 4 ปีที่แล้ว

    Hi Josh,
    Thanks again for another awesome video, I can't stress enough how lost I would be in my masters degree without your channel.
    Could I please trouble you with a question, is it safe to assume that each sample or sample subset picked by Stochastic Gradient Descent is picked at random without replacement? (Just wanted to be sure...)
    Thank you and looking forward to more of your wonderful content!
    Ben

    • @statquest
      @statquest  4 ปีที่แล้ว

      Typically stochastic gradient descent is performed *with* replacement. However, there are variations on this, including doing it *without* replacement. For more details, see: sebastianraschka.com/faq/docs/sgd-methods.html

  • @OlivierNayraguet
    @OlivierNayraguet ปีที่แล้ว +1

    Just ordered a red Tshirt from you. Thanks for the great work.

    • @statquest
      @statquest  ปีที่แล้ว

      Awesome, thank you!

  • @sqliu9489
    @sqliu9489 ปีที่แล้ว +1

    Very good video! Thanks

    • @statquest
      @statquest  ปีที่แล้ว

      Glad you liked it!

  • @DharmendraSingh-qv6nb
    @DharmendraSingh-qv6nb 4 ปีที่แล้ว +1

    excellent explanation.very helpful.

  • @Mars7822
    @Mars7822 ปีที่แล้ว +1

    Excellent and Informative and Bam!!!!!!!!!!!!!

  • @srikantht2403
    @srikantht2403 5 ปีที่แล้ว

    Thanks for the video sir

  • @astromq8870
    @astromq8870 4 หลายเดือนก่อน +1

    StatQuest you're YYDS !!!!

    • @statquest
      @statquest  4 หลายเดือนก่อน

      Thank you!

  • @NuclearSpinach
    @NuclearSpinach 3 ปีที่แล้ว +1

    Thank you for helping with my PhD research!

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      Good luck with your PhD! :)

  • @smaug9833
    @smaug9833 3 ปีที่แล้ว +1

    Definitely better than reading my black and white book full of jargons

  • @boxu2148
    @boxu2148 5 ปีที่แล้ว

    Josh, thank you for the awesome video. I have one question regarding to the cost function used in this video. It seems that the 'slope' will be much smaller for Stochastic Gradient Descent compared to general Gradient Descent due to the fact that SGD will have the 'slope' equals to the sum of one term, while general Gradient Descent will be the sum of n terms where n equals to number of observations. Is it true?

    • @statquest
      @statquest  5 ปีที่แล้ว +2

      For general Gradient Descent, the cost function I use will result in a larger number, but the minimum, even though it will be larger than for SGD in an absolute sense, will still be at the same location.

  • @stephennguyen8052
    @stephennguyen8052 4 ปีที่แล้ว

    Your examples are super clear thanks! How would you figure out if there are redundancies in your data when there are many columns in high dimensional space?

    • @statquest
      @statquest  4 ปีที่แล้ว +1

      When you have a ton of data in high dimensions, it is often safe to assume that you have redundancies. And when you have a lot of data, SGD might be your only option anyway.

  • @JoseRojas2
    @JoseRojas2 4 ปีที่แล้ว +1

    Outstanding! Thanks a lot

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you! :)

  • @luthfishahab
    @luthfishahab 2 ปีที่แล้ว +1

    Really nice. Subscribed.

  • @orioncloud4573
    @orioncloud4573 3 ปีที่แล้ว +1

    I could frankly say I learned the theory of stats from u.

    • @statquest
      @statquest  3 ปีที่แล้ว

      double bam! :)

  • @mingyuanguan9979
    @mingyuanguan9979 5 ปีที่แล้ว +26

    Josh, could you please explain the difference between GBM, Xgboost and Light GBM, etc?

  • @rajchoksi3533
    @rajchoksi3533 3 ปีที่แล้ว +4

    You just made machine learning look so simple
    BAAAAAAMMMMMMMMM

    • @statquest
      @statquest  3 ปีที่แล้ว

      Thanks!

    • @rajchoksi3533
      @rajchoksi3533 3 ปีที่แล้ว

      Seriously man this was the first video i watched on your channel and you are amazing. I am going to watch all the videos now
      Thank you for sharing your knowledge

  • @wesleysbr
    @wesleysbr 3 ปีที่แล้ว

    Your explanations are great, thanks. In fact what do you think about selling your slides on your website? I would certainly buy some.

    • @statquest
      @statquest  3 ปีที่แล้ว

      I'm glad you like my videos! I sell PDF study guides for some of my videos here: statquest.org/studyguides/

  • @fivehuang7557
    @fivehuang7557 4 ปีที่แล้ว +1

    Can not appreciate your channel more!!! CAN NOT!

    • @statquest
      @statquest  4 ปีที่แล้ว

      Thank you! :)

  • @lekjov6170
    @lekjov6170 4 ปีที่แล้ว +3

    Math is not that hard to understand when it's explained properly. For me, this concept went from being super complex to something super simple and logical. Thanks for all the work you put in these videos, you explained stuff in a magnificent way.

  • @zeynabmousavi1736
    @zeynabmousavi1736 4 ปีที่แล้ว

    Thanks for an other great video. I have a question not directly related to stochastic gradient descent. When there is not a lot of images available for convolutional neural network, what are other methods you suggest to do image classification? I have around 100 images for each class of image.

  • @dmitricherleto8234
    @dmitricherleto8234 3 ปีที่แล้ว +1

    You made my day thanks!

  • @19SpeedFinger19
    @19SpeedFinger19 3 ปีที่แล้ว +2

    What do I get when completing all your quests? 🤗
    So much thank you at this point too!

    • @statquest
      @statquest  3 ปีที่แล้ว +1

      TRIPLE BAM!!! :)

  • @youssefhunter5225
    @youssefhunter5225 3 ปีที่แล้ว +1

    Nice you explained that clearly 👌👍🙂

    • @statquest
      @statquest  3 ปีที่แล้ว

      Thank you 🙂

  • @TheVersionController
    @TheVersionController ปีที่แล้ว

    These videos are amazing.
    When adding a new sample, it looked like a bit of an outlier compared to the clusters where you took the original random points. So how much weight do you give one new sample compared to random values from tightly packed clusters?

    • @statquest
      @statquest  ปีที่แล้ว +1

      I'm pretty sure all values are given equal weights.

  • @millionwolves
    @millionwolves 2 ปีที่แล้ว +1

    @Josh, why would people dislike these videos I wonder ! The SGD is a cost saver on large datasets.