Characterizations of discrete distributions by a conditional distribution and a regression function