Adapted from pymc example.
Marginalising out variables from a model results in lower variance estimates of parameters in the model through Rao-Blackwell’s theorem.
Samplers approximate the expectation
Letting
Because the expectation is over a variance it must always be positive, and thus we know
Marginalising variables (