Homework 8.1: Hierarchical models are hiding in plain sight (20 pts)


Say we have a set of measurements, x={x1,x2,}. Each measurement has associated with is some measurement error such that xiNorm(μi,s). Furthermore, there is a natural variability from measurement to measurement such that μiNorm(μ,σ).

a) Write a mathematical expression for the joint generative probability density, π(x,μ,μ,s,σ), where x={x1,x2,} and μ={μ1,μ2,}. You may assume that the prior may be separated such that g(μ,σ,s)=g(μ)g(σ)g(s).

b) Calculate π(x,μ,s,σ). Hint: It may help to use the relation

(xiμi)22s2+(μiμ)22σ2=(xiμ)22(s2+σ2)+(μib)22a2,

where

a2=s2σ2s2+σ2andb=xi/s2+μ/s2s2+σ2,

which may be found by completing the square. Another hint: It is useful to know about Gaussian integrals, namely that

dxe(xb)2/2a2=2πa2.

c) Write an expression fro π(x,μ,s,σ) in the limit where the natural variability is much greater than the measurement error (sσ).

d) Finally, in this limit, write the expression for π(x,μ,σ) and show that for this hierarchical model, the limit of sσ is equivalent to having a likelihood of xiNorm(μ,σ)i.

This problem shows how a hierarchical model can reduce to a non-hierarchical one. In this case, it helps you see what is being neglected when you choose not to use a hierarchical model (since so many models actually are hierarchical if you don’t make approximations like the one derived here).