Counting statistics: a Feynman-Kac perspective
  By building upon a Feynman-Kac formalism, we assess the distribution of the number of hits in a given region for a broad class of discrete-time random walks with scattering and absorption. We derive the evolution equation for the generating function of the number of hits, and complete our analysis by examining the moments of the distribution, and their relation to the walker equilibrium density. Some significant applications are discussed in detail: in particular, we revisit the gambler's ruin problem and generalize to random walks with absorption the arcsine law for the number of hits on the half-line. 
Andrea Zoia, Eric Dumonteil and Alain Mazzolo
cond-mat.stat-mech