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.

Exercise 5.10 Let p be a probability vector (nonnegative components adding up to 1) on<br />

the vertices <strong>of</strong> a connected graph which is sufficiently large that it cannot be stored in a<br />

computer. Set p ij (the transition probability from i to j) to p j for all i ≠ j which are<br />

adjacent in the graph. Show that the stationary probability vector is p. Is a random walk<br />

an efficient way to sample according to a distribution close to p? Think, for example, <strong>of</strong><br />

the graph G being the n × n × n × · · · n grid.<br />

Exercise 5.11 Construct the edge probability for a three state Markov chain where each<br />

pair <strong>of</strong> states is connected by an edge so that the stationary probability is ( 1<br />

2 , 1 3 , 1 6)<br />

.<br />

Exercise 5.12 Consider a three state Markov chain with stationary probability ( 1<br />

2 , 1 3 , 1 6)<br />

.<br />

Consider the Metropolis-Hastings algorithm with G the complete graph on these three<br />

vertices. What is the expected probability that we would actually make a move along a<br />

selected edge?<br />

Exercise 5.13 Try Gibbs sampling on p (x) =<br />

Metropolis Hasting Algorithm do?<br />

( 1<br />

2<br />

0<br />

0<br />

1<br />

2<br />

)<br />

. What happens? How does the<br />

Exercise 5.14 Consider p(x), where, x = (x 1 , . . . , x 100 ) and p (0) = 1 2 , p (x) = 1<br />

(2 100 −1)<br />

x ≠<br />

0. How does Gibbs sampling behave?<br />

Exercise 5.15 Construct, program, and execute an algorithm to compute the volume <strong>of</strong><br />

a unit radius sphere in 20 dimensions by carrying out a random walk on a 20 dimensional<br />

grid with 0.1 spacing.<br />

Exercise 5.16 Given a connected graph G and an integer k how would you generate<br />

connected subgraphs <strong>of</strong> G with k vertices with probability proportional to the number <strong>of</strong><br />

edges in the subgraph induced on those vertices? The probabilities need not be exactly<br />

proportional to the number <strong>of</strong> edges and you are not expected to prove your algorithm for<br />

this problem.<br />

Exercise 5.17 Suppose one wishes to generate uniformly at random regular, degree three<br />

undirected, connected multi-graphs each with 1,000 vertices. A multi-graph may have<br />

multiple edges between a pair <strong>of</strong> vertices and self loops. One decides to do this by a Markov<br />

Chain Monte Carlo technique. They design a network where each vertex is a regular degree<br />

three, 1,000 vertex multi-graph. For edges they say that the vertices corresponding to two<br />

graphs are connected by an edge if one graph can be obtained from the other by a flip <strong>of</strong> a<br />

pair <strong>of</strong> disjoint edges. In a flip, a pair <strong>of</strong> edges (a, b) and (c, d) are replaced by (a, c) and<br />

(b, d).<br />

1. Prove that a swap on a connected multi-graph results in a connected multi-graph.<br />

2. Prove that the network whose vertices correspond to the desired graphs is connected.<br />

181

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

Saved successfully!

Ooh no, something went wrong!