When beta-decay occurs an electron or a positron is emitted along a neutrino or an antineutrino. The energy spectrum of the beta particles is continuous because, as I read, the energy is shared between the two emitted bodies.
My question is: what determines the distribution of energy here? That is, what determines with how much energy each particle is emitted? And for that matter: why is this sharing of the energy continuous?