SVM (The Math) : Data Science Concepts

  Рет қаралды 91,796

ritvikmath

ritvikmath

3 жыл бұрын

Let's get mathematical.
SVM Intuition Video: • Support Vector Machine...

Пікірлер: 186
@stanlukash33
@stanlukash33 3 жыл бұрын
This guy is underrated for real. KZbin - throw him into recommendations.
@jmspiers
@jmspiers 2 жыл бұрын
I know... I recommend him all the time on Reddit.
@backstroke0810
@backstroke0810 2 жыл бұрын
True! He deserves way more subscription. He should prepare a booklet like statquest did but of his own. Would definitely buy it!
@aravind_selvam
@aravind_selvam 2 жыл бұрын
True!!
@supersql8406
@supersql8406 3 жыл бұрын
This guy is super smart and he takes sophisticated concepts and explains it in a way where it's digestible without mocking the theory! What a great teacher!
@ragyakaul6027
@ragyakaul6027 2 жыл бұрын
I can't explain how grateful I am for your channel! I am doing an introductory machine learning course at Uni and it's extremely challenging as it's full of complex concepts and the basics aren't explored throughly. Many videos I came across on youtube were too overly simplified and only helped me very briefly to make sense of my course. However, your videos offer the perfect balance, you explore the complex maths and don't oversimplify it, but do so in a way that's easy to understand. I read through this concept several times before watching your video, but only now do I feel as if I TRULY understand it. I HIGHLY appreciate the work you do and look forward to supporting your channel.
@maged4087
@maged4087 2 жыл бұрын
same
@velevki
@velevki 2 жыл бұрын
You answered all the questions I had in mind without me even asking them to you. This was an amazing walkthrough. Thank you!
@pavelrozsypal8956
@pavelrozsypal8956 2 жыл бұрын
Another great video on SVM. As a mathematician I do appreciate your succinct yet accurate exposition not playing around with irrelevant details.
@FPrimeHD1618
@FPrimeHD1618 Жыл бұрын
Just to add onto all the love, I'm a data scientist in marketing and you are my number one channel for reviewing concepts. You are a very talented individual!
@srivatsa1193
@srivatsa1193 3 жыл бұрын
This is the best and the most intuitive explanation for SVM. It is really hard for me to actually read research papers and understand what story each line of the equation is telling. But you made it soo intuitive. Thanks a ton! Please Please make more videos like this
@shusrutorishik8159
@shusrutorishik8159 3 жыл бұрын
This has been simultaneously the simplest, most detailed and yet most concise explanation of this topic I've come across so far. Much appreciated! I hope you keep making awesome content!
@ritvikmath
@ritvikmath 3 жыл бұрын
Glad it was helpful!
@vedantpuranik8619
@vedantpuranik8619 2 жыл бұрын
This is the best and most comprehensible math video on hard margin SVM I have seen till date!
@KARINEMOOSE
@KARINEMOOSE 2 жыл бұрын
I'm a PhD student studying data mining and I just wanted commend you for this SUPERB explanation. I can't thank you enough for the explaining this so clearly. Keep up the excellent work!!
@nikkatalnikov
@nikkatalnikov 3 жыл бұрын
Great video as usual! A possible side note - I find 3d picture even more intuitive. Adding z-direction which is basically can be shrunk to [-1;1] is our class prediction dimension and x1 x2 are feature dimensions. Hence, the margin hyperplane "sits" exactly on (x1; x1; 0) This is also helpful for further explanation of what SVM kernels are and why kernel alters the norms (e.g. distances) between data points, but not the data points themselves.
@stephonhenry-rerrie3997
@stephonhenry-rerrie3997 Жыл бұрын
I think this might be top 5 explanations of SVM mathematics all-time. Very well done
@yangwang9688
@yangwang9688 3 жыл бұрын
Very easy to follow the concept! Thanks for this wonderful video! Looking forward to seeing next video!
@nickmillican22
@nickmillican22 2 жыл бұрын
Question on the notation. The image shows that the vector between the central line and decision line is w. So, I think, that w is the length of the decision boundary. But then we go on to show that the length of the decision boundary is k=1/||w||. So I'm not clear on what w (or k, for that matter) are actually representing.
@WassupCarlton
@WassupCarlton Ай бұрын
I too expected k to equal the length of that vector w :-/
@usmanabbas7
@usmanabbas7 2 жыл бұрын
You and statquest are the perfect combination :) Thanks for all of your hardwork.
@luchomame1
@luchomame1 9 ай бұрын
Dude thank you! now these equations don't feel like they were pulled out of thin air. and the best part is I can work them out too! I haven't done linear algebra in almost a decade so I got stuck on the ||w||/(w*w) part for a good bit but this pushed me to refresh some concepts and figure it out! Thank you
@lisaxu1848
@lisaxu1848 2 жыл бұрын
studying my masters in data science and this is a brilliant easy to understand explanation tying graphical and mathematical concepts - thank you!
@polarbear986
@polarbear986 2 жыл бұрын
I finally get svm after watching a lot of tutorial on KZbin. Clever explanation. Thank you
@clifftondouangdara6249
@clifftondouangdara6249 Жыл бұрын
Thank you so much for this video! I am learning about SVM now and your tutorial perfectly breaks it down for me!
@Shaan11s
@Shaan11s 2 ай бұрын
your videos are what allowed me to take a spring break vacation bro, saved me so much time thank you
@ritvikmath
@ritvikmath 2 ай бұрын
Great to hear!
@mindyquan3141
@mindyquan3141 2 жыл бұрын
So simple, so clear!!! Wish all the teachers are like this!
@honeyBadger582
@honeyBadger582 3 жыл бұрын
That's what i've been waiting for! Thanks a lot. Great video!
@ritvikmath
@ritvikmath 3 жыл бұрын
Glad it was helpful!
@nishanttailor4786
@nishanttailor4786 Жыл бұрын
Just Amazing Clarity of Topics!!
@gdivadnosdivad6185
@gdivadnosdivad6185 6 ай бұрын
I love your channel. You explain difficult concepts that could be explained to my dear grandmother who never went to college. Excellent job sir! You should become a professor one day. You would be good.
@lakhanpal1987
@lakhanpal1987 Жыл бұрын
Great video on SVM. Simple to understand.
@aashishkolhar8155
@aashishkolhar8155 3 жыл бұрын
Great, thanks for this lucid explanation about the math behind SVM
@jaibhambra
@jaibhambra 2 жыл бұрын
Absolutely amazing channel! You're a great teacher
@zz-9463
@zz-9463 3 жыл бұрын
very informative and helpful video to help understand the SVM! Thanks for such a great video! You deserve more subscribers
@houyao2147
@houyao2147 3 жыл бұрын
It's so easy to understand thi s math stuff! Best explanation ever in such a short video.
@TheWhyNotSeries
@TheWhyNotSeries 3 жыл бұрын
At 5:10, I don't get how you obtain K from the last simplification. Can you/someone please explain? Btw beautiful video!
@ritvikmath
@ritvikmath 3 жыл бұрын
thanks! I did indeed kind of skip a step. The missing step is that the dot product of a vector with itself is the square of the magnitude of the vector. ie. w · w = ||w||^2
@TheWhyNotSeries
@TheWhyNotSeries 3 жыл бұрын
@@ritvikmath right, thank you!!
@badermuteb4552
@badermuteb4552 3 жыл бұрын
Thank you so much. This is what i have been looking for so long time. would you please do the behind other ML and DL algorithms.
@ht2239
@ht2239 3 жыл бұрын
You explained this topic really well and helped me a lot! Great work!
@emid6811
@emid6811 2 жыл бұрын
Such a clear explanation! Thank you!!!
@chimetone
@chimetone 2 ай бұрын
Best high-level explanation of SVMs out there, huge thanks
@ritvikmath
@ritvikmath 2 ай бұрын
Glad it was helpful!
@maheshsonawane8737
@maheshsonawane8737 8 ай бұрын
🌟Magnificient🌟I actually understood this loss function in by watching once. Very nice explanation of math. I saw lot of other lectures but you cant understand math without graphical visualization.
@techienomadiso8970
@techienomadiso8970 Жыл бұрын
This is a serious good stuff video. I have not seen a better svm explanation
@ifyifemanima3972
@ifyifemanima3972 Жыл бұрын
Thank you for this video. Thanks for simplifying SVM.
@more-uv4nl
@more-uv4nl Ай бұрын
this guy explained what my professors couldn't explain in 2 hours 😂😂😂
@user-ik5vu8rf9d
@user-ik5vu8rf9d 2 ай бұрын
Thanks man great explaination , was trying to understand the math for 2 days , finally got it
@ritvikmath
@ritvikmath 2 ай бұрын
Glad it helped!
@dcodsp_
@dcodsp_ 8 ай бұрын
Thanks for such brilliant explanation really appreciate your work!!
@WassupCarlton
@WassupCarlton Ай бұрын
This is giving "Jacked Kal Penn clearly explains spicy math" and | am HERE for it
@sejmou
@sejmou 8 ай бұрын
In case you're also having trouble figuring out how we arrive at k=1/||w|| from k * (w*w/||w||) = 1: remember that the dot product of any vector with itself is equal to its squared magnitude. Then, w*w can also be expressed as ||w||^2. ||w||^2/||w|| simplifies to just ||w||. Finally bring ||w|| to the other side by dividing the whole equation by ||w||, and you're done :) if you also have trouble understanding why exactly the dot product of any vector with itself is equal to its squared magnitude it also helps to know that the magnitude of a vector is the square root of the sum of squares of its components and that sqrt(x) * sqrt(x) = x I hope that somehow makes sense if you're struggling, surely took me a while to get that lol
@FootballIsLife00
@FootballIsLife00 5 ай бұрын
I almost forget this rule, thank you brother for saving my day
@SreehariNarasipur
@SreehariNarasipur Жыл бұрын
Excellent explanation Ritvik
@himanshu1056
@himanshu1056 2 жыл бұрын
Best video on large margin classifiers 👍
@ziaurrahmanutube
@ziaurrahmanutube 3 жыл бұрын
Amazing explanation from the theoretical to the mathematical. Please tell me how you do it? So i can self-learn myself how you are able to understand and then explain these concepts or other concepts. what resources do you use ?
@BlueDopamine
@BlueDopamine Жыл бұрын
I am very happy that I found Your YT Channel Awsome Videos I was unable to Understand SVM UntilNow !!!!
@learn5081
@learn5081 3 жыл бұрын
very helpful! I always wanted to learn math behind the model! thanks!
@maurosobreira8695
@maurosobreira8695 2 жыл бұрын
Amazing teaching skills - Thanks, a lot!
@TheOilDoctor
@TheOilDoctor 7 ай бұрын
great, concise explanation !
@mensahjacob3453
@mensahjacob3453 2 жыл бұрын
Thank you Sir . You really simplified the concept. I have subscribed already waiting patiently for more videos 😊
@godse54
@godse54 3 жыл бұрын
Pls also make one for svm regression.. you are amazing
@NiladriBhattacharjya
@NiladriBhattacharjya Жыл бұрын
Amazing explanation!
@AnDr3s0
@AnDr3s0 3 жыл бұрын
Nice explanation and really easy to follow!
@Jayanth_mohan
@Jayanth_mohan 2 жыл бұрын
This really helped me learn the math of svm thanks !!
@asharnk
@asharnk 9 ай бұрын
What an amazing video bro. Keep going.
@jingzhouzhao8609
@jingzhouzhao8609 20 күн бұрын
thank you for your genius explanation. At 5:11, before getting the value k, the equation k * ( w * w) / (magnitude of w) = 1 contains w * w, why the output k doesn't have w in the end.
@zarbose5247
@zarbose5247 Жыл бұрын
Incredible video
@trishulcurtis1810
@trishulcurtis1810 2 жыл бұрын
Great explanation!
@yashshah4172
@yashshah4172 3 жыл бұрын
Hey Ritvik, Nice video, can you please cover the kernalization part too.
@harshalingutla7318
@harshalingutla7318 2 жыл бұрын
brilliant explanation!
@akashnayak6144
@akashnayak6144 2 жыл бұрын
Loved it!
@Snaqex
@Snaqex 4 ай бұрын
Youre so unbelieveble good in explaining :)
@superbatman1462
@superbatman1462 3 жыл бұрын
Easily Explained 👍, Can you also explain how does SVM works with respect to regression problems?
@pedrocolangelo5844
@pedrocolangelo5844 10 ай бұрын
Once again, ritvikmath being a lifesaver for me. If I understand the underlying math behind this concepts, it is because of him
@borisshpilyuck3560
@borisshpilyuck3560 8 күн бұрын
Great video ! Why we can assume that right hand side of wx - b in those three lines is 1, 0, -1 ?
@SESHUNITR
@SESHUNITR Жыл бұрын
very informative and intuitive
@amanbagrecha
@amanbagrecha 3 жыл бұрын
what about the points within the margin? are they support vectors as well?
@fengjeremy7878
@fengjeremy7878 2 жыл бұрын
Hi ritvik! I wonder what is the geometric intuition of the vector w? We want to minimize ||w||, but what does w look like on the graph?
@walfar5726
@walfar5726 Жыл бұрын
Very well explained, thank you !
@sorrefly
@sorrefly 2 жыл бұрын
I'm not sure but I think you forgot to say that in order to have margin = +-1 you should scale multiplying constants to w and b. Otherwise I don't explain how we could have distance of 1 from the middle The rest of the video is awesome, thank you very much :)
@bhuvaneshkumarsrivastava906
@bhuvaneshkumarsrivastava906 3 жыл бұрын
Eagerly waiting for your video on SVM Soft margin :D
@germinchan
@germinchan Жыл бұрын
This is very clearly defined. Thank you. But could someone explain to me what w is? How can I visualize it and calculate it.
@rndtnt
@rndtnt Жыл бұрын
Hi, how exactly did you choose 1 and -1, the values for wx -b where x is a support vector? wx-b = 0 for x on the separating line makes sense however. Could it have other values?
@sukritgarg3175
@sukritgarg3175 Ай бұрын
Holy shit what a banger of a video this is
@Reojoker
@Reojoker 3 жыл бұрын
Are SVMs only useful for binary classification, or can they be extended to multi-class predictions?
@wildbear7877
@wildbear7877 10 ай бұрын
You explained this topic perfectly! Amazing!
@ritvikmath
@ritvikmath 10 ай бұрын
Glad you think so!
@kanishksoman7830
@kanishksoman7830 11 ай бұрын
Hi Ritvik, you are a great teacher of stats, calculus and ML/DL! I have one question regarding the equations. Why is the decision boundary equation W.X - b = 0? Shouldn't it be W.X + b = 0. I know the derivations and procedure to find the maximal margin is not affected but I don't understand -b. Please let me know if the sign is inconsequential. If it is, why is it? Thanks!
@fengjeremy7878
@fengjeremy7878 2 жыл бұрын
Thank you! I am wodering why do we use "+1 and -1" instead of "+1 and 0" to classify these two areas?
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 жыл бұрын
Wow, that was so well explained.
@suckockshititties2599
@suckockshititties2599 10 ай бұрын
You are an amazing elucidator👍
@stephanecurrie1304
@stephanecurrie1304 2 жыл бұрын
That was crystal clear !
@robfurlong8868
@robfurlong8868 5 ай бұрын
@ritvikmath - Thanks for this great explanation. I have noticed other material online advises the equation for the hyperplan is w.x+b=0 rather than w.x-b=0. Can you confirm which is accurate
@joyc5784
@joyc5784 2 жыл бұрын
On the other references they use the plus (+) sign on w x - b = 0. Why on your example this was changed to minus sign? w x - b = 0. or wx - b > 1. Hope you could answer. Thanks
@zeinramadan
@zeinramadan 3 жыл бұрын
great video as always. thank you
@ritvikmath
@ritvikmath 3 жыл бұрын
Glad you enjoyed it!
@TheCsePower
@TheCsePower 2 жыл бұрын
You should mention that your W is an arbitrary direction vector of the hyperplane. (it is not the same size as the margin)
@kmishy
@kmishy Жыл бұрын
How you chose equation of two blue parallel lines? I mean how did you get 1 in the upper line and -1 for bottom line?
@user-bp5go3ds5t
@user-bp5go3ds5t 10 ай бұрын
phenomenal
@ramankutty1245
@ramankutty1245 3 жыл бұрын
Great explanation
@blackforest449
@blackforest449 2 жыл бұрын
So good .. ThnQ
@salzshady8794
@salzshady8794 3 жыл бұрын
Could you do the math behind each Machine learning algorithm, also would you be doing Neural Networks in the future?
@marthalanaveen
@marthalanaveen 3 жыл бұрын
along with the assumptions of supervised and un-supervised ML algorithms that deals specifically with structured data.
@ritvikmath
@ritvikmath 3 жыл бұрын
Yup neural nets are coming up
@jjabrahamzjjabrhamaz1568
@jjabrahamzjjabrhamaz1568 3 жыл бұрын
@@ritvikmath CNN's and Super Resolution PLEASE PLEASE PLEASE
@mykhailoseniutovych6099
@mykhailoseniutovych6099 8 күн бұрын
Great video, with easy to follow explanation. However, you formulated the optimization problem that needs to be solved by the end of thevideo. The most ineteresting question now is how to actually solve this optimization problem. Can you give some directions on how this problem is actually solved?
@madshyom6257
@madshyom6257 Жыл бұрын
Bro, you're a superhero
@Pazurrr1501
@Pazurrr1501 2 жыл бұрын
BRILLIANT!
@almonddonut1818
@almonddonut1818 Жыл бұрын
Thank you so much!
@xviktorxx
@xviktorxx 3 жыл бұрын
Great video, great underappreciated channel! Thank you and keep up the good work!
@TheCsePower
@TheCsePower 2 жыл бұрын
Great Viideo!. I found your notation for x to be quite confusing. I think the small x should be x11 x12 x13 to x1p. Say GPA is xi1 and MCAT is xi2. Then the student data for these two features will be: student 1(x11,x12) student 2 (x21, x22) student 3(x31,x32)
@maged4087
@maged4087 2 жыл бұрын
does b affect finding the slope?
@user-hu5qf6lg8u
@user-hu5qf6lg8u 4 ай бұрын
you are my savior
@acidaly
@acidaly Жыл бұрын
Equation for points on margins are: w.x - b = 1 w.x - b = -1 That means we have fixed our margin to "2" (from -1 to +1). But our problem is to maximize the margin, so shouldn't we keep it a variable? like: w.x - b = +r w.x - b = -r where maximizing r is our goal?
@davud7525
@davud7525 11 ай бұрын
Have you figured it out?
@Max-my6rk
@Max-my6rk 3 жыл бұрын
Smart! This is the easiest way to come up with the margin when given theta (or weight)... gosh..
Support Vector Machines : Data Science Concepts
8:07
ritvikmath
Рет қаралды 63 М.
Soft Margin SVM : Data Science Concepts
12:29
ritvikmath
Рет қаралды 46 М.
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 2,3 МЛН
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 44 МЛН
Joven bailarín noquea a ladrón de un golpe #nmas #shorts
00:17
StatQuest: Principal Component Analysis (PCA), Step-by-Step
21:58
StatQuest with Josh Starmer
Рет қаралды 2,7 МЛН
SVM Dual : Data Science Concepts
15:32
ritvikmath
Рет қаралды 43 М.
Principal Component Analysis (The Math) : Data Science Concepts
13:59
The Kernel Trick in Support Vector Machine (SVM)
3:18
Visually Explained
Рет қаралды 227 М.
Naive Bayes, Clearly Explained!!!
15:12
StatQuest with Josh Starmer
Рет қаралды 999 М.
Regression Trees, Clearly Explained!!!
22:33
StatQuest with Josh Starmer
Рет қаралды 603 М.
Support Vector Machine (SVM) in 7 minutes - Fun Machine Learning
7:28
Support Vector Machines Part 3: The Radial (RBF) Kernel (Part 3 of 3)
15:52
StatQuest with Josh Starmer
Рет қаралды 257 М.
Eigenvalues & Eigenvectors : Data Science Basics
11:58
ritvikmath
Рет қаралды 137 М.
Support Vector Machines: All you need to know!
14:58
Intuitive Machine Learning
Рет қаралды 127 М.
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 2,3 МЛН