12. Clustering

MIT 6.0002 Introduction to Computational Thinking and Data Science, Fall 2016
View the complete course: ocw.mit.edu/6-0002F16
Instructor: John Guttag
Prof. Guttag discusses clustering.
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu

Пікірлер: 119

  • @leixun
    @leixun3 жыл бұрын

    *My takeaways:* 1. DIstance 9:30 2. k-means algorithm 17:03 - How to choose k 23:57 - Unlucky initial centroids 25:56 - An example 28:58 - Scale data into the same range 37:11

  • @adiflorense1477

    @adiflorense1477

    3 жыл бұрын

    thank you

  • @leixun

    @leixun

    3 жыл бұрын

    @@adiflorense1477 you’re welcome

  • @BeelySalasBlair-uy5wn

    @BeelySalasBlair-uy5wn

    9 ай бұрын

    🧮✌️💛

  • @wajihaliaquat3365
    @wajihaliaquat33654 ай бұрын

    Professor gifting the ones who contribute to this lecture. Loved that👏💝

  • @RaviShankar-vd8en
    @RaviShankar-vd8en4 жыл бұрын

    The explanation level of this video is by far the best I have ever watched. Prof. Guttag does a very good job in explaining every concept more clearly.

  • @dontusehername
    @dontusehername6 жыл бұрын

    I wish I get the opportunity to sit in a class at MIT someday! Such brilliant minds

  • @JamBear

    @JamBear

    3 жыл бұрын

    You're just as smart as everyone in the audience. The profs have been doing this for decades.

  • @ai.simplified..

    @ai.simplified..

    2 жыл бұрын

    so enjoy your sit

  • @aneedfortheory

    @aneedfortheory

    2 жыл бұрын

    Yeah, making a habit at doing something for an extended period creates excellence. Just stick at.

  • @jorgebjimenez3752
    @jorgebjimenez37525 жыл бұрын

    K-Means at16.30: one of the very best algorithms in IA

  • @NoOne-uz4vs

    @NoOne-uz4vs

    4 жыл бұрын

    Thanks

  • @newbie8051
    @newbie8051 Жыл бұрын

    Great lecture ! I attended the Clustering lecture by prof Ayan Seal today (even though I dont have the course : Introduction to Data Science) , he didn't focus a lot on code, but had similar things to share about clustering !

  • @AliElamraniElhanchi
    @AliElamraniElhanchi6 жыл бұрын

    Very good class! Thanks for the video and for the knowledge!

  • @flamingjob2
    @flamingjob26 жыл бұрын

    thank you mit! from singapore . lots of love

  • @handang9165
    @handang91653 жыл бұрын

    I cant believe I am binge watching MIT lectures. I wish I had a chance to attend MIT back then.

  • @johnwig285

    @johnwig285

    Жыл бұрын

    Same! But feels great that we get all this for free, its a privilege

  • @MrSrijanb
    @MrSrijanb6 жыл бұрын

    it just struck me, after all these lecture videos, that professor Guttag is actually using a classic positive reinforcement technique to make the students more attentive and responsive in class by giving out candies for correct answer. lol! and i am not sure if its the result of this or something else but the students seem wayyy too eager to answer questions in this paticular lecture video!

  • @RogerBarraud

    @RogerBarraud

    4 жыл бұрын

    It's Skinner all the way down ;-)

  • @5Gazto

    @5Gazto

    4 жыл бұрын

    I do it in my classes too.

  • @why400

    @why400

    4 жыл бұрын

    I bet he would reward any good try - not just correct answers

  • @isbestlizard

    @isbestlizard

    3 жыл бұрын

    6.006 they gave out cushions for good answers cos the benches were hard.. got the carrot and stick going on at MIT XD

  • @sardorniyozov8843

    @sardorniyozov8843

    2 жыл бұрын

    Sheldon would approve

  • @mauricesavery
    @mauricesavery6 жыл бұрын

    great professor

  • @bamb00chka
    @bamb00chka6 жыл бұрын

    Pure gold... thank you so much.

  • @naheliegend5222
    @naheliegend52225 жыл бұрын

    love that prof for 4:35 - that is brilliant

  • @prasannakumar1980
    @prasannakumar19806 жыл бұрын

    Awesome explanation.

  • @bluescanfly1981
    @bluescanfly19815 жыл бұрын

    I wish I had this professor, would probably love algorithms

  • @DoNotBeASIMP
    @DoNotBeASIMP7 жыл бұрын

    This professor is awesome!

  • @sushruthsubramanya
    @sushruthsubramanya6 жыл бұрын

    Thank You MIT.

  • @yusufpriyoanggodo2675
    @yusufpriyoanggodo26755 жыл бұрын

    thank you Prof!

  • @Tom-qe8oj
    @Tom-qe8oj5 жыл бұрын

    Great lecture! Informative AND entertaining.

  • @Furzgranate666
    @Furzgranate6663 жыл бұрын

    Professor Guttag: 'Dendrogram... I should write that down.' also Professor Guttag: mispells it :D

  • @yuehernkang
    @yuehernkang5 жыл бұрын

    great lecture! at the speed where it is easy to understand

  • @matheusbarros8488
    @matheusbarros84882 жыл бұрын

    When we are clustering the airports, the professor only stopped to think about linkage when he arrived at Denver. Shouldn't we have thought about it since the beginning of the clustering? If so, we could have gotten (BOS, SF) instead of (BOS, NY) for the first iteration using complete linkage.

  • @McAwesomeReaper

    @McAwesomeReaper

    7 ай бұрын

    Since in the first iteration there are a number of clusters equal to the number of cities, wouldnt complete linkage be the same as single linkage, given there is only one point of measurement for each cluster? I didnt go back to check, but perhaps after the second iteration there wouldve been some different answers?

  • @shaileshrana7165
    @shaileshrana71652 жыл бұрын

    I wanna attend Professor Guttag's classes mostly for the education but also for the candies.

  • @BeelySalasBlair-uy5wn
    @BeelySalasBlair-uy5wn9 ай бұрын

    Always helpful, thanks 🧮

  • @nmtran
    @nmtran6 жыл бұрын

    Amazing!

  • @haneulkim4902
    @haneulkim4902 Жыл бұрын

    Thanks for an amazing lecture! @29:35 it tries to cluster data into two groups and see if it correctly differentiated people who dies of heart attack and those that didn't. To me this is using clustering for classification task, if yes, when would someone use clustering rather than classification?

  • @deepakgaur6192
    @deepakgaur61925 жыл бұрын

    That's one amazing lecture !

  • @henrikmanukyan3152
    @henrikmanukyan31523 ай бұрын

    Main issues of K-Means : choosing the number of clusters (k) and data scaling: But what if one wants to apply weights to the features (parameters)? Should you just multiply the features with the desired coefficients?

  • @BaoTran-se4xi
    @BaoTran-se4xi3 жыл бұрын

    The guys who down voted this video must had nothing better to do. The lecture was nicely paced and I think he already made the problem as clear as it can get. Anyway, that was a great lecture. A big thank you to Professor Guttag and the MIT OpenCourseWare team.

  • @NisseOhlsen
    @NisseOhlsen6 жыл бұрын

    To quote Dr. Banner: ‘Basic cluster recognition’...

  • @artemandrianov8700
    @artemandrianov87002 жыл бұрын

    i like how Dr. Guttag just throws candy at the students

  • @adiflorense1477
    @adiflorense14773 жыл бұрын

    39:54 I think z-scaling is the same as creating a normally distributed dataset

  • @supriamir5251
    @supriamir52514 жыл бұрын

    Thanks MIT

  • @marceli1109
    @marceli11095 жыл бұрын

    What are some some methods to evaluate the quality of the clusters, if we do not have an outcome variable? In the example they were evaluated based in part based on whether the subjects in the cluster died at a higher rate. What do I do if I don't have an outcome to look at, only characteristics? For context, I'm creating cognitive style groups based on user data for an insurance company, and these styles will be later used for morphing, churn etc. but do not have an outcome variable per se.

  • @jt007rai

    @jt007rai

    5 жыл бұрын

    Bi Plot will suffice

  • @cato447
    @cato4473 жыл бұрын

    Thats so fucking cool. Explaining how to group data and throwing candy at your students for answering right

  • @AM-rb4ps
    @AM-rb4ps4 жыл бұрын

    it's dendRogram, with an R. Comes from the word for "tree"

  • @vidhantt
    @vidhanttАй бұрын

    29:06 Isn’t the heart attack example a case of supervised learning, since we have the labels? 1:59 At the start of the lecture, the professor mentioned clustering as an example of unsupervised learning

  • @shivaanyakulkarni4357
    @shivaanyakulkarni43572 жыл бұрын

    At 28:00, can anyone help here ? How do we compare this dissimilarity (mentioned in IF statement), in Python. Badly need this.

  • @robbiesmith79
    @robbiesmith792 жыл бұрын

    Ok, by minute 7 my mind is wondering if there's going to be a bonus assignment to find the probability that Professor Guttag will correctly throw you the piece of candy on the first try. The odds of you catching it greatly increase the closer your sit to the front center of the room.

  • @ilhamakhyar4849
    @ilhamakhyar48492 жыл бұрын

    Thanks for the lesson professor, it's really good explanation

  • @egecant
    @egecant4 жыл бұрын

    awesome class. I craved candy while watching it

  • @bigboi9049
    @bigboi9049 Жыл бұрын

    Is the full code of his examples accessible?

  • @chanjohn5466
    @chanjohn54663 жыл бұрын

    Why we use clustering while we have the label? Like in the medical example, we already know the label (0,1).

  • @akshaydixit8039
    @akshaydixit80395 жыл бұрын

    From where can I get the pdf of the same. OR some notes.

  • @mitocw

    @mitocw

    5 жыл бұрын

    The course materials are available for free on MIT OpenCourseWare at: ocw.mit.edu/6-0002F16. Best wishes on your studies!

  • @jwall6412
    @jwall64124 жыл бұрын

    at 46:50 the professor mentions “has pretty good specificity, or positive predictive value, but its sensitivity is lousy.” can someone explain how specificity = ppv? im assuming: ppv = tp/(tp+fp) specificity = tn/(tn+fp) doesnt ppv = precision?

  • @sharan9993

    @sharan9993

    3 жыл бұрын

    No ppv means positive predictive value. Ur formulas are crct

  • @zachkim1624
    @zachkim16245 жыл бұрын

    16:10 could anyone explain what the professor is talking about when he's mentioning n-squared and n-cubed algorithms ?

  • @TheDaveRoss

    @TheDaveRoss

    5 жыл бұрын

    Pretty sure he is talking about the number of comparisons which need to occur to create the group, n-squared meaning the number of comparisons is on the order of the square of the number of objects to compare, and n-cubed on the order of the cube of the number of objects to compare. Sort of like big-O notation.

  • @johanronkko4494

    @johanronkko4494

    4 жыл бұрын

    This is not always the case (depends on the code), but it might help to think of n-squared as 2 nested loops and n-cubed 3 nested loops. For instance, in a n-squared algorithm you have n items where, for each item, you make n comparisons. Imagine a really big n.

  • @RaviShankar-vd8en

    @RaviShankar-vd8en

    4 жыл бұрын

    He was basically talking about the time complexity of both the algorithms.

  • @aditi17goel
    @aditi17goel Жыл бұрын

    40:00 why is mean 0 and standard deviation 1?

  • @bengbeng2005
    @bengbeng20056 жыл бұрын

    what is the average of examples in the same cluster?

  • @McAwesomeReaper

    @McAwesomeReaper

    7 ай бұрын

    The cluster centroid.

  • @nicolasszernek4359
    @nicolasszernek43594 жыл бұрын

    I guess that the statment that he was trying to set as True to scale the data was at line 14. Awesome lecture! Thanks.

  • @ericacastilho3039
    @ericacastilho30392 жыл бұрын

    Does someone know the name of the book 📚 used and where to access the code he mentioned he distributed?

  • @w1d3r75

    @w1d3r75

    2 жыл бұрын

    Mit Open Course Ware website. Just search it by the name of the course

  • @chekweitan
    @chekweitan4 жыл бұрын

    I am feeling stress like in a class with a bunch of genius.

  • @manishdas6525
    @manishdas65255 жыл бұрын

    MIT: 2 kinds of people. Harvard: ......... Princeton: .........

  • @romanemul1

    @romanemul1

    3 жыл бұрын

    actually 3. People like you trying to make differences at any price.

  • @GainFitnessSystems
    @GainFitnessSystems5 жыл бұрын

    What’s the name of the course? And in what college ?

  • @mitocw

    @mitocw

    5 жыл бұрын

    As the video description states, the course name is "Introduction to Computational Thinking and Data Science" as it was taught in the Fall of 2016 by the Massachusetts Institute of Technology. For more information, see the course on MIT OpenCourseWare at: ocw.mit.edu/6-0002F16.

  • @hadlevick
    @hadlevick5 жыл бұрын

    Each one choose for itself...

  • @alexanderarnold4810
    @alexanderarnold48104 жыл бұрын

    "Clustering" is usually taught to "signal" "alumni" that anyone "in their *network*" can't learn and be good at some skills because some Terrorists in their "*network*" may be affected andor effected.

  • @adiflorense1477
    @adiflorense14773 жыл бұрын

    What was the thing that John Guttag threw at the student

  • @jinruifoo7087
    @jinruifoo70873 жыл бұрын

    how do we test different k values when examples are unlabeled?

  • @McAwesomeReaper

    @McAwesomeReaper

    7 ай бұрын

    Hierarchical clustering. Just stop when you like what you see?

  • @fwm146
    @fwm1463 жыл бұрын

    Can anyone link machine learning to digital signal processing for me?

  • @djangoworldwide7925
    @djangoworldwide7925 Жыл бұрын

    Data scientists actually have to think. Good one

  • @okonkwo.ify18
    @okonkwo.ify1811 ай бұрын

    What does he throw to the students who answers ?

  • @KhoaCongngheSinhhoc-CFI
    @KhoaCongngheSinhhoc-CFI11 ай бұрын

    Hello, I come from wet lab and I am not familiar with machine learning. But I am really interested in this topic since I want to apply machine learning to my research in plant genetics. I have watched this video several times but still I have not gotten all the things the professor mentioned. I wonder if the author or anyone can share the lecuter or books in this topic. It will mean alot to me. Thank you in advance.

  • @OK-ri8eu

    @OK-ri8eu

    Күн бұрын

    A late response but here we go. I would suggest you read the 100 pages machine learning book, it doesn't really really assume any background but of course having it makes things easier.

  • @krisdebeukeleer9264
    @krisdebeukeleer92644 жыл бұрын

    This is way more comfortable when at 1.25 speed.

  • @emadadel3701
    @emadadel37013 жыл бұрын

    what is the reference book ?

  • @mitocw

    @mitocw

    3 жыл бұрын

    The textbook is: Guttag, John. Introduction to Computation and Programming Using Python: With Application to Understanding Data. 2nd ed. MIT Press, 2016. ISBN: 9780262529624. See the Readings section for more details: ocw.mit.edu/6-0002F16. Best wishes on your studies!

  • @AmanKhan-bw3rt
    @AmanKhan-bw3rt4 жыл бұрын

    I want that choco

  • @zainwasem
    @zainwasem2 жыл бұрын

    Prof john Guttag has banch of Candie's

  • @KDCaine
    @KDCaine4 жыл бұрын

    23:20

  • @pranavgoyal2366
    @pranavgoyal23662 жыл бұрын

    so we are getting candies for every right answer, i am 26 years old and heck yeah!! i would still love to have free candies 👍😜

  • @mbrowne8166
    @mbrowne81663 жыл бұрын

    great lecture but the cholate did not reach me.

  • @DuduWakeman
    @DuduWakeman2 жыл бұрын

    14:20 the distance from Denver to Seattle is 1307 and the distance from Denver to Boston is 1949, so why he clustered Denver to Seattle instead of Boston when using Complete linkage? should it not be clustered to the greatest distance?

  • @username2537

    @username2537

    2 жыл бұрын

    No, for complete linkage you look up, as you said the greatest distance of each cluster to the datapoint and then cluster it with the smallest out of these distances.

  • @DrDoomsd
    @DrDoomsd4 жыл бұрын

    He is treating you like pets. Like little hamsters.

  • @MAAditya
    @MAAditya3 жыл бұрын

    This man has the mannerisms of Bill Gates

  • @nbgarrett88
    @nbgarrett884 жыл бұрын

    1:45 Democrat/Republican... Smart/Dumb... Professor, you're being redundant!

  • @lameiraangelo

    @lameiraangelo

    3 жыл бұрын

    Hahahaha

  • @MilesBellas
    @MilesBellas Жыл бұрын

    Normal Playback = 1.5x speed

  • @beepbeep767

    @beepbeep767

    Жыл бұрын

    if you have adhd yes

  • @MilesBellas

    @MilesBellas

    Жыл бұрын

    @@beepbeep767 gaps.....pauses.....deliberations = reduced sloooooow intonaaaaation = reduced

  • @ezequiasrocha3037
    @ezequiasrocha30373 жыл бұрын

    Take care, students, with democrat teachers in computer science classes. They don't care to play with you and call you a dumb if you are a republican and later ask you to choose who is the dumb and who is the smart. I hope you grades doesn't be influencied by you political bias.