Computing the Stationary Distribution Locally