Statistical inference from imperfect photon detection | Synapse