08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Consider a graph in which half <strong>of</strong> the vertices are degree one and half<br />

are degree two. If a vertex is selected at random, it is equally likely to be<br />

degree one or degree two. However, if we select an edge at random and<br />

walk to a random endpoint, the vertex is twice as likely to be degree<br />

two as degree one. In many graph algorithms, a vertex is reached<br />

by randomly selecting an edge and traversing the edge to reach an<br />

endpoint. In this case, the probability <strong>of</strong> reaching a degree i vertex is<br />

proportional to iλ i where λ i is the fraction <strong>of</strong> vertices that are degree<br />

i.<br />

Figure 4.13: Probability <strong>of</strong> encountering a degree d vertex when following a path in a<br />

graph.<br />

lim<br />

n→∞<br />

n∑<br />

i=0<br />

( ) ( i ( n 1<br />

i(i − 2)<br />

1 −<br />

i n) 1 ) n−i<br />

n<br />

= lim<br />

n→∞<br />

n∑<br />

i=0<br />

= 1 e lim<br />

n→∞<br />

≤<br />

∞∑<br />

i=0<br />

n(n − 1) · · · (n − i + 1)<br />

i(i − 2)<br />

n∑<br />

i=0<br />

i(i − 2)<br />

.<br />

i!<br />

i! n i (1 − 1 n<br />

(<br />

n(n − 1) · · · (n − i + 1) n<br />

i(i − 2)<br />

i! n i n − 1<br />

) n (<br />

1 − 1 ) −i<br />

n<br />

) i<br />

To see that ∞ ∑<br />

i=0<br />

i(i−2)<br />

i!<br />

= 0, note that<br />

∞∑<br />

i=0<br />

∞<br />

i<br />

i! = ∑<br />

i=1<br />

∞<br />

i<br />

i! = ∑<br />

i=1<br />

∞<br />

1<br />

(i − 1)! = ∑<br />

i=0<br />

1<br />

i!<br />

and<br />

Thus,<br />

∞∑<br />

i=0<br />

i 2 ∞<br />

i! = ∑<br />

i=1<br />

∞<br />

i<br />

(i − 1)! = ∑<br />

∞∑<br />

i=0<br />

i=0<br />

i(i−2)<br />

i!<br />

= ∞ ∑<br />

i + 1<br />

i!<br />

i=0<br />

=<br />

∞∑<br />

i=0<br />

∑<br />

i 2<br />

− 2 ∞ i!<br />

i=0<br />

∞<br />

i<br />

i! + ∑<br />

i<br />

= 0. i!<br />

i=0<br />

∞<br />

1<br />

i! = 2 ∑<br />

i=0<br />

1<br />

i! .<br />

115

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!