L32: K-Means Clustering Algorithm | Solved Numerical Question 1 (Euclidean Distance) | DWDM Lectures

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Full Course of Data warehouse and Data Mining(DWDM): • Datawarehouse and Data...
    In this lecture you can learn about K-Means Clustering Algorithm - Solved Numerical Question 1(Euclidean Distance) in Data warehouse and Data Mining(DWDM) Course. Following topics of Data warehouse and Data Mining(DWDM) Course are discussed in this lecture: K-Means Clustering Algorithm - Solved Numerical Question 1(Euclidean Distance). This topic is very important for College University Semester Exams and Other Competitive exams like GATE, NTA NET, NIELIT, DSSSB tgt/ pgt computer science, KVS CSE, PSUs etc.
    K-Means Clustering Algorithm - Solved Numerical Question 1(Euclidean Distance)(Hindi)
    Data Warehouse and Data Mining Lectures in Hindi
    👉 Follow us on Social media:
    Telegram Channel: t.me/easyengin...
    Facebook: tiny.cc/ibdrsz
    ▶️ Links for Hindi playlists of all subjects are:
    Data Structure : tiny.cc/lkppsz
    DBMS : tiny.cc/zkppsz
    Java: tiny.cc/1lppsz
    Control System: tiny.cc/3qppsz
    Computer Network Security: tiny.cc/6qppsz
    Web Engineering: tiny.cc/7qppsz
    Operating System: tiny.cc/dqppsz
    EDC: tiny.cc/cqppsz
    TOC: tiny.cc/qqppsz
    Software Engineering: tiny.cc/5rppsz
    DCN: tiny.cc/8rppsz
    Data Warehouse and Data Mining: tiny.cc/yrppsz
    Compiler Design: tiny.cc/1sppsz
    Information Theory and Coding: tiny.cc/2sppsz
    Computer Organization and Architecture(COA): tiny.cc/4sppsz
    Discrete Mathematics (Graph Theory): tiny.cc/5sppsz
    Discrete Mathematics Lectures: tiny.cc/gsppsz
    C Programming: tiny.cc/esppsz
    C++ Programming: tiny.cc/9sppsz
    Algorithm Design and Analysis(ADA): tiny.cc/fsppsz
    E-Commerce and M-Commerce(ECMC): tiny.cc/jsppsz
    Adhoc Sensor Network(ASN): tiny.cc/nsppsz
    Cloud Computing: tiny.cc/osppsz
    STLD (Digital Electronics): tiny.cc/ysppsz
    Artificial Intelligence: tiny.cc/usppsz
    Links for GATE/UGC NET/ PGT/ TGT CS Previous Year Solved Questions:
    UGC NET : tiny.cc/brppsz
    DBMS GATE PYQ : tiny.cc/drppsz
    TOC GATE PYQ: tiny.cc/frppsz
    ADA GATE PYQ: tiny.cc/grppsz
    OS GATE PYQ: tiny.cc/irppsz
    DS GATE PYQ: tiny.cc/jrppsz
    Network GATE PYQ: tiny.cc/mrppsz
    CD GATE PYQ: tiny.cc/orppsz
    Digital Logic GATE PYQ: tiny.cc/rrppsz
    C/C++ GATE PYQ: tiny.cc/srppsz
    COA GATE PYQ: tiny.cc/xrppsz
    DBMS for GATE UGC NET : tiny.cc/0tppsz

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

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

    Bhai 4 saal se tere videos dekh raha. Tune meri engineering paar krwa di....Thanks

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

      bally bahi tune tareef ki hy k pathar mara hy😂

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

      @@syedawrites547 😂😂😂

  • @kumarsaurabhyuvraj1294
    @kumarsaurabhyuvraj1294 3 ปีที่แล้ว +23

    9:44 the value of ED of Row 4 for cluster 1 will be square root of 52 not 40 ......

  • @sonalgupta9427
    @sonalgupta9427 5 ปีที่แล้ว +11

    my ans is c1{1,4,5,6,7,8,9,10,12}
    c2{2,3,11}
    it is different from yours
    so can you please check if my answer is correct or not
    please help me out for the same

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

      Yes your answer is right. My answer is same as yours.

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

      bro he did a little mistake for row 4 where finding for c1 (there should 4 square = 16 and fills 2 square = 4) so don't worry

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

      Mine too
      C1=16.12
      And
      C2=14.21
      In my case

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

    Thank you so much very helpful

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

    The value of C1 for Row 4 is 7.21

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

    For each row, if you change the centroid then the iteration will be near to infinite. First, calculate ED for all then calculate the new centroid.

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

    Okay. This is wrong. You are assuming that row 1 and row 2 fall in different clusters. What if they don't??? What if they are meant to be in the same cluster??? This method is not correct

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

      Nope this is correct..In the initial step, the Euclidean distance of one cluster from itself is obviously lesser than the euclidean distance of the same cluster with the other cluster.

  • @vishuboydreams
    @vishuboydreams 6 ปีที่แล้ว +19

    WRONG METHOD. The centroid is calculated after classifying given points into appropriate clusters in every iteration.

    • @drowsypapa1343
      @drowsypapa1343 6 ปีที่แล้ว

      He reduced the set to only 4 dataset for calculation ease. Otherwise, it would have be a very long video.

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

    Don't update cluster centroid after every assignment update it after a whole iteration (all assignments in one iteration is complete)

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

      This will be when you are working with simple datasets, where you first add everything to the cluster and then calculate mean at the end.

    • @Luna-vk9xy
      @Luna-vk9xy 3 ปีที่แล้ว

      Both methods are fine. They have their own advantages and disadvantages but they both are correct

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

    Hme degree college ne di h aur gyan aapne thank you sir g

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

    wrong explanation bc

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

    When equlian distance is equal then how will i find the Cluster 🥺🥺

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

    someone plz explain me that how row 5 goes to c1 when distance of c1 is 2 and c2 is 19.1

  • @NikhilVerma-kk6xc
    @NikhilVerma-kk6xc ปีที่แล้ว

    this seems little bit confusing......because some reasons are not explained...why to do that??

  • @barbypaul4705
    @barbypaul4705 5 ปีที่แล้ว +8

    row 11 goes to c2 nt c1

  • @rs-no1ju
    @rs-no1ju 4 ปีที่แล้ว +1

    Thankyou sir ... It's very helpful for semester exam.. 😍😍

  • @umerakram1725
    @umerakram1725 9 หลายเดือนก่อน

    Wrong.. 1st calculate Eucladian distance of all values against 1 fixed centroid value. Then take mean and find the new centroid. Repeat it till mean value does not change in 2 consective iterations.
    Solution given in video changes mean value in each step which is against the rule of iteration.
    Thanks

  • @iamsantoshnayak
    @iamsantoshnayak 5 ปีที่แล้ว +15

    68-72 = -4 not -2 correct it video timing 9.36

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

    Should we change centroid every time a new item is kept in the cluster?

    • @m.e.t.a.l3125
      @m.e.t.a.l3125 3 ปีที่แล้ว

      Yes

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

      no, this procedure is not correct.

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

    R11 belongs to C2 because of E.D of C2 on R11 is less.

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

    One suggestion is that solve this problem at the last of paper because it will take most of time 😃

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

    Sir After Finding New Centroid c2 E>D of c1 the Value is Wrong your Value answer is 6.32 and My answer value is 7.21.

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

    plz help,
    Assume you are given n points in a D-dimensional space and an integer k. Describe the k-means ++ algorithm for clustering the points into k cluster
    ?

  • @JayPatel-ou2ud
    @JayPatel-ou2ud ปีที่แล้ว

    nice and easy explanation

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

    6:59 what if both values are same

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

    the centroid value shouldn't be change. every step. first we have to find with the same centroid for the whole at once. the question will give how many iteration you have to perform. so change the centroid after each iteration only

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

    If euclidean distance for both the clusters are same , then in which cluster will they fall

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

    thanks sir but aap bata sakte hai kya (68-72)sq kaise 2 ho gaya. 16 hota hai sir Full Root hai naa sir
    . Still explain karne ke liye thanks.

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

    Concept is wrong. Centroid should not be calculated at every row. Centroid of A,B,C,D row should be (A+B+C+D)/4 while using the method in video it comes to A/8 + B/8 + C/4 + D/2. which is totally wrong. Try yourself with A,B,C,D as 0,0. 2,0. 0,2. 2,2.

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

    Sir, if we randomly take the initial parameters then the clustering will not be the best solution. Instead, we can take one parameter as the initial parameter and from that, we can calculate the second initial parameter such that the difference between the first initial parameter is maximum with the second initial parameter(the one which is calculated). But anyways a great lecture.

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

      No. This doesn't solve it. This entire video is wrong. The real k means algorithm is an iterative approach. You have to come back to all the rows again in the 2nd iteration and then 3rd etc till the cluster you get in consecutive iteration is same

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

      The algorithm that you are talking about is K means++

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

    Bro youre amazing ... . . . . . .

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

    sir ji 8 number ka aata hai hamare yaha voh bhi subquestiob mai

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

    K-medoids clustering algorithm with solved problems ???

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

    Sir your explanation of every lecture is excellent and very useful👍👍👍👍👍👍👍

  • @swasatdutta
    @swasatdutta 5 ปีที่แล้ว +9

    Kiya Sir ji ,Pura solve karna chahiye tha na Hum logo ko kaha itna aata hain ...aata toh thodi na aapka video dekhta...

  • @exclusiveshailen
    @exclusiveshailen 6 ปีที่แล้ว +13

    Not a valid method as not getting correct answers using it. I learned from book directly where centroid need to be calculated at the end of whole iteration and repeat the itemset cluster classification until reach to the no change state!

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

      Cluster the following eight points (with (x, y) representing location) into three clusters.
      A1(2, 10), A2(2, 5), A3(8, 4), B1(5, 8), B2(7, 5), B3(6, 4), C1(1, 2), C2(4, 9).
      The distance function is Euclidean distance. Suppose initially we assign A1, B1, and C1 as the center of each cluster, respectively.
      (a) The three cluster centers after the first round of execution and
      (b) The final three clusters?
      Ans:
      (a) After the first round, the three new clusters are:
      (1) {A1},
      (2) {B1, A3, B2, B3, C2},
      (3) {C1, A2},
      and their centers are
      (1) (2, 10), (2) (6, 6), (3) (1.5, 3.5).
      (b) The final three clusters are:
      (1) {A1, C2, B1}, (2) {A3, B2, B3}, (3) {C1, A2}.

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

      Exactly

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

    6.32 is Wrong Its 7.21 SQRT(36+16) -> 68-72 = -4 and not -2

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

    please do not follow this method, i lost my marks following this.

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

    Sir couldn't find Machine learning whole Playlist from lecture 1😢 please help sir 🙏

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

    Sir apne R4 meh c1 ke jo pts aye h unhe apne le liya or R5 meh agr meh unhe leta hu toh vo C2 meh ja rha pr apne C1 meh likha hain
    Iska mtlb bakiyo meh apne as it is hi use kita h
    fir R4 meh apne pts kyu liye thee bina uske vo C1 meh nhi ja rha thaaa

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

    i think it is not 6.32 in r4 it is 7.211

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

    sir apne 6.43 nhi 7.21 value ban rha hai kindly make sure

  • @rudrakshyabehera5908
    @rudrakshyabehera5908 5 ปีที่แล้ว +9

    How can you initialize first two rows into two different clusters? What if they are meant to fall in single cluster?

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

      It is done at random. If they are meant to be in same cluster they will eventually fall into same cluster.

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

      @@Joyddep what do u mean eventually??? The method shown in this video is based on a single iteration. And you get the final answer. You are not coming back to the 1st and 2nd rows again.

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

      You're right. This video is absolutely incorrect. He is assuming the placement of row 1 and row 2 in different clusters

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

    Can row selection be random?

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

    The concept is totally wrong in both k-means videos. We do not update the centroids unless we have gone through all the points. After that, mean of resultant clusters are found and they are considered to be the new centroids and this process is repeated again and again till we get no new clusters.

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

      Concept is wrong. Centroid should not be calculated at every row. Centroid of A,B,C,D row should be (A+B+C+D)/4 while using the method in video it comes to A/8 + B/8 + C/4 + D/2. which is totally wrong. Try yourself with A,B,C,D as 0,0. 2,0. 0,2. 2,2.

    • @Luna-vk9xy
      @Luna-vk9xy 3 ปีที่แล้ว

      Both the concepts are correct. The approach sir discussed is called incremental centroid updation and it resolves some of the problems related to the traditional method you are talking about. Both the methods are correct.

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

    kindly keep the paper a bit up ...the last tupple isn't clearly visible in most of the videos

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

    Changing the centroid even if the cluster is not including a value !!!!

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

    Why u r changing the centroid of the cluster which is not including a row ?

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

    row 4 of c1 ans is 7.21

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

    Thanks a lot sir

  • @9mm_with.s
    @9mm_with.s ปีที่แล้ว

    Pen konsa use krte ho yeh batana

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

    App aake mera exam de skte ho?

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

    A lot of confusions.

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

    Wrong mathod

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

    Great explaination ❤️

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

    Sir k medoids clustering algorithm with solved problems

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

    12 sayad c2 me aaiga

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

    Is this 2d kmeans clustering

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

    Great explanation sir keep uploding different videos of various methods of various subjects. Your videos really help us to understand the concept. Thank you sir.

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

    Bhai yeh smjhaya hai

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

    Which pen is used by sir?

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

    row 3 ke c2 me 4.47 value aaegi

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

    Why changes in the order of rows are changing the number of value for each cluster. original it is C2= 2,C1= 10, but when i changed order it's count is C1=1 and C2=11. Can someone explain, please?

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

    11 row k2 m jati hai🤦‍♀️ 😂

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

    Thank you it is very helpful and please keep making such kind of videos

  • @dr.akashrajak5143
    @dr.akashrajak5143 4 ปีที่แล้ว +1

    Great explanation

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

    C1 kabhi change nai hoga and only c2 change hoga???,

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

    how many itertaions needed??

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

    Isnt there any video on medoid clustering algorithm??

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

    This method is wrong according to mumbai university procedure.

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

      This is the only method brother !
      Ask university to watch youtube videos !

  • @maheshmohite3682
    @maheshmohite3682 10 หลายเดือนก่อน

    ROW 7 goes to C2

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

    Centro for row 4

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

    What if tuple 1,2 fall in same custer? Illogical explaination.

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

      Check my comment.

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

      @@adityapanchal5803 which comment??? There is no explanation for this. You cant simply put the first 2 values in different clusters. If this method was iterative then you would come back to the 1st and 2nd row and then they would fall in the same cluster or remain different. However in this video its not iterative so you are never coming back to the 1st and 2nd row therefore you don't know if they are in the same cluster or different

  • @hubwells-testingwonders9274
    @hubwells-testingwonders9274 5 ปีที่แล้ว +1

    simply amazing india

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

    Thank you Sir🙂🙂🙂

  • @042_dikshasakhare6
    @042_dikshasakhare6 ปีที่แล้ว

    Grateful

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

    good efforts

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

    Sir please sahi calculation kare.

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

    Present sir saraswati dhodi

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

    Row 3 mein 2 kaise aaea

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

    why row 3 will go to c2?

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

    Integration video please msbte

  • @md.mahaburrahman6291
    @md.mahaburrahman6291 5 ปีที่แล้ว

    Hello Everyone

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

    Very well explained! 👏

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

    Breath out itna q kar rha...

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

    keep uploading more examples

  • @satyamtiwari1521
    @satyamtiwari1521 6 ปีที่แล้ว

    You are doing wrong calculation ,correct it and repost

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

      who needs calculation brother just understand concept

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

    K medoid ka problem upload karo sir ji

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

    Tq sir

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

    Thanks

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

    Sir wo pen kaha se li

  • @hubwells-testingwonders9274
    @hubwells-testingwonders9274 5 ปีที่แล้ว

    Posted wrong video, simply amazing india, calcualtion is wrong

  • @AbhishekKumar-gh4wf
    @AbhishekKumar-gh4wf 5 ปีที่แล้ว

    thanks sir

  • @md.tanvirhasanparag2235
    @md.tanvirhasanparag2235 5 ปีที่แล้ว

    Foul video.....plz correct both calculation and concept .

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

    row 4 me calculation mistake hai...

  • @raowaqar6850
    @raowaqar6850 6 ปีที่แล้ว

    Soperb

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

    👍😁

  • @mubarakalikhan5702
    @mubarakalikhan5702 6 ปีที่แล้ว

    Thanks bro

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

    Sir apni photo to dikhado ...kisi din ......

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

    thank you Easy Engineering classes ....