> Why is the average of the J walkers a Markov chain? If
> mu[i] is the average at i, I can't see how to formulate
>
> p(mu[i] | mu[i-1])
>
> Is there something general that says a transform of a Markov
> chain is a Markov chain? If so, that'd explain why both the
> average and the projection to one walker form Markov chains.
Just consider the multivariate case: you have a Markov chain sampling from some p(x1, x2). You can transform to p( x2 ) = int dx1 p(x1, x2) at each state, so that { x2 } are valid draws from a Markov chain for p( x2 ).
The proof is straightforward. Let T be a Markov transition with invariant density pi(x1, x2). Then by definition
pi(x1, x2) = int dx1' dx2' T (x1, x2 | x1', x2' ) pi(x1', x2').
Integrating both sides with respect to x2 gives
int dx2 pi(x1, x2) = int dx2 dx1' dx2' T (x1, x2 | x1', x2' ) pi(x1', x2')
or
pi(x1) = int dx1' [ int dx2 dx2' T(x1, x2 | x1', x2') pi(x1', x2') / pi(x1') ] pi(x1')
pi(x1) = int dx1' [ int dx2 dx2' T(x1, x2 | x1', x2') pi(x2' | x1') ] pi(x1')
Where
T(x1 | x1') \equiv int dx2 dx2' T(x1, x2 | x1', x2') pi(x2' | x1')
is a valid Markov transition for pi(x1).
Neal talks about the general case in his ensemble paper, and the intuition is really nice. The marginalized transition first samples x2 from the condition distribution p(x2 | x1) and then performs a transition on the space (x1, x2) before marginalizing back to just x1. It's also how HMC works, where x2 is the momenta, x1 the position, and T(x1, x2 | x1', x2') the Hamiltonian flow + Metropolis correction.
You can readily generalize the proof to include changes of variables x1, x2 -> f(x1, x2) (where f(x1, x2) might be the average or the median), and the same reasoning holds for the ensemble where you consider the state space x = {x1, …, xi, … xI}.
> I don't see how you can estimate posterior variance from
> the mu[i], though. It seems to me that the variance of
> the chain of mu[i] will be lower than that of the component
> walkers.
Right, but you only use the mu[i] to compute the expectation of mu. If you want the variance then you have to compute var[i, j] in each walker and average that. While this method does account for the correlations in a systematic way it is terribly inflexible.
> P.S. Thanks for trying to explain this all to me.
No worries at all. If people didn't push me to explain I'd get in the habit of handwaving instead of whipping up little proofs like that and understanding it better myself. Keep me on my toes!