1. Home
  2. Explore
  3. Mathematics
  4. Discrete-Time Random Walks

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Discrete-Time Random Walks

Transcript

So hello everyone and welcome for the  sixth week of the course of networks. And today, what we're going to be doing is to  consider discrete time random walks on graphs. So the whole course is going to  be about random walks. But this   first video is about discrete time random walks. So if you remember last week we've  been looking at the interrelations that exist between some linear processes and  structures that are present in graphs. And we've been mainly focussing  on consensus dynamics,

that was this model in which you would have that nodes try to adapt their state  to the state of their neighbours,   which we've also shortly mentioned  discrete time random walks. What we're going to be doing today is to  consider a certain number of their properties. And as you've seen, the theory can be quite  rich for those. So just as a reminder, What is the process that you're interested in? So.   So here in this video will  be looking at a discrete time process in the sense that we'll have walkers  that all move together at a time one, two,

t, t plus one etc. And in the next videos, we will also  generalise this in order to focus   on continuous time random walks where now  the events will happen at a certain rate. And so, yeah, it's a Poisson process, as we see,   and they happen continuously  in the course of time. OK. So what is the process? We have a graph. And we'll have basically that we'll have an  ensemble of walkers in the statistical sense,   and each of these walkers, when they make a move, well, they will have to choose an edge to take. And so it means that if I have a walker,  it is located here. At its next step It will move and it will go with  probability one third to this node there, one third, to this node here,  and one third that other node. And we need to have the sum these  priorities, one third, one third, one third,

is equal to one, in order to ensure that the total   probability of absorbing a walker  somewhere is going to be conserved. Basically, we need to have this  conservation rule. Now, something, so here in the following will be denoting the  position of the walkers by certain vector p of t, whose entries up are p one of t, p n of t. Now, something that's quite important to  understand is that random walks on networks are   mathematically completely  equivalent to Markov Chains. So instead of having nodes and links in  a Markov chain, we would have instead   states and probabilities to go  from one state to another one. And so when you go from a graph  perspective to a Markov chain perspective,   what you need to do is to find what is  the relation between the adjacency matrix

and the transition matrix to go from i, to  the state i, to the stage j, in one step in the Markov chain, and actually what  you're going to be having is that this   is going to be equal to one, A ij divided by k i And this is indeed trivial to show that if I do  a sum over all of the outgoing links of node i of this A ij divided by k i, I would obtain that this is equal to k  i divided by k i, which is equal to one. So indeed we have here naturally implemented  this conservation of probability.

So now what, what does the process look like? So   what we have now is a  process that takes this form. We have p_j at time t plus one, it's going  to be equal to a sum of all of the neighbours   of node j of p_i at time t times this transition matrix at ij and  the basic estimates is the fact that if I'm on j, I'll look at all of my neighbours  and look at the probability   that it is going to go from the previous  step at node i to the current step at node j.

Now this equation can be written in  a vector form so we will have that   p(t) the vector p is going to be  equal to p(0), the vector p(0), then we'll have. Sorry, I'm one step ahead. Excuse me for this. Okay. We'll have   p(t+1) is going to be equal to  p(t) times the transition matrix. And clearly, this is a recursive  equation that you can solve formally, And we'll have the vector p at time t is going to be equal to the initial vector,   like the initial distribution of the walkers on  the nodes and then we'll have t to the power of t.

Now, when you have a Markov chain and  a Markov chain is in general directed right, because you have it's not because the  graph is undirected, because you, for instance, from here to there would have a transition of one,   it's not because the underlying graph is directed  but the transition matrix will be directed and in general, this transition  matrix is a directed object. But what's important is that  when you have a Markov chain. And so here, let's say that this is  my Markov chain where the directed   edges correspond to these transition to to, to these possible transitions  that take place between the notes. Well, when we have such such a Markov chain typically in a Markov chain, you  may have different types of states.

So something that is important  is that we need to have that   the sum over the js of t ij is equal to one, which basically means that each node  needs to have some outgoing edges. And we need to have that the sum of  those is equal to the sum of the weights. Here I didn't write the weights  just for the sake of simplicity. So what are these different types of notes that   exist for Markov chains and hence  also for random walks on networks? The first ones would be absorbing states.

An absorbing state is a state such that T ii is equal to one. Which means that  it's a node that is such that   all of the flow goes back from the node to that very same node. And equivalently it  means that T ij is going to be equal to zero when i is different from j. So  it means here that there is no   possibility for the probability to escape  that node, hence the name absorbing state. And an example of such an absorbing state here  would be this node. Which is indeed absorbing.

So another important concept is the concept of  ergodic set. So an ergodic set is a set of nodes Set of states such that you can go from any you state i to j, And from any j to i, yes, but also you do not escape the ergodic set. So once you're in   the ergodic set you're going  to be staying there forever. So what would be an example of an  ergodic set here? Well, for instance,   this set of nodes, these three  nodes are clearly forming an ergodic set because once you're  in you're in one of the green nodes, you're going to be staying there forever and  clearly can go from any node to any node in

a in a certain number of steps. Now, there is a final type  of node that is important,   and that would be the concept of transient, ah sorry, of transient node. Nodes. And basically, it's a state, it is neither It's a state. That is not

a member of an ergodic set. So if you're a part of an ergodic set it means that the probability that on you is going  to be either directly or indirectly leaking out   until asymptotically you can be sure that the probability to be on one   of these transient nodes is  going to be equal to zero. An example would be that one here. It's  a node that indeed if you start out there   just after one step you leave and you  will never visit that node anymore.

So just a tiny note, an absorbing  state is actually an ergodic set, yes, this is just an ergodic set  made of one single node.   So clearly in this example, we  just had one transient node, that nodes that is such that after some time   we can be sure that it will not be  visited anymore by any any any walker. Now, once you have this, this this  transition matrix well typically a   very important concept is the  concept of stationary density.

And these stationary density that we denote by p  star, which is equal to p one star,...,p n star. it is such that the p star is equal to p star times T. So basically it means that this is an eigenvector  of eigenvalue one, of the transition matrix. So can you be sure that it  exists intuitively? Yes, right. We'd expect it to happen given the  process. Can you be sure of that? Well, actually, we can be sure that it exists  because we know that t times the vector of ones

is equal to the vector of ones  and this is something that is   directly shown from this expression here. Which basically means that we have a  right eigenvector of eigenvalue one, and hence we need to have a left  eigenvector that we denote by p   star of eigenvalue one for the process. And actually, many interesting  properties of graphs   are associated to the properties of these p stars. as we see later. Now OK. So I just need to find back the right pages.

Now what what can what can we say about this  this process when it takes place on a graph? So, so clearly we have a formal solution   of the process and this former solution  given by this matricial equation here. But it doesn't allow us to gain a lot of  intuition about how the process actually   takes place inside the graph. And as we see, a very, very powerful  way to gain some intuition is to change   the basis in which we're  going to be representing the system and to adopt a basis  that basically is aligned   with the eigenvectors of that transition matrix.

So just before we do so, something  that needs to be clarified. So what what can we say about these  eigenvectors? Well, clearly, we have   this transition matrix that as we said before need not be symmetric. So that actually we can  think about it when you have an undirected graph. A ij is symmetric, the only possibility  for the transition matrix to be symmetric   is when the graph is regular and  all of the nodes are the same, but in general, otherwise, we'll have  that if we have an undirected graph. its transition matrix will  be an asymmetric matrix. But yet the thing is that the  spectral properties of this T matrix

are actually can be directly derived  from the from the from another matrix, which is this one here. Which is A ij  divided by the square root of K i times K j,   and that one clearly is a symmetric one. So because that matrix there is symmetric,  we can basically form a spectral decomposition of it in terms of its eigenvectors  and the left and right ones will be the same. And we basically have that this A tilde  ij, it's going to be equal to sum for L Sorry, going from one to n sum of all of our  eigenvectors of the lambda L times U L, U L transpose. Where the U L is the eigenvector  associated with the eigenvalue lambda L

now and where because of the fact  that you have a symmetric matrix, we also have that we choose the U Is in such  a way that they will actually be orthogonal   and normalised. Now, something that is interesting to note is that   this matrix T ij is simply  equal to the square root of K i oh of K j sorry And then we have A ij tilde, and then we have   that it's divided by the  square root of K i, ok which in matrix notations can be written as  the fact that this is D minus one half where D is this diagonal matrix with the  degrees that would be put on the diagonal. And then we have times A tilde times D one half,

and because of that it's really  straightforward to show that   the matrix T and the matrix A  tilde have the same eigenvalues. And these values are real because we know that a  A tilde was symmetric, so it has real eigenvalues So it means that the transition  matrix also has real eigenvalues. And we'll have that the vectors will be if we take  the left eigenvectors, it's going to be equal to then you have U L one square root of K one.

U L n square root of K n and we can  directly obtain these eigenvectors just by multiplying each entry by the  square root of the degree,   while for the right eigenvectors we'll be doing something basically similar we'll be  dividing by the square root of the value. And then here U n, the nth entry of it, and  we divide by the square root of K nth degree.

And so it basically means here that we directly  can get something about the eigenvectors, the eigenvalue and the eigenvectors, because we  can construct them from orthogonal ones, yes, and we know that eigenvalues  are going to be real numbers.   So actually, this is going to be  implying something interesting so if I take T to the power of T, which is  exactly this quantity that is of interest   for the solution of the renewal process,

Well, basically what I will get is that this  is going to be equal to D minus one half   A tilde D one half to the power of  T, which is equal to D minus one half A tilde D one half, which again we can rewrite  as D minus one half, then we have the sum   over from L going from one to N lambda L to the power of T, U L U L transpose,

D one half, which we can rewrite in  terms of the left and right eigenvectors. So this is a sum over all of the eigenvectors  and eigenvalues of lambda L to the power of T And then you have U L right, U L left, yep. Now, and therefore, what it implies is  that if I'm looking for the solution P of T is going to be equal to my p0, T to the power of T Which is going to be equal to sum, for L going from one to N, of lambda L to  the power of T, and then we have U L left And then you have the scalar product  between P0 and the right eigenvector.

So how can I interpret this? So  actually, this here is just a A L zero. This is the amplitude along the Lth edge of  direction of my basis, of my initial condition. This is just my initial amplitude  in that direction, in this mode. And what it tells me here is that actually  this amplitude is going to be eroding in time. And what I'm going to be having is that  my solution will be such that the P the probability to be at node I on time T is going to be equal to the sum for L  going from one to N of a certain amplitude   in this Lth direction of my basis And then I will have my vector a l. Uh, sorry. my lefthand eigenvector L, Sorry for that.

Yeah that shouldn't be A here. that should  be a U, and that will be with index I. And it basically means that the probability  to be on a certain node at a certain time Can be obtained from what's happening  in all of these eigen directions And how does the amplitude evolve  along these eigen directions? We will simply have that's A L T is equal to lambda L to the power of T, A L zero.

So and here, when you think about it, we get now  a solution where instead of having to deal with   product of matrices, as we had here, we now simply have to deal with any equations that  that are independent and that tell us how the   amplitude along all of these  directions are eroding in time. Now, actually, this this transformation  where we've been changing the signal for   from our initial from being defined nodes to amplitudes  associated to the eigenvectors of the laplacian is something that is  usually called a Graph Fourier Transform.

And this graph fourier transform  basically, what it does is to transform the vector of Ts  into a vector of amplitudes. It would be a vectors associated  to certain spatial frequencies. And these that would be this one is A N T And this graph transforming is called like that   in analogy with the usual Fourier  Transform you have a signal And then basically you decompose the  signal in a basis that is formed by Exponential of I K X,   from which you get amplitudes that are  associated to different values of K.

And this naturally appears, for  instance, in the heat equation. Why? Because this basis here, it can be seen to be   some sort of an eigenfunction of  the laplacian in the heat equation. Well, here we have something  that is very, very much the same.   We have a basis that is  well adapted to our problem And it would be the basis that comes from  the eigenvectors of the transition matrix. And basically, we are changing the way  we represent, we represent the system in order to simplify its  representation and to simply have now N independent equations about the  way these amplitudes are evolving in time.

Now, something that is also  important to understand is, is what what can we say about the time evolution  of these amplitudes and hence, about   the the sum of the contributions  of all of those nodes? Well, for this, the first thing that is  important to note is that so it can be   shown that these eigenvalues they will always be inside minus one, one.

So do the lambda equals to one is associated  to the stationary states and exactly the same way that we had some some  properties of eigenvalues for the laplacian it can be shown that lambda  one equal to one is unique if and we actually we're gonna  be calling that one lambda one, yes. So when the ranking the eigenvalues from   the largest, it would be lambda one,  and then it would be lambda two, they're all between. Let me  see if I can do a bit better. It will all be between minus one and one So we have that sequence of eigenvalues, it  will all be here between minus one and one.   This lambda one is unique if the graph is connected.

And actually, it can also be shown  that lambda N is equal to minus one if and only if the graph is bipartite. Ok. Now, what about the time evolution that would be associated to our solution,  our general solution here at the top? Well, let's first look at what's happening  when we let the T go to infinity.

Then we'll basically have that all of  these terms with lambda different from one   are going to be what we do  that, take T going to infinity, and we will be assuming for  the time being that the graph is not bipartite. And why do we do so, we do so because  otherwise we may have some small   technical difficulties that are not so terrible, but it's going to distract us from the  important message. This is a bipartite graph. When you have a bipartite graph, you have the  possibility for oscillations to take place Because if I start with all of my probability  here, at the next step, it will be here   and then go up, down, up, down, up, down.

And we're going to be having oscillations. We will  never have a convergence towards stationality. So it means here that's from the  one we assume that the graph is not Bipartite. In that case, when T goes to infinity, we basically have that we're going to be  converging because all of these lambda   to the power of T are going to going to  zero except when lambda is equal to one. So what you're going to be having   is actually that's what we call  converting to a certain P star, which is equal to U L max, which be the  eigenvector associated to the largest eigenvalue. Times would have p0 U R max.

And because of the fact that the U R Max is  equal to the vector of ones, as we said before, and because P0 is a probability we basically  have this quantity here is equal to one which basically tells us that the asymptotic state is simply given by the left eigenvector  of the transition matrix as is expected. Now, if you still consider levels of  T but look for the next contribution And what we'll have is the following. So we  have the P of T it's going to be behaving like So we have this, U L max. And  then we'll have this p0 U R Max.

Plus, lambda two the power  of T time we'll have ah sorry Then we'll have the U two U two the left and then we'd have p0 U 2 the right So it means here that what's gonna happen  is that we're going to be having that   the next contribution is going to be associated to what's happening for  the eigenvector that has the largest eigenvalue. Except for lambda one. Well  here just a small detail, In principle it should be the one  that has the largest absolute value. We will be assuming that this is this one here  and there is an end that there is actually no

eigenvalue that is too close  here from the minus one. Ok here just for simplicity. But  if we have that what's happened Well, basically it means here that   we have this dominant behaviour  and actually all of the other ones, all of the contributions of the form Lambda  L to the power of T are going to be much, much smaller than the lambda two to the  power t when T is sufficiently large. And so that that's why most of the terms that  are appearing here are vanishingly small.

And only these two are going to be dominant.   Which reminds us to what we can doing  about timescale separation, for instance. And that's it basically means that  well, what can we say that then about   the convergence to the stationarity,  well the convergence to stationarity, it is going to be determined is going  to be given by an exponential decay. Yes. That is going to be  controlled by this lambda two.   And actually, what what what's going to  happen is that's a very important factor, will be this one minus lambda two, which  is usually called the spectral gap.

And we're going to be having that if  the one minus lambda two is small, well basically. Well, the  values of this spectrum gap, Are going to be affecting the  way the relaxation takes place, Well, the one minus lambda two is very small,  meaning that we are very close to here. Then we'll have a very slow relaxation.  When the one minus lambda two is large, there's a big separation.   What's going to happen is that you're  going to be a very fast convergence.

Not actually, this spectral gap that we naturally  see coming here from from the from the spectral properties of the transition matrix can be related  to a very important concept of graph theory. And this concept is the  so-called Cheeger inequality. And the Cheeger constant  also called the conductance.

So so what is this conductance, h? Well, h is the following, so given a graph, we'll  have that if we can find this quantity here, Let me first write it, it's number of edges that connect s and s bar, Divided by the minimum of  volume of s, volume of s bar, So what you do is the following, we have a graph.

We partitioned it into two sets of nodes S and the compliment of S. And what  we try to do is to find the best bipartition such that we're gonna be minimising  the number of edges that go from one to the other. And this looks very much like  the cuts that you've seen before.   But we just don't try to minimise  the cut because we noticed that when we just try to minimise the cut   we can get trivial solutions, we  minimise the ratio of the cut with the minimum of the volume of S  and the volume of S compliment.

What is the volume of S? It would  be a measure of the size of S, the volume of S is equal to the sum  for all of the nodes that are in S of K I. So we basically sum the  degrees of the notes that are inside S. And so what we try to do here, we try to find   a bipartition that is such that you  have few connections between the groups, but at the same time that they should  be relatively balanced with each other.

Well, what can be shown is the following. There is   this Cheeger inequality that will show  that actually there are some bounds. that exist between the Cheeger constant, the  conductance and the spectral gap. And this but these inequalities  basically tell us the following. They tell us that if we have a graph that has a very small value of the conductance  in the sense that it can be partitioned into two sets of two sets of nodes with  just a few connections with each other. This will mean that the spectral gap   is going to be very small. And  if the spectral gap is very small it basically means that the  relaxation of the random walker   towards stationarity is going  to be extremely slow as well. And this is a very important concept because  it relates a very graph theoretical object,

the notion of conductance with a  spectral one, associated to dynamics that would be this spectral gap.  And again, this is very intuitive, If we have two groups of nodes with few  connections, that would basically mean   that we have some sort of  a bottleneck between them, this bottleneck will basically lead   to is going to basically lead to, is going  to slow down the way by which diffusion can One group reach the other group in  order to reach the global stationarity.

OK, so. So thank you. Thank you  very much for our attention. So so we've been covering discrete time  random walks. Now in the next video we'll be interested in a very  important application of discrete time random walks on networks that can  help us to quantify the notion of   centrality for directed networks,  something that is called page rank. But that's going to be for for the next few video. So hello, everyone, and welcome for this second  video of week 6 in the course for networks. And today, what you're going to be  doing is to talk about page rank. So if you're remember in the first video of the  week we've been considering in detail, well,   the properties of a discrete time  random walk process on graphs. And we've been characterising the way probability   is going to be flowing and  reaching an asymptotically

a certain equilibrium solution, at least under  the conditions that the dynamics is ergodic and that's the underlying  graph is connected mostly. Now Now, the thing is that this equilibrium  distribution that we denoted P   star last time can actually  be used for certain purposes. And one such purpose is in order to, you know, to  characterise the centrality of nodes in a graph. And if you remember, we've already  seen several measures for centrality. You've seen the degree centrality, the betweenness   centrality, the closeness  centrality, the Katz centrality, And those were all centrality measures  based purely on the underlying graph. Now, here with page rank we'll be yeah we'll be proposing a centrality  measure that is based on using   how a certain dynamical processes assigns a  certain importance to the nodes of a graph.

Now, page rank is really meaningful when you   focus on directed networks and  I'll explain this to you later well, in just a few moments.   So here we'll looking at the directed networks  that we didn't consider in the first video. So for directed networks, it means that we  have networks like this one, for instance. Well, for directed networks, part of  the properties are that of the random   walk process will actually be quite different.

Well, first of all, how is  the process characterised? Well, at each step. We'll basically design the  network such that the walker Located at a certain node,  located at a certain node I. well, jumps to one of its  out-neighbours. Because indeed when you have directed networks, you need  to differentiate between in-neighbours, those from the incoming links,  from the out-neighbours,   those that are associated to the outgoing links. And so here in the example here, for instance,  you would have that if you have walker that is located here at a certain state   with a probability one half it would go in  this direction and one half in that direction,

but it will not have the possibility to take  this edge that goes in the wrong direction. Now, well, if you want to characterise  a random walk process   because of its equivalence with Markov chain, you need to write on what would be  the transition matrix of your process. And here this is gonna be a small generalisation. on what we did before. The transition  matrix of going from node I to node J   is going to be equal to the adjacency  matrix A ij, where Aij is defined as zero if you have a link from I to J. And it needs not be a symmetric matrix anymore,  divided by K I out, by the out degree of node I,   and indeed here node I at two  out-neighbours with probability one half I'll take one neighbour, with  probability one half I'll take the other.

Now how do you define this page rank. Right. So page rank is going to be  defined as the stationary density of the random walk. And actually by definition it  means that it's going to be it's going to be a certain  vector P I star such that we have that this here, well P J, it's going  to be equal to a sum over the Js, uh sorry, a sum over the  Is, excuse me, of P I star and then we'll have A ij, divided by K i out.

Or in vector notation we have that this  vector P star is simply given by this. Yeah. Now what it means here is that   this vector that defines a stationary  density of the random walkers and so all of its entries is gonna be by definition  the page rank of the corresponding node. Well, this vector is the  eigenvector of the new one   of the transition matrix that  comes here from the directed graph.

Now, how can we interpret this? Well, clearly,  we'll have that a node will be important the importance of a node is going to depend  on the importance of its in-neighbours of   all of the all of the links that point to him, So and the more of those nodes I have, the better, But I just need to be careful that here I  am dividing by the out-degree of node i. So it means that a node will be important  if a certain node J is important,   if it receives typically many connections.

But actually, these connections are going to be  weighted by is this node here important or not? So if you had many links coming  from many important links. This is going to be good. But you just  need to be careful that those neighbours, have a degree, a node degree that is too large, that will not contribute much because  basically each of them has a certain a certain total importance that they can  share to their out-neighbours. So it means that typically, if you want to  have a high page rank, you need to have many, many connections coming from high well   from important nodes that are such that  they do not have many out-connections. So ideally, for instance, if I was to be  on Twitter, but if I was to be followed   by someone like Barack Obama and  Barack Obama only follows me, that would be much, much more meaningful

and give me much more importance than  if I was followed by Barack Obama, but Barack Obama is following one million  people, because otherwise its important would be diluted and basically  distributed amongst these million people. OK. Now, actually, there is just a problem here. And the problem is that while we've  been talking about the stationary   density of the renewal process, but  the problem is that these P star. Is is is not going to be unique, is not unique, except if the underlying graph is strongly connected.

And the thing is that there's no imposing  that the group is strongly connected. Well, it might be, yeah nice mathematically,  but in practise, it never happens. And most of the graphs to which you will be  confronted with if you analyse directed networks   will it might have a core  that is strongly connected, but except for that, will have many  components that will not be belonging to it. And even worse,   in many graphs, we will have situations  where you would have like this would be here, strongly connected components.

But what will happen, draw a link like this, But the problem is that you will have the  presence of one absorbing state here and   the presence of certain transient states as well. And actually, all of those will be transient. Which basically means that if you look at the   asymptotic density of workers well  depending on your initial conditions, you will be absorbed in certain absorbing states   and you will have like some trivial  centrality to measure that will put all of the importance in the absorbing states will  be ill-defined because you going to be   depending on your initial condition. And even worse, most of the nodes that would be  transient would simply have page rank of zero.

You know, this is something that  has been recognised for some time. And in order to seek circumvent these   these problems in practise with  different mathematical tricks, have been proposed in order  to make the dynamics ergodic even if it was not on the original graph,   the most standard way to do so is to allow  the walker to do some random teleportations. So we'll be considering the possibility  to have some teleportations.

What, so what would be the process, I will first  write it down. Then I would explain how it works. So the equation we'd be looking  at now will be this one here. It's going to be equal to Alpha and then you  have the sum over the Js of P j of t, we have this T ji plus one minus alpha U i, And what is this U i, this vector U i this vector U 1 until U n, is usually called the preference vector.

And it satisfies, satisfies the fact that the  sum over the i's of the U I   is equal to and and the U i's  are also positive numbers. Now, what so, so it means here that  the U i's can be interpreted as   some probabilities and if you  should think about in those ways. it basically means that when you do teleportation, what's happening with a probability alpha we will  have that the walker is gonna be following edges, as in the original random walk on the original  graph, while with a probability one minus alpha,

the walker will not follow a link it's going to teleport, independently  of the underlying structure, and it's going to be arriving on nodes   randomly with a property that is going  to be given by this preference vector. OK. Now, the thing is that's in general,   if we have if we have, that's the  U i's are all different from zero, they're all positive, strictly  positive, and we have that zero is smaller or equal to alpha, strictly  smaller than one. So if you allow at least just a bit of teleportation  then whatever the underlying graph we will have that the random  process is going to be what I meant to say is going  to be ergodic. And we have

a unique, P star. So it means that as soon  as you have just a bit of teleportation, you can be sure that the process is going to be  converging to one unique to one unique solution. Now, of course, you have a parameter here,  and a problem is how do you choose it? And so typically, very intuitively, well, you  wouldn't like to choose the alpha too small,   because if the alpha too small, well, it will basically mean that  you're going to be teleporting a lot, and so you can be losing all of the signal that  comes from the topology that you're interested in.

But you don't want to have alpha that is close to  close to one, because if you're too close to one, actually calculating the page rank is going to be   converging very slowly and you going to be  confronted to possible linear instabilities. And so typically, people tend to choose the  value of alpha, which is neither too small, neither too large, and historically  the value of alpha the people will take is the value of alpha of zero point  eighty five, and actually this value of alpha of zero point eighty five come from  the original interpretation of the process.

So here this teleportation was initially  thought of as a way to model the way people would be browsing the web. And clearly, when you browse the  web, you start from the page, you may follow a certain number  of links and then you stop   and you start from a new node  as you start from a new page. And you could arrive from  the new page, from any way, but you start from a page that is  unrelated to where you are at the end. And at the time, it was observed that actually if   you looked at the chain of of  of clicks that the people do,

when this chain of clicks, the length of them  would be compatible with a value of alpha. That would be of the order of somewhere  between zero point eight and draw upon them. And that was one of the historical reasons why  people picked this value zero point eighty five. So there have been many, many works  trying to understand the impact of alpha   on the on the page rank, trying  to find out what would be yeah so maybe sensible ways, like computational ways to decide  what would be the right value of alpha when you're confronted to a system. But   that's that's something that goes  beyond the scope of this course.

Now very often, so, as I said, the value of  Alpha is taken to be zero point eighty five, And the most popular and stand out choice  of U I would be to take one over N,   it means that when you teleport, you give the same importance to all of the nodes. Now, this is what we are going to do  mathematically just after but in practice when, for instance, search engines   are using page rank, because they've been at  the origin of search engines, so people have this page rank has been proposed as a way to  rank the importance of Web pages on the Web.

And nowadays, when I do a search  or any of you does a search,   it will even not he or she will  not receive the same answer. And the reason for that is that  page rank tends to be personalised. And so, for instance,   in my case, there might be a preference vector  that is more aligned to my own interest. So that's the system we basically  know from my past research what I'm interested in and somehow bias where were the search is done in  order to assign importance to nodes,   to the topics that I would  personally find interesting.

OK. So very good so we have this page  rank. So actually, it's interesting, it's instructive to right  down the solution formally. And here I show explicitly  the dependence on alpha.   And so you would have the page  rank can be rewritten as this sum over js of U j. and then we have here  this identity minus alpha T minus one, . And then we have the ji. Now, when you look at it that way, it looks  a bit it feels like the Katz centrality But for the Katz centrality you should remember  we had something like one minus alpha A minus one. And we needed to be careful because the  depending on the largest eigenvalue of   A, we could not choose any value of alpha. Here because the  largest single value of T is one, actually, we will not have any kind of  constraint on these values of alpha.   And that comes from the fact that for page rank

you looked at   all of the, well you did not have any kind  of conservation of random walk taking place, you were counting all of the all of the walks that  would go from one node to another one while here, because you have this transition  matrix will weight those walks.   And that leads to some conservation rules. Now, this solution can again be  rewritten as P I star, alpha, is equal to U i plus sum of L going from one to infinity of alpha to L

And then we have a sum over the i, I'm sorry, a sum over the J going from one to N, of U J times T J L, T ji,  excuse me, to the power of L minus T ji to the power of L-1. And when you look at that, well,  it clearly shows as well here there is this explicit dependence  on alpha and one the alpha is large   it's going to be giving more and  more importance to the longer walks.

And each of these long walks is going to be  contributing according to these these terms. Now, here, things are still a bit vague.  But the thing is that when you choose   explicitly the U I to be equal to one over N you arrive at an expression that is a bit easier  to interpret. We have this solution one over N plus this sum for L going from one to  infinity of alpha to the power of L over N, And then we have the sum over J, J  prime going from one to N of K, J prime, in minus K J out,

Divided by K J prime in, times T ij prime times T J prime i, to the L minus one. So how can we interpret this here?   That would be the contribution of a walk  of length l on the centrality of node i. Basically, it means that we have node i.  And what we have here from that we have

a certain walk that starts at a certain J prime. And this one has a length L  minus one, and for that one we're going to be looking at  a certain, i yes, ah sorry, we're going to be looking here, I  think that I made a mistake, a j,   we're going to be looking at a certain j, And so when we look now at what's  happening for this last edge, ok. And given this walk that started at i, and arrives, well started at j and arrives  at the node i that we're interested in, we'll have a contribution that can either be   positive or negative depending  on the sign of this term here.

And we'll have that it's going to be a positive  contribution, giving more importance to node i. If we have that it's at length L we basically have  that this node here has many more incoming links   than that node there as of all the edges, which, again, if you think about it, it's  really about this this walk of length L, but at the end,   does it tends to concentrate the probability  and then to to to to to make this flow arrive at node i or initially does  the flow of probability go out   and hence decrease the value that we have.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent