Inferring electoral individual behaviour from aggregated data is a very active research area, with ramifications in sociology and political science. In this paper, a new approach based on linear programming is proposed to estimate voter transitions among parties (or candidates) between two elections. In contrast to other similar models previously suggested in the literature, our approach presents two important innovations. First, it explicitly deals with new entries and exits in the election census without assuming unrealistic hypotheses, enabling a reasonable estimation of vote transfers for young electors voting for the first time. We illustrate this in a real instance. Secondly, by exploiting the information contained in the model residuals, we develop a procedure to assess the level of uncertainty in the estimates. This significantly distinguishes our model from other linear and quadratic programming methods previously published. The method is illustrated estimating the vote transfer matrix between the first and second round of the 2017 French Presidential election and measuring its level of uncertainty. Likewise, compared to the most current alternatives based on ecological regression, our approach is considerably simpler and faster, and has provided reasonable results in all the actual elections to which it has been applied. Interested scholars can easily use our procedure with the aid of the 𝑅-function described at the bottom of this paper.