A class mean with partial pooling

For a normal hierarchy with known population mean μ=40, between-class variance τ²=9 and within-class variance σ²=36, a class of four has sample mean 55. Find its conditional posterior weight on its own mean, posterior mean and posterior variance.

The weight is nτ²/(σ²+nτ²)=4(9)/(36+4(9))=1/2. The posterior mean is (1/2)55+(1/2)40=47.5. The variance is σ²τ²/(σ²+nτ²)=36(9)/72=4.5. This is conditional on the supplied population parameters.