Likelihood for supernova neutrino analyses