See e.g. Confidence interval estimation of the mean of stationary stochastic processes: A comparison of batch means and weighted batch means approach and Using standardized time series to estimate confidence intervals for the difference between two stationary stochastic processes and references therein.