A random walk is a path across a network created by taking repeated random steps. They are usually allowed to traverse edges more than once, and visit vertices more than once. If note it is a self-avoiding random walk.
We consider a random walk where at each vertex one will take a step (i.e. walker does not stay in vertex) along each of the edges connected to it, with uniform probability, i.e. with probability , where is the degree. Thus, on an undirected network we have:
or
Where is the probability that the walker is at vertex at (discrete) time , and where . One can also write this relation in terms of the reduced adjacency matrix, , and that can be useful sometimes.
We are interested in the limit as where we expect the probability to approach a steady state :
, which can be rewritten as , so is an eigenvector of the Graph laplacian () with eigenvalue , but we known (see Graph laplacian) that in a connected network only the vector has eigenvalue . Therefore , so normalizing (see Degree of a vertex (Graph theory))
With a random walk, an interesting question is that of the mean first passage time, or the mean number of steps before reaching a certain node, when starting from a given node. To find this we consider an absorbing random walk, where a walk that arrives at a certain set of vertices (we will consider just one, call it ) will stay there.
We can then consider the probability of being at vertex at time . This is the same as the probability that the first passage time is equal to or less than , and thus the probability that it is exactly is , and the mean first passage time is:
Note that we can't rearrange terms in this sum, because it is not absolutely convergent!
Following the manipulations shown in Newman's book (section 6.14), we get to:
where the prime indicates that the th element, or the th row and columns have been removed. In particular is called the th reduced Laplacian. This can be re-expressed a bit further, following Newman's book, for computational convenience.
Resistor networks
Kirkoff's current law can be written as:
where is an external current applied at some node in the network. This can be written in terms of the Graph laplacian as:
()
where is the vector of voltages. is not invertible, but this cooresponds to the arbitrariness in the value of voltages , which can be all shifted up and down and still satisfy the equation. This is equivalent to adding a multiple of the vector, which we know to have a eigenvalue of the Graph laplacian. However, if we fix the voltage at some node (to be say), then we can remove the corresponding columns and rows from the equation (), and the eigenvalue is removed, and the reduced Laplacian is now invertible, so we can get the voltages, and thus the currents!
Random walk sampling method for social networks
Random walk betweenness measure.