I know that any specific event (or a specific subset of events) with a non-zero probability will occur almost surely (i.e, with probability 1) at some point given an infinite sequence of events.
My question is, under which conditions do we also know that the expected time to encounter this event (or subset of events) is finite? For example, in the infinite monkey theorem/borel-cantelli's second lemma, given a uniform distribution, the expected time is finite.
I am not sure that it holds in the general case for any distribution.
Is there some useful theorem or conditions that suffice to prove a finite expected time? I imagine it also may be viewed in the perspective of Markov chains (of which I am woefully ignorant)
Many thanks for your help