PageRank Algorithm - Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ค. 2017
  • 🎁 FREE Algorithms Interview Questions Course - bit.ly/3s37wON
    🎁 FREE Machine Learning Course - bit.ly/3oY4aLi
    🎁 FREE Python Programming Course - bit.ly/3JJMHOD
    📱 FREE Algorithms Visualization App - bit.ly/algorhyme-app
    In this lecture we are going to consider a concrete example how to calculate the PageRank parameters for websites in a given network. The network can be represented with a G(V,E) graph where V denotes the websites (nodes) and there are the E links pointing from one website to another. PageRank algorithm is an iterative approach (we can use matrix operations as well).
    This video is just one of the many online lectures for 'Numerical Methods and their Applications' course. We'll consider an example for Google's PageRank algorithm. There are other videos present on TH-cam so feel free to watch the next parts as well.
    ✅ Facebook: / globalsoftwarealgorithms
    ✅ Instagram: / global.software.algori...

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

  • @Kaushikvel
    @Kaushikvel 7 ปีที่แล้ว +202

    after watching lot of videos on pagerank, I found your video had the best explanation. Hope it goes to the top of youtube search results ;)

    • @globalsoftwaresupport7141
      @globalsoftwaresupport7141  7 ปีที่แล้ว +12

      Kaushik Velusamy I am very glad you like it. Thanks :)

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

      Yes It is at top

    • @user-vi3pi9rf7w
      @user-vi3pi9rf7w 3 ปีที่แล้ว

      @@equality9304 can confirm

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

      Pro tip : watch series on InstaFlixxer. Me and my gf have been using it for watching a lot of movies recently.

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

      @Hamza Jaxx definitely, have been watching on instaflixxer for since december myself :)

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

    Thank you! Much better explained than what is presented at the university or in other videos I have watched.

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

    I agree with the comments. Had to implement PageRank and this explanation was definitely what helped me get over the hump over others. Thank you for putting this together. Great work.

  • @mannyzuccarelli
    @mannyzuccarelli 7 ปีที่แล้ว +8

    I went through a lot of videos before finding one that is this concise. Thank you!

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

    Simplest and best Explanation of Power Iteration Method. Subscribed.

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

    This video is for sure the best one among many others.

  • @Saucisse-wq6pq
    @Saucisse-wq6pq 3 หลายเดือนก่อน

    Being French, I think your English is really easy to understand, it's a real asset and it's nice to listen to thank you

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

    Thank you! It's much more clear now with this example.

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

    Great explanation!. Well done.

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

    This guy nailed it!

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

    Thank you for taking the time. Excellent video

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

    Waowww, after watching a lot of videos on PageRank, I found your video had the best explanation. Hope it goes to the top of youtube ever

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

    Overall description of iteration method with example is good. Plus if you add the damping factor in this example it would be much better.. but for understanding the method how it works. You series on Pagerank are best on TH-cam. (y)

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

    thank you guys, you're awesome!

  • @Rajivrocks-Ltd.
    @Rajivrocks-Ltd. 8 วันที่ผ่านมา

    Stellar explanation, thanks for the video!

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

    Very well explained video! glad I saw this! very happy! nice job!

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

    very helpful! thanks!

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

    Thanks. Nicely Explained.

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

    Really helpful and concise, thanks for creating it :)

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

    very well explained. thank you!

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

    that was the most useful explanation that I've ever seen for page rank thank u

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

      Everyone praising this video but the calculations are so messed up in this video

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

    Thanks so much for this video. You made it look easy

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

    Thankyou! Nicely explained.

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

    Very nicely explained, thanks

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

    Nice and simple explanation

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

    Very useful...thank you!💯

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

    best explanation ever!

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

    THANK YOU DUDE! This explanation saved my mid term exam.

  • @dr.loucifhemzaemmysnmoussa7686
    @dr.loucifhemzaemmysnmoussa7686 6 ปีที่แล้ว

    Very helpful, thanks a lot.

  • @AMAN-dt9ry
    @AMAN-dt9ry 7 หลายเดือนก่อน

    Thanks a lot brother. Some mean teachers just send research papers to read. Your explanation is to the point.

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

    Very well explained.

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

    Thank you for the great explanation

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

    Thanks. Really helpful ✨

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

    Brilliant ! Thank You :)

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

    Dont know about google results but your video surely popped up first when i searched for page rank on ytube

  • @ianvching1647
    @ianvching1647 6 หลายเดือนก่อน

    very clear thank you very much!

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

    thank you for the example.

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

    very well explained

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

    best explaination ever seen!!

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

    V.Good Content!!
    Thanks Sir

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

    you example at the end ... OMG ... I laughed so hard ... But helped me a lot in understanding the PageRank ... Thank You ...

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

      Yeah unfortunately gss is not that popular :(

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

      it will be ... You have presented and explained these concepts very clearly ... such quality videos are very rare to find ...

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

      Thank you very much for the kind words Ani!

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

    if anyone is having trouble with the accent set the speed to 1.25x. Awesome explanation it cleared my all doubts.

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

    quite clear

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

    Very good explanation

  • @user-df1om9jx4y
    @user-df1om9jx4y 4 ปีที่แล้ว

    thanks for your sharing

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

    video is really the best of i am going through thanku so much

  • @KS-df1cp
    @KS-df1cp ปีที่แล้ว

    Hitting like for your video to get noticed! So sorry for your website. Thank you for your work.

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

    Well done mann

  • @soumyajitrudrasarma5415
    @soumyajitrudrasarma5415 6 หลายเดือนก่อน

    Thank you 🙂

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

    very Nice explanation

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

    that okayyyy made it much more clearer😂

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

    Best explanation after find many videos. Thanks but Sir, Here damping factor is required or not?

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

      I think it's an important optimization that is important to change the algorithm from a naive random walk.

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

    Can you please share these slides in ppt format. explained very well

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

    Sir the point that "C" node is most important proved in first iteration?

  • @siva-zy4eg
    @siva-zy4eg 8 หลายเดือนก่อน

    Nice work

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

    Thanks

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

    We are supposed to assume pagerank of pages as 1 right , then why 1/4 in iteration 0?

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

    In my opinion in a ranking 1 is the best rank. I would have ranked the nodes the other way around! But besides that, it is the best explanation here :)

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

    thanks!

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

    I wish my professors have the same intuitive teaching skills as you😢

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

    what if we get the same score for 2 websites in an iteration? How does the ranking work for that iteration?

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

    Very nice.

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

    Thankyou Sir !

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

    How do you sir, you are connected to those nodes, one gives i/p to other one, and one gives and accept i/p & o/p. I am little more confused. Is there something in background process.

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

    sir how are the web pages of 2 different websites connected together???

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

    How to get all denominators same? Tell.The simplifing method

  • @manimaran-rx4en
    @manimaran-rx4en ปีที่แล้ว

    Sir for iteration 1 B value we need to take PR(A) = 1/12 know sir?. Because iteration u derived first PR(A) =1/12 and so we have to take that updated value only know sir... Y as 1/4 is taken??

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

    Ohhh i understand now... thank you

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

    thanx

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

    I am not sure how to determine how many iterations should be used. What determines that?

  • @piyushkandoi8963
    @piyushkandoi8963 6 ปีที่แล้ว +28

    I think this solution is wrong, as you didn't take in account the damping factor and also initially you should have taken the page rank to be 1-d where d is the damping factor to prevent the cold storage problem otherwise this will work just like random surfer model.
    The page rank was made mainly to deal with the cold start problem.

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

      He could have chosen 1 as the dampening factor, then it wouldn't influence the result. @KeyC0de I don't get how you would end up with 1/4 + 1/(4*3). Because the formula doesn't say you have to add the current score to the previous score, or am I missing something?

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

      so can you show us the right?

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

    If I want to do a mathematical exploration, by means a paper work on this topic? What should I investigate?

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

      There are several recommended article here: infolab.stanford.edu/~backrub/google.html

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

    how to know, the total no. of iterations???
    can it be more than 2?

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

    extremely helpful , but only one point is missing here is damping factor (1-d) + d(the given formulae)

  • @samarthsingh2705
    @samarthsingh2705 8 หลายเดือนก่อน

    why did u stop at the 2nd iteration?

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

    where is the diagonalization of the Markov matrix?

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

    So google shows the page with the highest rank 4 or does it mean page A with rank 1 will be shown first , it’s still confusing

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

    youtube should page rank this video higher than any other pages when it comes to the explanation of pagerank , if not then there is a problem with page rank. :)

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

    Thank you for exam 😊

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

    What about sites with no outbound links? Division by zero problem

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

    How did the final page rank come

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

    Good pronunciation

  • @sai.boyina
    @sai.boyina 4 ปีที่แล้ว

    finding page rank without damping factor? if damping factor is not given, we have to consider 0.85 as default one.

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

    hey hey very important question! What if I have a graph in which one noddle no other noddle is pointing at? I cant divide by zero, what to do? example: a->bc

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

    what happens if a page has links that sent to itself?

  • @Harry-jx2di
    @Harry-jx2di 3 ปีที่แล้ว

    is dumpy values considered?

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

      In this example not but we will further improve the model in one of the next lectures and include it in the model as well!

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

    Excuse me sir, how iteration should we go? In your example, you have shown for 0-2 iteration. How many iteration do we need to consider?

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

      Hi! A usual approach (in graph algorithms and neural networks as well) is to check the sum of residuals in every iteration. When the sum(prevPR-actualPR)

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

      @@globalsoftwaresupport7141 Thankyou

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

    hi, can anyboy explains how did he calculate the values by making the denominators same??

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

    /How did you get 1/12?

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

    he speaks like we're stupid which i am so thank you

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

    What if the iteration sum isnt equal to 1 at all? What does that mean then? Question is mistaken?

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

      Yeah it must be as it has something to do with probabilities. The sum of the probabilities must be 1

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

    Does anyone else think this guy's voice sounds like the guard npc in skyrim ?

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

    why did we do 2 iterations only? how is the number of iterations determined?

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

      Same doubt here also..

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

      It's whenever you decide to stop. At some point they all converge.

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

      At each iteration the PageRank converges to a more accurate value, you choose the precision.

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

    So you followed PageRank,
    This video is at the top when searched for the term.

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

    so the best website would be ranked 4? but why?

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

    man, how do you know the quantity of iterations??

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

      I suppose the values will stop changing after some time, but you can probably also just use a fixed amount I guess.

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

    In iteration 1 how 1/12 come ?

  • @GeronimoLTondato
    @GeronimoLTondato 7 ปีที่แล้ว

    And how do we know when to stop iterating? Cause if you do another iteration, PR values for the nodes will vary. Thanks

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

      One solution (we use this technique for Bellman-Ford shortest path algorithm as well) is to track the difference of pageranks in two adjacent iterations
      if pagerant(n)-pagerank(n+1) < epsilon -> we stop the iteration. epsilon defines the error basically

  • @Aman-ti9bw
    @Aman-ti9bw 6 ปีที่แล้ว

    I didn't get one thing, we are dividing the page rank by the number of outgoing links... let's say I have a website and I am linking to lots of other websites so that will make my website less important! .. that doesn't seem fair.

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

      Hi! The number of outgoing links as far as the node is concerned that is pointing to the node we are considering! One of the provious lecture is about the formula itselft, this is just a concrete example. But again whats important that we do not bother about the outgoing links for the actual node: just for the nodes pointing to that node in the graph

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

      You do not lose PageRank by outlinking to other webpages. You lose PageRank when the pages that outlinks to your page begin outlink to other pages too. The PageRank algorithm propagates relevance evenly between all outlinks of a webpage.

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

    What does the iterations represent in real life?

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

      Samu Huanca i am leaving this comment here so if someone answers the question, I also get notified :)

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

      The video is talking about the computation of PageRank algorithm. The base concept is that "the relevance of a webpage X equals to the sum of all inbound links' relevance". So you need to compute first the relevance of all webpages that links to X. It is a recursive function (a function that calls itself). In recursion you need a starting and ending point, the starting point of PageRank (Iteration 0) is set a begining PageRank for all nodes, which sums up to 1. Here Iteration is a loop over all nodes, when talking about recurrence, a iteration happens when the function calls itself. The next iterations will updade all nodes' rank by computing the PageRank algorithm for each node. You keep doing it until hit the ending point, which can be 1) number of iterations or 2) convergence, when the PageRank of current iteration differs very little from previous iteration. Those iteration happens to simulate the propagation of relevance over that network of nodes, some people do analogies with a "random walk over webpages" or "random surfer" where one keeps randomly following links that are in its current page. The PageRank of a webpage is the probability of the random surfer arrive at that webpage when it starts following links from any webpage.

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

      PageRank as we know do not take into account the content of webpages, it only look at hyperlinks between webpages and try to measure the relevance. Google uses a lot of ranking criterias that takes into account webpages' content.

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

      Sorry for my grammar, two years and I didn't realize.

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

      @@samuelhuanca4729 Did you understand?