Convergence in ergodic theory and probability