Let
Subtracting the measured distance modulus from the measured apparent magnitude gives
For the Hubble flow, define
The Hubble law, with the Hubble constant parametrized by , gives . After integrating over each intrinsic absolute magnitude and each unobserved true distance modulus, independence therefore gives the likelihood function