1: \begin{abstract}
2: Continuous-time random walk (CTRW) is a model of anomalous sub-diffusion in which particles are
3: immobilized for random times between successive jumps. A power-law distribution of the waiting
4: times, $\psi(\tau)\sim \tau^{-(1+\al)}$, leads to sub-diffusion ($\av{x^2}\sim t^{\al}$) for
5: $0<\al<1$. In closed systems, the long stagnation periods cause time-averages to divert from the
6: corresponding ensemble averages, which is a manifestation of weak ergodicity breaking. The
7: time-average of a general observable $\Ubar=\frac{1}{t}\int_0^tU[x(\tau)]d\tau$ is a functional of
8: the path and is described by the well known Feynman-Kac equation if the motion is Brownian. Here,
9: we derive forward and backward fractional Feynman-Kac equations for functionals of CTRW in a
10: binding potential. We use our equations to study two specific time-averages: the fraction of time
11: spent by a particle in half box, and the time-average of the particle's position in a harmonic
12: field. In both cases, we obtain the probability density function of the time-averages for $t\to
13: \infty$ and the first two moments. Our results show that indeed, both the occupation fraction and
14: the time-averaged position are random variables even for long-times, except for $\al=1$ when they
15: are identical to their ensemble averages. Using the fractional Feynman-Kac equation, we also study
16: the dynamics leading to weak ergodicity breaking, namely the convergence of the fluctuations to
17: their asymptotic values.
18: % The fluctuations decay in both cases as $t^{-\al}$ to their asymptotic values, which are non-zero when $\al<1$.
19:
20: \end{abstract}