Analysis of Random Walks