I am confused by the definitions of ergodicity in wikipedia, see formal definition here which says that a measure-preserving transformation $T$ is ergodic if for every event $E$, $T^{-1}(E) = E$ implies that $P(E)=0$ or $P(E)=1$. Is this definition in anyway related to the definition of ergodic process here which talks about the statistics of a process being captured by a long trajectory sample? If so, can anyone demonstrate the relation to me?
Also, what property must a stochastic process $X(t)$ possess such that a sample of the process with a very long time trajectory can be used to infer statistical properties of $X(t)$ for any time $t$? Is it ergodicity and stationary in the strict sense?