Statistics for Inclusive and multiplicity dependent production of electrons from heavy-flavour hadron decays in pp and p-Pb collisions