I have a two statements. One says:
$$-\frac{1}{T} \sum_{t=1}^T X_t \rightarrow a $$ in probability as $T \rightarrow \infty$.
The other:
$$-\frac{1}{g(T)} \sum_{t=1}^{g(T)} X_t \rightarrow a $$ in probability as $T \rightarrow \infty$ for every function $g: N \rightarrow N$ such that $ g(T) \rightarrow \infty$ as $T \rightarrow \infty$.
Could you please tell me why are these two statements equivalent for a random sequence $X_t$?